Class EntityVengeanceSpirit

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.entity.Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Mob
net.minecraft.world.entity.PathfinderMob
org.cyclops.evilcraft.core.monster.EntityNoMob
org.cyclops.evilcraft.entity.monster.EntityVengeanceSpirit
All Implemented Interfaces:
net.minecraft.commands.CommandSource, net.minecraft.world.level.entity.EntityAccess, net.minecraft.world.Nameable, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.entity.Entity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeEntity, net.minecraftforge.common.extensions.IForgeLivingEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class EntityVengeanceSpirit extends EntityNoMob
A silverfish for the nether.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity

    net.minecraft.world.entity.LivingEntity.Fallsounds

    Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity

    net.minecraft.world.entity.Entity.MoveFunction, net.minecraft.world.entity.Entity.MovementEmission, net.minecraft.world.entity.Entity.RemovalReason

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The maximum life duration in ticks the spirits should have.
    static final int
    The minimum life duration in ticks the spirits should have.
    static final net.minecraft.network.syncher.EntityDataAccessor<Integer>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<Integer>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<Integer>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<String>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<Integer>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<String>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<String>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<Integer>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<Integer>
     
    static final net.minecraft.network.syncher.EntityDataAccessor<String>
     

    Fields inherited from class net.minecraft.world.entity.PathfinderMob

    DEFAULT_WALK_TARGET_VALUE

    Fields inherited from class net.minecraft.world.entity.Mob

    ambientSoundTime, armorDropChances, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, LEASH_TAG, lookControl, MAX_ENCHANTED_ARMOR_CHANCE, MAX_ENCHANTED_WEAPON_CHANCE, MAX_PICKUP_LOOT_CHANCE, MAX_WEARING_ARMOR_CHANCE, moveControl, navigation, PICKUP_REACH, PRESERVE_ITEM_DROP_CHANCE, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpReward

    Fields inherited from class net.minecraft.world.entity.LivingEntity

    animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BASE_GRAVITY, DEFAULT_EYE_HEIGHT, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, flyingSpeed, HAND_SLOTS, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, lyHeadRot, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza

    Fields inherited from class net.minecraft.world.entity.Entity

    BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, level, MAX_ENTITY_TAG_COUNT, maxUpStep, minorHorizontalCollision, moveDist, noCulling, noPhysics, onGround, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld

    Fields inherited from interface net.minecraft.commands.CommandSource

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityVengeanceSpirit(net.minecraft.world.entity.EntityType<? extends EntityVengeanceSpirit> type, net.minecraft.world.level.Level level)
     
    EntityVengeanceSpirit(net.minecraft.world.entity.EntityType<? extends EntityVengeanceSpirit> type, net.minecraft.world.level.Level level, net.minecraft.world.entity.EntityType<?> preferredInnerEntity)
     
    EntityVengeanceSpirit(net.minecraft.world.level.Level level)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAdditionalSaveData(net.minecraft.nbt.CompoundTag tag)
     
    void
    addEntanglingPlayer(net.minecraft.server.level.ServerPlayer player)
     
    static void
    Add an entity name to the blacklist, every subinstance of this class will not be spirited anymore.
    void
     
    boolean
     
    static boolean
    canSpawnNew(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos blockPos)
    Check if we can spawn a new vengeance spirit in the given location.
    static boolean
    canSustain(net.minecraft.world.entity.LivingEntity entityLiving)
    If the given entity can be 'spiritted'
    void
     
    boolean
    doHurtTarget(net.minecraft.world.entity.Entity entity)
     
    protected void
    dropFromLootTable(net.minecraft.world.damagesource.DamageSource damageSource, boolean fromPlayer)
     
    fromNBT(net.minecraft.world.level.Level level, net.minecraft.nbt.CompoundTag spiritTag)
     
    net.minecraft.sounds.SoundEvent
     
    double
    getAttributeValue(net.minecraft.world.entity.ai.attributes.Attribute attribute)
     
    net.minecraft.sounds.SoundEvent
     
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.world.entity.EntityDimensions
    getDimensions(net.minecraft.world.entity.Pose poseIn)
     
    Set<net.minecraft.server.level.ServerPlayer>
     
    net.minecraft.world.entity.Mob
    Get the inner entity.
    net.minecraft.world.entity.MobType
     
    float
     
    boolean
    hasLineOfSight(net.minecraft.world.entity.Entity entity)
     
    boolean
    isEnabledVengeance(net.minecraft.world.entity.player.Player player)
    If the given player is vengeanced by this spirit
    boolean
     
    boolean
     
    boolean
    isInvulnerableTo(net.minecraft.world.damagesource.DamageSource damageSource)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    If this entity is visible to the current player
    void
    onHit(double hitX, double hitY, double hitZ, double impactMotionX, double impactMotionY, double impactMotionZ)
    When this spirit is hit by a neutron.
    void
    playSound(net.minecraft.sounds.SoundEvent soundIn, float volume, float pitch)
     
    protected void
     
    void
    readAdditionalSaveData(net.minecraft.nbt.CompoundTag tag)
     
    void
    remove(net.minecraft.world.entity.Entity.RemovalReason removalReason)
     
    void
    setEnabledVengeance(net.minecraft.world.entity.player.Player player, boolean enabled)
    Enable vengeance of this spirit for the given player.
    void
    setInnerEntity(net.minecraft.world.entity.LivingEntity innerEntity)
    Set the inner entity;
    spawnRandom(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos blockPos, int area)
    Spawn a random vengeance spirit in the given area.
    void
    thunderHit(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.LightningBolt lightning)
     
    protected boolean
     
    static void
    vengeanceEvent(net.minecraftforge.event.entity.living.LivingDeathEvent event)
     

    Methods inherited from class net.minecraft.world.entity.PathfinderMob

    checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, onLeashDistance, shouldStayCloseToLeashHolder, tickLeash

    Methods inherited from class net.minecraft.world.entity.Mob

    ate, baseTick, canAttackType, canBeLeashed, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, customServerAiStep, dropCustomDeathLoot, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, finalizeSpawn, getAmbientSoundInterval, getArmorSlots, getEquipmentDropChance, getEquipmentForSlot, getExperienceReward, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getTarget, handleEntityEvent, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, iteratePathfindingStartNodeCandidatePositions, jumpInFluid, jumpInLiquid, lookAt, mobInteract, onOffspringSpawnedFromEgg, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, registerGoals, removeAfterChangingDimensions, removeFreeWill, removeWhenFarAway, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setBaby, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setTarget, setXxa, setYya, setZza, shouldPassengersInheritMalus, spawnAnim, startRiding, tick, tickHeadTurn, updateControlFlags, wantsToPickUp

    Methods inherited from class net.minecraft.world.entity.LivingEntity

    actuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getNoActionTime, getOffhandItem, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSlot, getSoundVolume, getSpeed, getStandingEyeHeight, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurt, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, onSyncedDataUpdated, outOfWorld, playBlockFallSound, playEquipSound, push, randomTeleport, recreateFromPacket, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, verifyEquippedItem, wasExperienceConsumed

    Methods inherited from class net.minecraft.world.entity.Entity

    absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, asChatSender, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkInsideBlocks, checkOutOfWorld, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, createCommandSourceStack, createHoverEvent, dampensVibrations, discard, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, gameEvent, gameEvent, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLevel, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getMyRidingOffset, getName, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getPositionCodec, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getResponsibleEntity, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getSwimHighSpeedSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isInFluidType, isInFluidType, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, lavaHurt, lerpMotion, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playEntityOnFireExtinguishedSound, playerTouch, playSound, playStepSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevelCallback, setNoGravity, setOldPosAndRot, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportTo, teleportToWithTicket, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateSwimming, wasKilled

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.commands.CommandSource

    alwaysAccepts

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity

    canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, getStepHeight, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity

    canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid
  • Field Details

    • REMAININGLIFE_MIN

      public static final int REMAININGLIFE_MIN
      The minimum life duration in ticks the spirits should have.
      See Also:
    • REMAININGLIFE_MAX

      public static final int REMAININGLIFE_MAX
      The maximum life duration in ticks the spirits should have.
      See Also:
    • WATCHERID_INNER

      public static final net.minecraft.network.syncher.EntityDataAccessor<String> WATCHERID_INNER
    • WATCHERID_REMAININGLIFE

      public static final net.minecraft.network.syncher.EntityDataAccessor<Integer> WATCHERID_REMAININGLIFE
    • WATCHERID_FROZENDURATION

      public static final net.minecraft.network.syncher.EntityDataAccessor<Integer> WATCHERID_FROZENDURATION
    • WATCHERID_GLOBALVENGEANCE

      public static final net.minecraft.network.syncher.EntityDataAccessor<Integer> WATCHERID_GLOBALVENGEANCE
    • WATCHERID_VENGEANCEPLAYERS

      public static final net.minecraft.network.syncher.EntityDataAccessor<String> WATCHERID_VENGEANCEPLAYERS
    • WATCHERID_ISSWARM

      public static final net.minecraft.network.syncher.EntityDataAccessor<Integer> WATCHERID_ISSWARM
    • WATCHERID_SWARMTIER

      public static final net.minecraft.network.syncher.EntityDataAccessor<Integer> WATCHERID_SWARMTIER
    • WATCHERID_BUILDUP

      public static final net.minecraft.network.syncher.EntityDataAccessor<Integer> WATCHERID_BUILDUP
    • WATCHERID_PLAYERID

      public static final net.minecraft.network.syncher.EntityDataAccessor<String> WATCHERID_PLAYERID
    • WATCHERID_PLAYERNAME

      public static final net.minecraft.network.syncher.EntityDataAccessor<String> WATCHERID_PLAYERNAME
  • Constructor Details

    • EntityVengeanceSpirit

      public EntityVengeanceSpirit(net.minecraft.world.entity.EntityType<? extends EntityVengeanceSpirit> type, net.minecraft.world.level.Level level)
    • EntityVengeanceSpirit

      public EntityVengeanceSpirit(net.minecraft.world.level.Level level)
    • EntityVengeanceSpirit

      public EntityVengeanceSpirit(net.minecraft.world.entity.EntityType<? extends EntityVengeanceSpirit> type, net.minecraft.world.level.Level level, @Nullable net.minecraft.world.entity.EntityType<?> preferredInnerEntity)
  • Method Details

    • getAttributeValue

      public double getAttributeValue(net.minecraft.world.entity.ai.attributes.Attribute attribute)
      Overrides:
      getAttributeValue in class net.minecraft.world.entity.LivingEntity
    • vengeanceEvent

      public static void vengeanceEvent(net.minecraftforge.event.entity.living.LivingDeathEvent event)
    • defineSynchedData

      public void defineSynchedData()
      Overrides:
      defineSynchedData in class net.minecraft.world.entity.Mob
    • addAdditionalSaveData

      public void addAdditionalSaveData(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      addAdditionalSaveData in class net.minecraft.world.entity.Mob
    • readAdditionalSaveData

      public void readAdditionalSaveData(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      readAdditionalSaveData in class net.minecraft.world.entity.Mob
    • getDefaultLootTable

      public net.minecraft.resources.ResourceLocation getDefaultLootTable()
      Overrides:
      getDefaultLootTable in class net.minecraft.world.entity.Mob
    • getVoicePitch

      public float getVoicePitch()
      Overrides:
      getVoicePitch in class net.minecraft.world.entity.LivingEntity
    • getMobType

      public net.minecraft.world.entity.MobType getMobType()
      Overrides:
      getMobType in class net.minecraft.world.entity.LivingEntity
    • isInvulnerableTo

      public boolean isInvulnerableTo(net.minecraft.world.damagesource.DamageSource damageSource)
      Overrides:
      isInvulnerableTo in class net.minecraft.world.entity.Entity
    • doHurtTarget

      public boolean doHurtTarget(net.minecraft.world.entity.Entity entity)
      Overrides:
      doHurtTarget in class net.minecraft.world.entity.Mob
    • dropFromLootTable

      protected void dropFromLootTable(net.minecraft.world.damagesource.DamageSource damageSource, boolean fromPlayer)
      Overrides:
      dropFromLootTable in class net.minecraft.world.entity.Mob
    • remove

      public void remove(net.minecraft.world.entity.Entity.RemovalReason removalReason)
      Overrides:
      remove in class net.minecraft.world.entity.Entity
    • isImmobile

      public boolean isImmobile()
      Overrides:
      isImmobile in class net.minecraft.world.entity.LivingEntity
    • aiStep

      public void aiStep()
      Overrides:
      aiStep in class EntityNoMob
    • playSound

      public void playSound(net.minecraft.sounds.SoundEvent soundIn, float volume, float pitch)
      Overrides:
      playSound in class net.minecraft.world.entity.Entity
    • isVisible

      public boolean isVisible()
      If this entity is visible to the current player
      Returns:
      If it is visible
    • pushEntities

      protected void pushEntities()
      Overrides:
      pushEntities in class net.minecraft.world.entity.LivingEntity
    • isPushable

      public boolean isPushable()
      Overrides:
      isPushable in class net.minecraft.world.entity.LivingEntity
    • canBeCollidedWith

      public boolean canBeCollidedWith()
      Overrides:
      canBeCollidedWith in class net.minecraft.world.entity.Entity
    • isPickable

      public boolean isPickable()
      Overrides:
      isPickable in class net.minecraft.world.entity.LivingEntity
    • thunderHit

      public void thunderHit(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.LightningBolt lightning)
      Overrides:
      thunderHit in class net.minecraft.world.entity.Entity
    • hasLineOfSight

      public boolean hasLineOfSight(net.minecraft.world.entity.Entity entity)
      Overrides:
      hasLineOfSight in class net.minecraft.world.entity.LivingEntity
    • isEnabledVengeance

      public boolean isEnabledVengeance(net.minecraft.world.entity.player.Player player)
      If the given player is vengeanced by this spirit
      Parameters:
      player - the player.
      Returns:
      If it should be visible.
    • setEnabledVengeance

      public void setEnabledVengeance(net.minecraft.world.entity.player.Player player, boolean enabled)
      Enable vengeance of this spirit for the given player.
      Parameters:
      player - This player will be added to the target list.
      enabled - If vengeance should be enabled
    • isPlayer

      public boolean isPlayer()
    • getDimensions

      public net.minecraft.world.entity.EntityDimensions getDimensions(net.minecraft.world.entity.Pose poseIn)
      Overrides:
      getDimensions in class net.minecraft.world.entity.LivingEntity
    • getInnerEntity

      @Nullable public net.minecraft.world.entity.Mob getInnerEntity()
      Get the inner entity.
      Returns:
      inner entity, null if it is a swarm
    • setInnerEntity

      public void setInnerEntity(net.minecraft.world.entity.LivingEntity innerEntity)
      Set the inner entity;
      Parameters:
      innerEntity - inner entity
    • canSustain

      public static boolean canSustain(net.minecraft.world.entity.LivingEntity entityLiving)
      If the given entity can be 'spiritted'
      Parameters:
      entityLiving - The entity to check.
      Returns:
      If it can become a spirit.
    • canSpawnNew

      public static boolean canSpawnNew(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos blockPos)
      Check if we can spawn a new vengeance spirit in the given location. It will check if the amount of spirits in an area is below a certain threshold and if there aren't any gemstone torches in the area
      Parameters:
      level - The level.
      blockPos - The position.
      Returns:
      If we are allowed to spawn a spirit.
    • onHit

      public void onHit(double hitX, double hitY, double hitZ, double impactMotionX, double impactMotionY, double impactMotionZ)
      When this spirit is hit by a neutron.
      Parameters:
      hitX - Hit X.
      hitY - Hit Y.
      hitZ - Hit Z.
      impactMotionX - The motion speed for X.
      impactMotionY - The motion speed for Y.
      impactMotionZ - The motion speed for Z.
    • spawnRandom

      public static EntityVengeanceSpirit spawnRandom(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos blockPos, int area)
      Spawn a random vengeance spirit in the given area.
      Parameters:
      level - The level.
      blockPos - The position.
      area - The radius in which the spawn can occur.
      Returns:
      The spawned spirit, could be null.
    • getDeathSound

      public net.minecraft.sounds.SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class EntityNoMob
    • getAmbientSound

      public net.minecraft.sounds.SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class net.minecraft.world.entity.Mob
    • addToBlacklistIMC

      public static void addToBlacklistIMC(String entityName)
      Add an entity name to the blacklist, every subinstance of this class will not be spirited anymore. This should only be called by IMC message handlers.
      Parameters:
      entityName - The entity name or regexthat will be blocked from spiritation.
    • updateInWaterStateAndDoFluidPushing

      protected boolean updateInWaterStateAndDoFluidPushing()
      Overrides:
      updateInWaterStateAndDoFluidPushing in class net.minecraft.world.entity.Entity
    • isIgnoringBlockTriggers

      public boolean isIgnoringBlockTriggers()
      Overrides:
      isIgnoringBlockTriggers in class net.minecraft.world.entity.Entity
    • fromNBT

      public static EntityVengeanceSpirit fromNBT(net.minecraft.world.level.Level level, net.minecraft.nbt.CompoundTag spiritTag)
    • addEntanglingPlayer

      public void addEntanglingPlayer(net.minecraft.server.level.ServerPlayer player)
    • getEntanglingPlayers

      public Set<net.minecraft.server.level.ServerPlayer> getEntanglingPlayers()