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>
A silverfish for the nether.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.LivingEntity.FallsoundsNested 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.RemovalReasonNested 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
FieldsModifier and TypeFieldDescriptionstatic final intThe maximum life duration in ticks the spirits should have.static final intThe minimum life duration in ticks the spirits should have.static final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>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_VALUEFields 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, xpRewardFields 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, zzaFields 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, zOldFields inherited from interface net.minecraft.commands.CommandSource
NULL -
Constructor Summary
ConstructorsConstructorDescriptionEntityVengeanceSpirit(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 TypeMethodDescriptionvoidaddAdditionalSaveData(net.minecraft.nbt.CompoundTag tag) voidaddEntanglingPlayer(net.minecraft.server.level.ServerPlayer player) static voidaddToBlacklistIMC(String entityName) Add an entity name to the blacklist, every subinstance of this class will not be spirited anymore.voidaiStep()booleanstatic booleancanSpawnNew(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 booleancanSustain(net.minecraft.world.entity.LivingEntity entityLiving) If the given entity can be 'spiritted'voidbooleandoHurtTarget(net.minecraft.world.entity.Entity entity) protected voiddropFromLootTable(net.minecraft.world.damagesource.DamageSource damageSource, boolean fromPlayer) static EntityVengeanceSpiritfromNBT(net.minecraft.world.level.Level level, net.minecraft.nbt.CompoundTag spiritTag) net.minecraft.sounds.SoundEventdoublegetAttributeValue(net.minecraft.world.entity.ai.attributes.Attribute attribute) net.minecraft.sounds.SoundEventnet.minecraft.resources.ResourceLocationnet.minecraft.world.entity.EntityDimensionsgetDimensions(net.minecraft.world.entity.Pose poseIn) Set<net.minecraft.server.level.ServerPlayer>net.minecraft.world.entity.MobGet the inner entity.net.minecraft.world.entity.MobTypefloatbooleanhasLineOfSight(net.minecraft.world.entity.Entity entity) booleanisEnabledVengeance(net.minecraft.world.entity.player.Player player) If the given player is vengeanced by this spiritbooleanbooleanbooleanisInvulnerableTo(net.minecraft.world.damagesource.DamageSource damageSource) booleanbooleanisPlayer()booleanbooleanIf this entity is visible to the current playervoidonHit(double hitX, double hitY, double hitZ, double impactMotionX, double impactMotionY, double impactMotionZ) When this spirit is hit by a neutron.voidplaySound(net.minecraft.sounds.SoundEvent soundIn, float volume, float pitch) protected voidvoidreadAdditionalSaveData(net.minecraft.nbt.CompoundTag tag) voidremove(net.minecraft.world.entity.Entity.RemovalReason removalReason) voidsetEnabledVengeance(net.minecraft.world.entity.player.Player player, boolean enabled) Enable vengeance of this spirit for the given player.voidsetInnerEntity(net.minecraft.world.entity.LivingEntity innerEntity) Set the inner entity;static EntityVengeanceSpiritspawnRandom(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos blockPos, int area) Spawn a random vengeance spirit in the given area.voidthunderHit(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.LightningBolt lightning) protected booleanstatic voidvengeanceEvent(net.minecraftforge.event.entity.living.LivingDeathEvent event) Methods inherited from class org.cyclops.evilcraft.core.monster.EntityNoMob
checkAnyLightMonsterSpawnRules, checkMonsterSpawnRules, createMonsterAttributes, getFallSounds, getHurtSound, getProjectile, getSoundSource, getSwimSound, getSwimSplashSound, getWalkTargetValue, isDarkEnoughToSpawn, isPreventingPlayerRest, shouldDespawnInPeaceful, shouldDropExperience, shouldDropLoot, updateNoActionTimeMethods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, onLeashDistance, shouldStayCloseToLeashHolder, tickLeashMethods 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, wantsToPickUpMethods 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, wasExperienceConsumedMethods 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, 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, wasKilledMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSource
alwaysAcceptsMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods 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, shouldRiderSitMethods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid
-
Field Details
-
REMAININGLIFE_MIN
public static final int REMAININGLIFE_MINThe minimum life duration in ticks the spirits should have.- See Also:
-
REMAININGLIFE_MAX
public static final int REMAININGLIFE_MAXThe maximum life duration in ticks the spirits should have.- See Also:
-
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
-
WATCHERID_SWARMTIER
-
WATCHERID_BUILDUP
-
WATCHERID_PLAYERID
-
WATCHERID_PLAYERNAME
-
TAG_SPIRIT_BLOCKER
public static final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> TAG_SPIRIT_BLOCKER
-
-
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:
getAttributeValuein classnet.minecraft.world.entity.LivingEntity
-
vengeanceEvent
public static void vengeanceEvent(net.minecraftforge.event.entity.living.LivingDeathEvent event) -
defineSynchedData
public void defineSynchedData()- Overrides:
defineSynchedDatain classnet.minecraft.world.entity.Mob
-
addAdditionalSaveData
public void addAdditionalSaveData(net.minecraft.nbt.CompoundTag tag) - Overrides:
addAdditionalSaveDatain classnet.minecraft.world.entity.Mob
-
readAdditionalSaveData
public void readAdditionalSaveData(net.minecraft.nbt.CompoundTag tag) - Overrides:
readAdditionalSaveDatain classnet.minecraft.world.entity.Mob
-
getDefaultLootTable
public net.minecraft.resources.ResourceLocation getDefaultLootTable()- Overrides:
getDefaultLootTablein classnet.minecraft.world.entity.Mob
-
getVoicePitch
public float getVoicePitch()- Overrides:
getVoicePitchin classnet.minecraft.world.entity.LivingEntity
-
getMobType
public net.minecraft.world.entity.MobType getMobType()- Overrides:
getMobTypein classnet.minecraft.world.entity.LivingEntity
-
isInvulnerableTo
public boolean isInvulnerableTo(net.minecraft.world.damagesource.DamageSource damageSource) - Overrides:
isInvulnerableToin classnet.minecraft.world.entity.Entity
-
doHurtTarget
public boolean doHurtTarget(net.minecraft.world.entity.Entity entity) - Overrides:
doHurtTargetin classnet.minecraft.world.entity.Mob
-
dropFromLootTable
protected void dropFromLootTable(net.minecraft.world.damagesource.DamageSource damageSource, boolean fromPlayer) - Overrides:
dropFromLootTablein classnet.minecraft.world.entity.Mob
-
remove
public void remove(net.minecraft.world.entity.Entity.RemovalReason removalReason) - Overrides:
removein classnet.minecraft.world.entity.Entity
-
isImmobile
public boolean isImmobile()- Overrides:
isImmobilein classnet.minecraft.world.entity.LivingEntity
-
aiStep
public void aiStep()- Overrides:
aiStepin classEntityNoMob
-
playSound
public void playSound(net.minecraft.sounds.SoundEvent soundIn, float volume, float pitch) - Overrides:
playSoundin classnet.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:
pushEntitiesin classnet.minecraft.world.entity.LivingEntity
-
isPushable
public boolean isPushable()- Overrides:
isPushablein classnet.minecraft.world.entity.LivingEntity
-
canBeCollidedWith
public boolean canBeCollidedWith()- Overrides:
canBeCollidedWithin classnet.minecraft.world.entity.Entity
-
isPickable
public boolean isPickable()- Overrides:
isPickablein classnet.minecraft.world.entity.LivingEntity
-
thunderHit
public void thunderHit(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.LightningBolt lightning) - Overrides:
thunderHitin classnet.minecraft.world.entity.Entity
-
hasLineOfSight
public boolean hasLineOfSight(net.minecraft.world.entity.Entity entity) - Overrides:
hasLineOfSightin classnet.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:
getDimensionsin classnet.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:
getDeathSoundin classEntityNoMob
-
getAmbientSound
public net.minecraft.sounds.SoundEvent getAmbientSound()- Overrides:
getAmbientSoundin classnet.minecraft.world.entity.Mob
-
addToBlacklistIMC
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:
updateInWaterStateAndDoFluidPushingin classnet.minecraft.world.entity.Entity
-
isIgnoringBlockTriggers
public boolean isIgnoringBlockTriggers()- Overrides:
isIgnoringBlockTriggersin classnet.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
-