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
,Enemy
,EntityAccess
,VibrationListener.VibrationListenerConfig
,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>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate 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<VibrationListener>
private static final int
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
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
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
-
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
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_) Calls to this method should be accompanied by firing theSpecialSpawn
event viaForgeEventFactory.doSpecialSpawn(net.minecraft.world.entity.Mob, net.minecraft.world.level.LevelAccessor, float, float, float, net.minecraft.world.level.BaseSpawner, net.minecraft.world.entity.MobSpawnType)
.private int
Packet<?>
protected SoundEvent
getBrain()
int
protected SoundEvent
getDimensions
(Pose p_219392_) float
getHeartAnimation
(float p_219470_) private int
protected SoundEvent
getHurtSound
(DamageSource p_219440_) 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_) private boolean
boolean
isInvulnerableTo
(DamageSource p_219427_) boolean
protected Brain<?>
makeBrain
(com.mojang.serialization.Dynamic<?> p_219406_) protected float
nextStep()
void
onSignalReceive
(ServerLevel p_219362_, GameEventListener p_219363_, BlockPos p_219364_, GameEvent p_219365_, Entity p_219366_, Entity p_219367_, float p_219368_) 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_) boolean
shouldListen
(ServerLevel p_219370_, GameEventListener p_219371_, BlockPos p_219372_, GameEvent p_219373_, GameEvent.Context p_219374_) 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, 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, clearRestriction, convertTo, createBodyControl, createLootContext, createMobAttributes, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getAmbientSoundInterval, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getExperienceReward, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getSpawnType, 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, requiresCustomPersistence, restrictTo, serverAiStep, setAggressive, setBaby, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, 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, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, dropAllDeathLoot, dropEquipment, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, 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, getMobType, getNoActionTime, getOffhandItem, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSlot, getSpeed, getStandingEyeHeight, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, 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, lerpHeadTo, lerpTo, lookAt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, 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, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkInsideBlocks, checkOutOfWorld, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, createCommandSourceStack, createHoverEvent, 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, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, 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, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playEntityOnFireExtinguishedSound, playerTouch, playSound, playSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, 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, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, 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, hasCustomOutlineRendering, 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
Methods inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationListener.VibrationListenerConfig
isValidVibration, onSignalSchedule
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GAME_EVENT_LISTENER_RANGE
private static final int GAME_EVENT_LISTENER_RANGE- See Also:
-
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
-
angerManagement
-
-
Constructor Details
-
Warden
-
-
Method Details
-
getAddEntityPacket
- Overrides:
getAddEntityPacket
in classLivingEntity
-
recreateFromPacket
- Overrides:
recreateFromPacket
in classLivingEntity
-
checkSpawnObstruction
- Overrides:
checkSpawnObstruction
in classMob
-
getWalkTargetValue
- Overrides:
getWalkTargetValue
in classMonster
-
isInvulnerableTo
- Overrides:
isInvulnerableTo
in classEntity
-
isDiggingOrEmerging
private 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
-
getListenableEvents
- Specified by:
getListenableEvents
in interfaceVibrationListener.VibrationListenerConfig
-
canTriggerAvoidVibration
public boolean canTriggerAvoidVibration()- Specified by:
canTriggerAvoidVibration
in interfaceVibrationListener.VibrationListenerConfig
-
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
Calls to this method should be accompanied by firing the
Additionally, if you override this method, you should ensure you either call super, or manually setSpecialSpawn
event viaForgeEventFactory.doSpecialSpawn(net.minecraft.world.entity.Mob, net.minecraft.world.level.LevelAccessor, float, float, float, net.minecraft.world.level.BaseSpawner, net.minecraft.world.entity.MobSpawnType)
.Mob.spawnType
from 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
-
shouldListen
public boolean shouldListen(ServerLevel p_219370_, GameEventListener p_219371_, BlockPos p_219372_, GameEvent p_219373_, GameEvent.Context p_219374_) - Specified by:
shouldListen
in interfaceVibrationListener.VibrationListenerConfig
-
onSignalReceive
public void onSignalReceive(ServerLevel p_219362_, GameEventListener p_219363_, BlockPos p_219364_, GameEvent p_219365_, @Nullable Entity p_219366_, @Nullable Entity p_219367_, float p_219368_) - Specified by:
onSignalReceive
in interfaceVibrationListener.VibrationListenerConfig
-
getAngerManagement
-