Class Warden
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Mob
net.minecraft.world.entity.PathfinderMob
net.minecraft.world.entity.monster.Monster
net.minecraft.world.entity.monster.warden.Warden
- All Implemented Interfaces:
CommandSource
,Attackable
,Enemy
,Targeting
,EntityAccess
,VibrationSystem
,Nameable
,ICapabilityProvider
,ICapabilityProviderImpl<Entity>
,ICapabilitySerializable<CompoundTag>
,IForgeEntity
,IForgeLivingEntity
,INBTSerializable<CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
LivingEntity.Fallsounds
Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
Nested classes/interfaces inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
VibrationSystem.Data, VibrationSystem.Listener, VibrationSystem.Ticker, VibrationSystem.User
-
Field Summary
Modifier and TypeFieldDescription(package private) AngerManagement
private static final int
private static final int
private static final float
private static final EntityDataAccessor<Integer>
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final float
private static final float
private final DynamicGameEventListener<VibrationSystem.Listener>
private int
private int
private static final float
private static final org.slf4j.Logger
private static final int
private static final float
private static final int
private static final int
private static final int
private static final int
private int
private int
private static final int
private static final int
private static final int
private VibrationSystem.Data
private final VibrationSystem.User
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
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, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYHeadRot, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, 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, walkAnimation, 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_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, 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, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, 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
Fields inherited from interface net.minecraft.world.entity.monster.Enemy
XP_REWARD_BOSS, XP_REWARD_HUGE, XP_REWARD_LARGE, XP_REWARD_MEDIUM, XP_REWARD_NONE, XP_REWARD_SMALL
Fields inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
RESONANCE_EVENTS, VIBRATION_FREQUENCY_FOR_EVENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData
(CompoundTag p_219434_) static void
applyDarknessAround
(ServerLevel p_219376_, Vec3 p_219377_, Entity p_219378_, int p_219379_) boolean
protected boolean
boolean
canTargetEntity
(Entity p_219386_) boolean
checkSpawnObstruction
(LevelReader p_219398_) void
clearAnger
(Entity p_219429_) private void
clientDiggingParticles
(AnimationState p_219384_) static AttributeSupplier.Builder
protected PathNavigation
createNavigation
(Level p_219396_) protected void
boolean
protected void
boolean
doHurtTarget
(Entity p_219472_) protected void
finalizeSpawn
(ServerLevelAccessor p_219400_, DifficultyInstance p_219401_, MobSpawnType p_219402_, SpawnGroupData p_219403_, CompoundTag p_219404_) Forge: Override-Only, call via ForgeEventFactory.onFinalizeSpawn.
Overrides are allowed.private int
protected SoundEvent
getBrain()
int
protected SoundEvent
getDimensions
(Pose p_219392_) float
getHeartAnimation
(float p_219470_) private int
protected SoundEvent
getHurtSound
(DamageSource p_219440_) protected org.joml.Vector3f
getPassengerAttachmentPoint
(Entity p_297909_, EntityDimensions p_297829_, float p_301063_) protected float
float
getTendrilAnimation
(float p_219468_) float
getWalkTargetValue
(BlockPos p_219410_, LevelReader p_219411_) void
handleEntityEvent
(byte p_219360_) boolean
hurt
(DamageSource p_219381_, float p_219382_) boolean
void
increaseAngerAt
(Entity p_219442_) void
increaseAngerAt
(Entity p_219388_, int p_219389_, boolean p_219390_) (package private) boolean
boolean
isInvulnerableTo
(DamageSource p_219427_) boolean
protected Brain<?>
makeBrain
(com.mojang.serialization.Dynamic<?> p_219406_) protected float
nextStep()
void
onSyncedDataUpdated
(EntityDataAccessor<?> p_219422_) private void
protected void
playStepSound
(BlockPos p_219431_, BlockState p_219432_) void
readAdditionalSaveData
(CompoundTag p_219415_) void
recreateFromPacket
(ClientboundAddEntityPacket p_219420_) boolean
removeWhenFarAway
(double p_219457_) protected void
void
setAttackTarget
(LivingEntity p_219460_) private void
void
tick()
void
Methods inherited from class net.minecraft.world.entity.monster.Monster
aiStep, checkAnyLightMonsterSpawnRules, checkMonsterSpawnRules, createMonsterAttributes, getFallSounds, getProjectile, getSoundSource, getSwimSound, getSwimSplashSound, isDarkEnoughToSpawn, isPreventingPlayerRest, shouldDespawnInPeaceful, shouldDropExperience, shouldDropLoot, updateNoActionTime
Methods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPanicking, isPathFinding, onLeashDistance, shouldStayCloseToLeashHolder, tickLeash
Methods inherited from class net.minecraft.world.entity.Mob
ate, baseTick, canAttackType, canBeLeashed, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, clearRestriction, convertTo, createBodyControl, createMobAttributes, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getAmbientSoundInterval, getArmorSlots, getAttackBoundingBox, getControllingPassenger, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getExperienceReward, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getSpawnType, hasRestriction, interact, isAggressive, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSpawnCancelled, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInFluid, jumpInLiquid, lookAt, mobInteract, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, registerGoals, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, requiresCustomPersistence, restrictTo, serverAiStep, setAggressive, setBaby, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setTarget, setXxa, setYya, setZza, shouldPassengersInheritMalus, spawnAnim, startRiding, 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, canChangeDimensions, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, dropAllDeathLoot, dropEquipment, dropExperience, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributeBaseValue, getAttributes, getAttributeValue, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxAbsorption, getMaxHealth, getMobType, getMyRidingOffset, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getRandom, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlot, getSpeed, getStandingEyeHeight, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, maxUpStep, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, playBlockFallSound, push, pushEntities, randomTeleport, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideTick, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, travel, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPose
Methods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkBelowWorld, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensionsForge, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, 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, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playSwimSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, ridingOffset, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, 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, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound
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, getEyeHeightForge, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoating
Methods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
VIBRATION_COOLDOWN_TICKS
private static final int VIBRATION_COOLDOWN_TICKS- See Also:
-
TIME_TO_USE_MELEE_UNTIL_SONIC_BOOM
private static final int TIME_TO_USE_MELEE_UNTIL_SONIC_BOOM- See Also:
-
MAX_HEALTH
private static final int MAX_HEALTH- See Also:
-
MOVEMENT_SPEED_WHEN_FIGHTING
private static final float MOVEMENT_SPEED_WHEN_FIGHTING- See Also:
-
KNOCKBACK_RESISTANCE
private static final float KNOCKBACK_RESISTANCE- See Also:
-
ATTACK_KNOCKBACK
private static final float ATTACK_KNOCKBACK- See Also:
-
ATTACK_DAMAGE
private static final int ATTACK_DAMAGE- See Also:
-
CLIENT_ANGER_LEVEL
-
DARKNESS_DISPLAY_LIMIT
private static final int DARKNESS_DISPLAY_LIMIT- See Also:
-
DARKNESS_DURATION
private static final int DARKNESS_DURATION- See Also:
-
DARKNESS_RADIUS
private static final int DARKNESS_RADIUS- See Also:
-
DARKNESS_INTERVAL
private static final int DARKNESS_INTERVAL- See Also:
-
ANGERMANAGEMENT_TICK_DELAY
private static final int ANGERMANAGEMENT_TICK_DELAY- See Also:
-
DEFAULT_ANGER
private static final int DEFAULT_ANGER- See Also:
-
PROJECTILE_ANGER
private static final int PROJECTILE_ANGER- See Also:
-
ON_HURT_ANGER_BOOST
private static final int ON_HURT_ANGER_BOOST- See Also:
-
RECENT_PROJECTILE_TICK_THRESHOLD
private static final int RECENT_PROJECTILE_TICK_THRESHOLD- See Also:
-
TOUCH_COOLDOWN_TICKS
private static final int TOUCH_COOLDOWN_TICKS- See Also:
-
DIGGING_PARTICLES_AMOUNT
private static final int DIGGING_PARTICLES_AMOUNT- See Also:
-
DIGGING_PARTICLES_DURATION
private static final float DIGGING_PARTICLES_DURATION- See Also:
-
DIGGING_PARTICLES_OFFSET
private static final float DIGGING_PARTICLES_OFFSET- See Also:
-
PROJECTILE_ANGER_DISTANCE
private static final int PROJECTILE_ANGER_DISTANCE- See Also:
-
tendrilAnimation
private int tendrilAnimation -
tendrilAnimationO
private int tendrilAnimationO -
heartAnimation
private int heartAnimation -
heartAnimationO
private int heartAnimationO -
roarAnimationState
-
sniffAnimationState
-
emergeAnimationState
-
diggingAnimationState
-
attackAnimationState
-
sonicBoomAnimationState
-
dynamicGameEventListener
-
vibrationUser
-
vibrationData
-
angerManagement
AngerManagement angerManagement
-
-
Constructor Details
-
Warden
-
-
Method Details
-
getAddEntityPacket
- Overrides:
getAddEntityPacket
in classEntity
-
recreateFromPacket
- Overrides:
recreateFromPacket
in classLivingEntity
-
checkSpawnObstruction
- Overrides:
checkSpawnObstruction
in classMob
-
getWalkTargetValue
- Overrides:
getWalkTargetValue
in classMonster
-
isInvulnerableTo
- Overrides:
isInvulnerableTo
in classEntity
-
isDiggingOrEmerging
boolean isDiggingOrEmerging() -
canRide
-
canDisableShield
public boolean canDisableShield()- Overrides:
canDisableShield
in classLivingEntity
-
nextStep
protected float nextStep() -
createAttributes
-
dampensVibrations
public boolean dampensVibrations()- Overrides:
dampensVibrations
in classEntity
-
getSoundVolume
protected float getSoundVolume()- Overrides:
getSoundVolume
in classLivingEntity
-
getAmbientSound
- Overrides:
getAmbientSound
in classMob
-
getHurtSound
- Overrides:
getHurtSound
in classMonster
-
getDeathSound
- Overrides:
getDeathSound
in classMonster
-
playStepSound
- Overrides:
playStepSound
in classEntity
-
doHurtTarget
- Overrides:
doHurtTarget
in classMob
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedData
in classMob
-
getClientAngerLevel
public int getClientAngerLevel() -
syncClientAngerLevel
private void syncClientAngerLevel() -
tick
public void tick() -
customServerAiStep
protected void customServerAiStep()- Overrides:
customServerAiStep
in classMob
-
handleEntityEvent
public void handleEntityEvent(byte p_219360_) - Overrides:
handleEntityEvent
in classMob
-
getHeartBeatDelay
private int getHeartBeatDelay() -
getTendrilAnimation
public float getTendrilAnimation(float p_219468_) -
getHeartAnimation
public float getHeartAnimation(float p_219470_) -
clientDiggingParticles
-
onSyncedDataUpdated
- Overrides:
onSyncedDataUpdated
in classLivingEntity
-
ignoreExplosion
public boolean ignoreExplosion()- Overrides:
ignoreExplosion
in classEntity
-
makeBrain
- Overrides:
makeBrain
in classLivingEntity
-
getBrain
- Overrides:
getBrain
in classLivingEntity
-
sendDebugPackets
protected void sendDebugPackets()- Overrides:
sendDebugPackets
in classMob
-
updateDynamicGameEventListener
public void updateDynamicGameEventListener(BiConsumer<DynamicGameEventListener<?>, ServerLevel> p_219413_) - Overrides:
updateDynamicGameEventListener
in classEntity
-
canTargetEntity
-
applyDarknessAround
public static void applyDarknessAround(ServerLevel p_219376_, Vec3 p_219377_, @Nullable Entity p_219378_, int p_219379_) -
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classMob
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveData
in classMob
-
playListeningSound
private void playListeningSound() -
getAngerLevel
-
getActiveAnger
private int getActiveAnger() -
clearAnger
-
increaseAngerAt
-
increaseAngerAt
-
getEntityAngryAt
-
getTarget
-
removeWhenFarAway
public boolean removeWhenFarAway(double p_219457_) - Overrides:
removeWhenFarAway
in classMob
-
finalizeSpawn
@Nullable public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_219400_, DifficultyInstance p_219401_, MobSpawnType p_219402_, @Nullable SpawnGroupData p_219403_, @Nullable CompoundTag p_219404_) Description copied from class:Mob
Forge: Override-Only, call via ForgeEventFactory.onFinalizeSpawn.
Overrides are allowed. Do not wrap super calls within override (as that will cause stack overflows).
Vanilla calls are replaced with a transformer, and are not visible in source.
Be certain to either call super.finalizeSpawn or set the
Mob.spawnType
field from within your override.- Overrides:
finalizeSpawn
in classMob
-
hurt
- Overrides:
hurt
in classLivingEntity
-
setAttackTarget
-
getDimensions
- Overrides:
getDimensions
in classLivingEntity
-
isPushable
public boolean isPushable()- Overrides:
isPushable
in classLivingEntity
-
doPush
- Overrides:
doPush
in classLivingEntity
-
getAngerManagement
-
getPassengerAttachmentPoint
protected org.joml.Vector3f getPassengerAttachmentPoint(Entity p_297909_, EntityDimensions p_297829_, float p_301063_) - Overrides:
getPassengerAttachmentPoint
in classEntity
-
getVibrationData
- Specified by:
getVibrationData
in interfaceVibrationSystem
-
getVibrationUser
- Specified by:
getVibrationUser
in interfaceVibrationSystem
-