Class WardenEntity
- All Implemented Interfaces:
Attackable
,Monster
,Targeter
,CommandOutput
,Nameable
,EntityLike
,VibrationListener.Callback
- Mappings:
Namespace Name official bxq
intermediary net/minecraft/class_7260
named net/minecraft/entity/mob/WardenEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final TrackedData<Integer>
private WardenAngerManager
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 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 int
private static final int
private static final float
private static final float
private static final int
private static final int
private static final int
private final EntityGameEventHandler<VibrationListener>
private int
private static final float
private int
private int
private static final Logger
private static final int
private static final float
private int
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, goalSelector, handDropChances, jumpControl, LEASH_KEY, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, field_30063, field_30067, field_30069, field_30070, field_30072, field_30074, field_30075, field_6215, forwardSpeed, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, limbAnimator, LIVING_FLAGS, lookDirection, maxHurtTime, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_36331, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, onGround, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, VELOCITY_AFFECTING_POS_Y_OFFSET, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire, world
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
Fields inherited from interface net.minecraft.entity.mob.Monster
NORMAL_MONSTER_XP, SMALL_MONSTER_XP, STRONG_MONSTER_XP, STRONGER_MONSTER_XP, WITHER_XP, ZERO_XP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.boolean
accepts
(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.static void
addDarknessToClosePlayers
(ServerWorld world, Vec3d pos, @Nullable Entity entity, int range) private void
addDigParticles
(AnimationState animationState) protected float
boolean
canImmediatelyDespawn
(double distanceSquared) boolean
protected boolean
canStartRiding
(Entity entity) Returns whether this entity can rideentity
.protected EntityNavigation
createNavigation
(World world) Returns a packet to notify the clients of the entity's spawning.boolean
damage
(DamageSource source, float amount) Applies a damage to this entity.protected Brain<?>
deserializeBrain
(com.mojang.serialization.Dynamic<?> dynamic) boolean
protected @Nullable SoundEvent
int
getAnger()
private int
getBrain()
protected SoundEvent
getDimensions
(EntityPose pose) Returns the dimensions of the entity with the givenpose
.float
getHeartPitch
(float tickDelta) private int
protected SoundEvent
getHurtSound
(DamageSource source) float
getPathfindingFavor
(BlockPos pos, WorldView world) protected float
getTag()
float
getTendrilPitch
(float tickDelta) void
handleStatus
(byte status) Called on the client when the entity receives an entity status from the server.void
increaseAngerAt
(@Nullable Entity entity) void
increaseAngerAt
(@Nullable Entity entity, int amount, boolean listening) protected void
Initializes data tracker.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt) private boolean
boolean
Returns whether the entity is immune from explosion knockback and damage.boolean
isInvulnerableTo
(DamageSource damageSource) Returns whether the entity is invulnerable todamageSource
.boolean
Returns whether the entity can be pushed by other entities.boolean
isValidTarget
(@Nullable Entity entity) protected void
mobTick()
boolean
Returns whether the entity should not emit vibrations.void
onSpawnPacket
(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.void
onTrackedDataSet
(TrackedData<?> data) Called on the client when the tracked data is set.private void
protected void
playStepSound
(BlockPos pos, BlockState state) protected void
void
Reads custom data fromnbt
.void
removeSuspect
(Entity entity) protected void
void
tick()
Ticks this entity.boolean
boolean
private void
void
updateAttackTarget
(LivingEntity target) void
updateEventHandler
(BiConsumer<EntityGameEventHandler<?>, ServerWorld> callback) Called when the entity is loaded to register game event handlers.void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.mob.HostileEntity
canSpawnIgnoreLightLevel, canSpawnInDark, createHostileAttributes, getFallSounds, getProjectileType, getSoundCategory, getSplashSound, getSwimSound, isAngryAt, isDisallowedInPeaceful, isSpawnDark, shouldDropLoot, shouldDropXp, tickMovement, updateDespawnCounter
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, shouldFollowLeash, updateForLeashLength, updateLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canBeLeashedBy, canEquip, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canTarget, canUseRangedWeapon, checkDespawn, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, detachLeash, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipLootStack, equipStack, getArmorItems, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandItems, getHoldingEntity, getItemPickUpRangeExpander, getJumpControl, getLimitPerChunk, getLookControl, getLootContextBuilder, getLootTable, getLootTableId, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getSquaredDistanceToAttackPosOf, getVisibilityCache, getXpToDrop, hasPositionTarget, initEquipment, initGoals, interact, interactMob, isAffectedByDaylight, isAiDisabled, isAttacking, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isPersistent, lookAtEntity, loot, movesIndependently, onEatingGrass, onPlayerSpawnedChild, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setEquipmentDropChance, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, squaredAttackRange, startRiding, swimUpward, tickNewAi, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageArmor, damageHelmet, damageShield, disableExperienceDropping, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveEyeHeight, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackPos, getAttributeBaseValue, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getAttributeValue, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDrinkSound, getEatSound, getEyeHeight, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getMainHandStack, getMaxHealth, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRandom, getRecentDamageSource, getRoll, getSaddledSpeed, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPartOfGame, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, positionInPortal, positionInPortal, processEquippedStack, pushAwayFrom, remove, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnGround, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldRemoveSoulSpeedBoost, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMoveEffect, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPortalRect, getPos, getPose, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getSwimHeight, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getX, getY, getYaw, getZ, handleAttack, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isInLava, isInPose, isInRange, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, limitFallDistance, move, moveToWorld, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playExtinguishSound, playSound, playSoundIfNotSilent, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setPitch, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setYaw, shouldBroadcastConsoleToOps, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleport, tickPortal, tickPortalCooldown, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
Methods inherited from interface net.minecraft.world.event.listener.VibrationListener.Callback
canAccept, onListen
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bU
Lbxq;bU:Lorg/slf4j/Logger;
intermediary field_38138
Lnet/minecraft/class_7260;field_38138:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/entity/mob/WardenEntity;LOGGER:Lorg/slf4j/Logger;
-
field_38139
private static final int field_38139- See Also:
- Mappings:
Namespace Name Mixin selector official bV
Lbxq;bV:I
intermediary field_38139
Lnet/minecraft/class_7260;field_38139:I
named field_38139
Lnet/minecraft/entity/mob/WardenEntity;field_38139:I
-
field_38142
private static final int field_38142- See Also:
- Mappings:
Namespace Name Mixin selector official bW
Lbxq;bW:I
intermediary field_38142
Lnet/minecraft/class_7260;field_38142:I
named field_38142
Lnet/minecraft/entity/mob/WardenEntity;field_38142:I
-
field_38860
private static final int field_38860- See Also:
- Mappings:
Namespace Name Mixin selector official bX
Lbxq;bX:I
intermediary field_38860
Lnet/minecraft/class_7260;field_38860:I
named field_38860
Lnet/minecraft/entity/mob/WardenEntity;field_38860:I
-
MAX_HEALTH
private static final int MAX_HEALTH- See Also:
- Mappings:
Namespace Name Mixin selector official bY
Lbxq;bY:I
intermediary field_38143
Lnet/minecraft/class_7260;field_38143:I
named MAX_HEALTH
Lnet/minecraft/entity/mob/WardenEntity;MAX_HEALTH:I
-
MOVEMENT_SPEED
private static final float MOVEMENT_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector official bZ
Lbxq;bZ:F
intermediary field_38144
Lnet/minecraft/class_7260;field_38144:F
named MOVEMENT_SPEED
Lnet/minecraft/entity/mob/WardenEntity;MOVEMENT_SPEED:F
-
KNOCKBACK_RESISTANCE
private static final float KNOCKBACK_RESISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector official ca
Lbxq;ca:F
intermediary field_38145
Lnet/minecraft/class_7260;field_38145:F
named KNOCKBACK_RESISTANCE
Lnet/minecraft/entity/mob/WardenEntity;KNOCKBACK_RESISTANCE:F
-
ATTACK_KNOCKBACK
private static final float ATTACK_KNOCKBACK- See Also:
- Mappings:
Namespace Name Mixin selector official cb
Lbxq;cb:F
intermediary field_38146
Lnet/minecraft/class_7260;field_38146:F
named ATTACK_KNOCKBACK
Lnet/minecraft/entity/mob/WardenEntity;ATTACK_KNOCKBACK:F
-
ATTACK_DAMAGE
private static final int ATTACK_DAMAGE- See Also:
- Mappings:
Namespace Name Mixin selector official cc
Lbxq;cc:I
intermediary field_38147
Lnet/minecraft/class_7260;field_38147:I
named ATTACK_DAMAGE
Lnet/minecraft/entity/mob/WardenEntity;ATTACK_DAMAGE:I
-
ANGER
- Mappings:
Namespace Name Mixin selector official cd
Lbxq;cd:Lacl;
intermediary field_38148
Lnet/minecraft/class_7260;field_38148:Lnet/minecraft/class_2940;
named ANGER
Lnet/minecraft/entity/mob/WardenEntity;ANGER:Lnet/minecraft/entity/data/TrackedData;
-
field_38149
private static final int field_38149- See Also:
- Mappings:
Namespace Name Mixin selector official ce
Lbxq;ce:I
intermediary field_38149
Lnet/minecraft/class_7260;field_38149:I
named field_38149
Lnet/minecraft/entity/mob/WardenEntity;field_38149:I
-
field_38150
private static final int field_38150- See Also:
- Mappings:
Namespace Name Mixin selector official cf
Lbxq;cf:I
intermediary field_38150
Lnet/minecraft/class_7260;field_38150:I
named field_38150
Lnet/minecraft/entity/mob/WardenEntity;field_38150:I
-
field_38151
private static final int field_38151- See Also:
- Mappings:
Namespace Name Mixin selector official cg
Lbxq;cg:I
intermediary field_38151
Lnet/minecraft/class_7260;field_38151:I
named field_38151
Lnet/minecraft/entity/mob/WardenEntity;field_38151:I
-
field_38152
private static final int field_38152- See Also:
- Mappings:
Namespace Name Mixin selector official ch
Lbxq;ch:I
intermediary field_38152
Lnet/minecraft/class_7260;field_38152:I
named field_38152
Lnet/minecraft/entity/mob/WardenEntity;field_38152:I
-
field_38153
private static final int field_38153- See Also:
- Mappings:
Namespace Name Mixin selector official ci
Lbxq;ci:I
intermediary field_38153
Lnet/minecraft/class_7260;field_38153:I
named field_38153
Lnet/minecraft/entity/mob/WardenEntity;field_38153:I
-
field_38155
private static final int field_38155- See Also:
- Mappings:
Namespace Name Mixin selector official cj
Lbxq;cj:I
intermediary field_38155
Lnet/minecraft/class_7260;field_38155:I
named field_38155
Lnet/minecraft/entity/mob/WardenEntity;field_38155:I
-
field_38156
private static final int field_38156- See Also:
- Mappings:
Namespace Name Mixin selector official ck
Lbxq;ck:I
intermediary field_38156
Lnet/minecraft/class_7260;field_38156:I
named field_38156
Lnet/minecraft/entity/mob/WardenEntity;field_38156:I
-
field_39117
private static final int field_39117- See Also:
- Mappings:
Namespace Name Mixin selector official cl
Lbxq;cl:I
intermediary field_39117
Lnet/minecraft/class_7260;field_39117:I
named field_39117
Lnet/minecraft/entity/mob/WardenEntity;field_39117:I
-
field_38157
private static final int field_38157- See Also:
- Mappings:
Namespace Name Mixin selector official cm
Lbxq;cm:I
intermediary field_38157
Lnet/minecraft/class_7260;field_38157:I
named field_38157
Lnet/minecraft/entity/mob/WardenEntity;field_38157:I
-
field_38158
private static final int field_38158- See Also:
- Mappings:
Namespace Name Mixin selector official cn
Lbxq;cn:I
intermediary field_38158
Lnet/minecraft/class_7260;field_38158:I
named field_38158
Lnet/minecraft/entity/mob/WardenEntity;field_38158:I
-
field_38159
private static final int field_38159- See Also:
- Mappings:
Namespace Name Mixin selector official co
Lbxq;co:I
intermediary field_38159
Lnet/minecraft/class_7260;field_38159:I
named field_38159
Lnet/minecraft/entity/mob/WardenEntity;field_38159:I
-
field_38160
private static final float field_38160- See Also:
- Mappings:
Namespace Name Mixin selector official cp
Lbxq;cp:F
intermediary field_38160
Lnet/minecraft/class_7260;field_38160:F
named field_38160
Lnet/minecraft/entity/mob/WardenEntity;field_38160:F
-
field_38161
private static final float field_38161- See Also:
- Mappings:
Namespace Name Mixin selector official cq
Lbxq;cq:F
intermediary field_38161
Lnet/minecraft/class_7260;field_38161:F
named field_38161
Lnet/minecraft/entity/mob/WardenEntity;field_38161:F
-
field_39305
private static final int field_39305- See Also:
- Mappings:
Namespace Name Mixin selector official cr
Lbxq;cr:I
intermediary field_39305
Lnet/minecraft/class_7260;field_39305:I
named field_39305
Lnet/minecraft/entity/mob/WardenEntity;field_39305:I
-
tendrilPitch
private int tendrilPitch- Mappings:
Namespace Name Mixin selector official cs
Lbxq;cs:I
intermediary field_38162
Lnet/minecraft/class_7260;field_38162:I
named tendrilPitch
Lnet/minecraft/entity/mob/WardenEntity;tendrilPitch:I
-
lastTendrilPitch
private int lastTendrilPitch- Mappings:
Namespace Name Mixin selector official ct
Lbxq;ct:I
intermediary field_38163
Lnet/minecraft/class_7260;field_38163:I
named lastTendrilPitch
Lnet/minecraft/entity/mob/WardenEntity;lastTendrilPitch:I
-
heartbeatCooldown
private int heartbeatCooldown- Mappings:
Namespace Name Mixin selector official cu
Lbxq;cu:I
intermediary field_38164
Lnet/minecraft/class_7260;field_38164:I
named heartbeatCooldown
Lnet/minecraft/entity/mob/WardenEntity;heartbeatCooldown:I
-
lastHeartbeatCooldown
private int lastHeartbeatCooldown- Mappings:
Namespace Name Mixin selector official cv
Lbxq;cv:I
intermediary field_38165
Lnet/minecraft/class_7260;field_38165:I
named lastHeartbeatCooldown
Lnet/minecraft/entity/mob/WardenEntity;lastHeartbeatCooldown:I
-
roaringAnimationState
- Mappings:
Namespace Name Mixin selector official b
Lbxq;b:Lbfd;
intermediary field_38168
Lnet/minecraft/class_7260;field_38168:Lnet/minecraft/class_7094;
named roaringAnimationState
Lnet/minecraft/entity/mob/WardenEntity;roaringAnimationState:Lnet/minecraft/entity/AnimationState;
-
sniffingAnimationState
- Mappings:
Namespace Name Mixin selector official c
Lbxq;c:Lbfd;
intermediary field_38169
Lnet/minecraft/class_7260;field_38169:Lnet/minecraft/class_7094;
named sniffingAnimationState
Lnet/minecraft/entity/mob/WardenEntity;sniffingAnimationState:Lnet/minecraft/entity/AnimationState;
-
emergingAnimationState
- Mappings:
Namespace Name Mixin selector official d
Lbxq;d:Lbfd;
intermediary field_38135
Lnet/minecraft/class_7260;field_38135:Lnet/minecraft/class_7094;
named emergingAnimationState
Lnet/minecraft/entity/mob/WardenEntity;emergingAnimationState:Lnet/minecraft/entity/AnimationState;
-
diggingAnimationState
- Mappings:
Namespace Name Mixin selector official e
Lbxq;e:Lbfd;
intermediary field_38136
Lnet/minecraft/class_7260;field_38136:Lnet/minecraft/class_7094;
named diggingAnimationState
Lnet/minecraft/entity/mob/WardenEntity;diggingAnimationState:Lnet/minecraft/entity/AnimationState;
-
attackingAnimationState
- Mappings:
Namespace Name Mixin selector official bS
Lbxq;bS:Lbfd;
intermediary field_38137
Lnet/minecraft/class_7260;field_38137:Lnet/minecraft/class_7094;
named attackingAnimationState
Lnet/minecraft/entity/mob/WardenEntity;attackingAnimationState:Lnet/minecraft/entity/AnimationState;
-
chargingSonicBoomAnimationState
- Mappings:
Namespace Name Mixin selector official bT
Lbxq;bT:Lbfd;
intermediary field_38859
Lnet/minecraft/class_7260;field_38859:Lnet/minecraft/class_7094;
named chargingSonicBoomAnimationState
Lnet/minecraft/entity/mob/WardenEntity;chargingSonicBoomAnimationState:Lnet/minecraft/entity/AnimationState;
-
gameEventHandler
- Mappings:
Namespace Name Mixin selector official cw
Lbxq;cw:Ldfx;
intermediary field_38166
Lnet/minecraft/class_7260;field_38166:Lnet/minecraft/class_5715;
named gameEventHandler
Lnet/minecraft/entity/mob/WardenEntity;gameEventHandler:Lnet/minecraft/world/event/listener/EntityGameEventHandler;
-
angerManager
- Mappings:
Namespace Name Mixin selector official cx
Lbxq;cx:Lbxp;
intermediary field_38141
Lnet/minecraft/class_7260;field_38141:Lnet/minecraft/class_7254;
named angerManager
Lnet/minecraft/entity/mob/WardenEntity;angerManager:Lnet/minecraft/entity/ai/WardenAngerManager;
-
-
Constructor Details
-
WardenEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lbfh;<init>(Lbfl;Lcmi;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
createSpawnPacket
Returns a packet to notify the clients of the entity's spawning.- Overrides:
createSpawnPacket
in classEntity
- Returns:
- a packet to notify the clients of the entity's spawning
- Mappings:
Namespace Name Mixin selector official S
Lbfh;S()Lvb;
intermediary method_18002
Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
named createSpawnPacket
Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/packet/Packet;
-
onSpawnPacket
Called on the client when the entity receives a spawn packet.This sets the entity's position, angles, ID, and UUID. Subclasses can override this to initialize additional fields.
- Overrides:
onSpawnPacket
in classLivingEntity
- Mappings:
Namespace Name Mixin selector official a
Lbfh;a(Lvf;)V
intermediary method_31471
Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
named onSpawnPacket
Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
-
canSpawn
-
getPathfindingFavor
- Overrides:
getPathfindingFavor
in classHostileEntity
- Mappings:
Namespace Name Mixin selector official a
Lbgg;a(Lgt;Lcml;)F
intermediary method_6144
Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)F
named getPathfindingFavor
Lnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)F
-
isInvulnerableTo
Returns whether the entity is invulnerable todamageSource
.This can be overridden to make the entity invulnerable to some damages, but
super.isInvulnerableTo()
should be called in this case.- Overrides:
isInvulnerableTo
in classEntity
- Returns:
- whether the entity is invulnerable to
damageSource
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lbfh;b(Lbem;)Z
intermediary method_5679
Lnet/minecraft/class_1297;method_5679(Lnet/minecraft/class_1282;)Z
named isInvulnerableTo
Lnet/minecraft/entity/Entity;isInvulnerableTo(Lnet/minecraft/entity/damage/DamageSource;)Z
-
isDiggingOrEmerging
private boolean isDiggingOrEmerging()- Mappings:
Namespace Name Mixin selector official fV
Lbxq;fV()Z
intermediary method_43113
Lnet/minecraft/class_7260;method_43113()Z
named isDiggingOrEmerging
Lnet/minecraft/entity/mob/WardenEntity;isDiggingOrEmerging()Z
-
canStartRiding
Returns whether this entity can rideentity
.Returning
false
causes the entity to be unable to ride other entities. For example,WitherEntity
overrides this to returnfalse
, so withers cannot ride boats or minecarts. Note that this check can be bypassed by passingtrue
toEntity.startRiding(Entity, boolean)
.This is the opposite of
Entity.canAddPassenger(net.minecraft.entity.Entity)
.- Overrides:
canStartRiding
in classEntity
- Returns:
- whether this entity can ride
entity
- See Also:
- Mappings:
Namespace Name Mixin selector official l
Lbfh;l(Lbfh;)Z
intermediary method_5860
Lnet/minecraft/class_1297;method_5860(Lnet/minecraft/class_1297;)Z
named canStartRiding
Lnet/minecraft/entity/Entity;canStartRiding(Lnet/minecraft/entity/Entity;)Z
-
disablesShield
public boolean disablesShield()- Overrides:
disablesShield
in classLivingEntity
- Mappings:
Namespace Name Mixin selector official fx
Lbfx;fx()Z
intermediary method_42149
Lnet/minecraft/class_1309;method_42149()Z
named disablesShield
Lnet/minecraft/entity/LivingEntity;disablesShield()Z
-
calculateNextStepSoundDistance
protected float calculateNextStepSoundDistance()- Overrides:
calculateNextStepSoundDistance
in classEntity
- Mappings:
Namespace Name Mixin selector official aH
Lbfh;aH()F
intermediary method_5867
Lnet/minecraft/class_1297;method_5867()F
named calculateNextStepSoundDistance
Lnet/minecraft/entity/Entity;calculateNextStepSoundDistance()F
-
addAttributes
- Mappings:
Namespace Name Mixin selector official q
Lbxq;q()Lbhd$a;
intermediary method_42221
Lnet/minecraft/class_7260;method_42221()Lnet/minecraft/class_5132$class_5133;
named addAttributes
Lnet/minecraft/entity/mob/WardenEntity;addAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
-
occludeVibrationSignals
public boolean occludeVibrationSignals()Returns whether the entity should not emit vibrations.By default, wool or carpet item entities, and
WardenEntity
do not emit vibrations.- Overrides:
occludeVibrationSignals
in classEntity
- Returns:
- whether the entity should not emit vibrations
- Mappings:
Namespace Name Mixin selector official aR
Lbfh;aR()Z
intermediary method_33189
Lnet/minecraft/class_1297;method_33189()Z
named occludeVibrationSignals
Lnet/minecraft/entity/Entity;occludeVibrationSignals()Z
-
getSoundVolume
protected float getSoundVolume()- Overrides:
getSoundVolume
in classLivingEntity
- Mappings:
Namespace Name Mixin selector official eN
Lbfx;eN()F
intermediary method_6107
Lnet/minecraft/class_1309;method_6107()F
named getSoundVolume
Lnet/minecraft/entity/LivingEntity;getSoundVolume()F
-
getAmbientSound
- Overrides:
getAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector official s
Lbfz;s()Lamq;
intermediary method_5994
Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
named getAmbientSound
Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
-
getHurtSound
- Overrides:
getHurtSound
in classHostileEntity
- Mappings:
Namespace Name Mixin selector official d
Lbfx;d(Lbem;)Lamq;
intermediary method_6011
Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
named getHurtSound
Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
-
getDeathSound
- Overrides:
getDeathSound
in classHostileEntity
- Mappings:
Namespace Name Mixin selector official x_
Lbfx;x_()Lamq;
intermediary method_6002
Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
named getDeathSound
Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
-
playStepSound
- Overrides:
playStepSound
in classEntity
- Mappings:
Namespace Name Mixin selector official b
Lbfh;b(Lgt;Ldbq;)V
intermediary method_5712
Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named playStepSound
Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
tryAttack
-
initDataTracker
protected void initDataTracker()Initializes data tracker.- Overrides:
initDataTracker
in classMobEntity
- Mappings:
Namespace Name Mixin selector official a_
Lbfh;a_()V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693()V
named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker()V
-
getAnger
public int getAnger()- Mappings:
Namespace Name Mixin selector official r
Lbxq;r()I
intermediary method_42222
Lnet/minecraft/class_7260;method_42222()I
named getAnger
Lnet/minecraft/entity/mob/WardenEntity;getAnger()I
-
updateAnger
private void updateAnger()- Mappings:
Namespace Name Mixin selector official fW
Lbxq;fW()V
intermediary method_42217
Lnet/minecraft/class_7260;method_42217()V
named updateAnger
Lnet/minecraft/entity/mob/WardenEntity;updateAnger()V
-
tick
public void tick()Ticks this entity. -
mobTick
protected void mobTick() -
handleStatus
public void handleStatus(byte status) Called on the client when the entity receives an entity status from the server. They are often used to spawn particles or play sounds. Subclasses can override this method to handle custom entity status.- Overrides:
handleStatus
in classMobEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lbfh;b(B)V
intermediary method_5711
Lnet/minecraft/class_1297;method_5711(B)V
named handleStatus
Lnet/minecraft/entity/Entity;handleStatus(B)V
-
getHeartRate
private int getHeartRate()- Mappings:
Namespace Name Mixin selector official fZ
Lbxq;fZ()I
intermediary method_42218
Lnet/minecraft/class_7260;method_42218()I
named getHeartRate
Lnet/minecraft/entity/mob/WardenEntity;getHeartRate()I
-
getTendrilPitch
public float getTendrilPitch(float tickDelta) - Mappings:
Namespace Name Mixin selector official C
Lbxq;C(F)F
intermediary method_42223
Lnet/minecraft/class_7260;method_42223(F)F
named getTendrilPitch
Lnet/minecraft/entity/mob/WardenEntity;getTendrilPitch(F)F
-
getHeartPitch
public float getHeartPitch(float tickDelta) - Mappings:
Namespace Name Mixin selector official D
Lbxq;D(F)F
intermediary method_42202
Lnet/minecraft/class_7260;method_42202(F)F
named getHeartPitch
Lnet/minecraft/entity/mob/WardenEntity;getHeartPitch(F)F
-
addDigParticles
- Mappings:
Namespace Name Mixin selector official a
Lbxq;a(Lbfd;)V
intermediary method_42205
Lnet/minecraft/class_7260;method_42205(Lnet/minecraft/class_7094;)V
named addDigParticles
Lnet/minecraft/entity/mob/WardenEntity;addDigParticles(Lnet/minecraft/entity/AnimationState;)V
-
onTrackedDataSet
Called on the client when the tracked data is set.This can be overridden to refresh other fields when the tracked data is set or changed.
- Overrides:
onTrackedDataSet
in classLivingEntity
- Mappings:
Namespace Name Mixin selector official a
Lbfh;a(Lacl;)V
intermediary method_5674
Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
named onTrackedDataSet
Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
-
isImmuneToExplosion
public boolean isImmuneToExplosion()Returns whether the entity is immune from explosion knockback and damage.Invisible
ArmorStandEntity
and emerging or diggingWardenEntity
are immune from explosions.- Overrides:
isImmuneToExplosion
in classEntity
- Returns:
- whether the entity is immune from explosion knockback and damage
- Mappings:
Namespace Name Mixin selector official cI
Lbfh;cI()Z
intermediary method_5659
Lnet/minecraft/class_1297;method_5659()Z
named isImmuneToExplosion
Lnet/minecraft/entity/Entity;isImmuneToExplosion()Z
-
deserializeBrain
- Overrides:
deserializeBrain
in classLivingEntity
- Mappings:
Namespace Name Mixin selector official a
Lbfx;a(Lcom/mojang/serialization/Dynamic;)Lbgy;
intermediary method_18867
Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;
named deserializeBrain
Lnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
-
getBrain
- Overrides:
getBrain
in classLivingEntity
- Mappings:
Namespace Name Mixin selector official dH
Lbfx;dH()Lbgy;
intermediary method_18868
Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;
named getBrain
Lnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;
-
sendAiDebugData
protected void sendAiDebugData()- Overrides:
sendAiDebugData
in classMobEntity
- Mappings:
Namespace Name Mixin selector official T
Lbfz;T()V
intermediary method_18409
Lnet/minecraft/class_1308;method_18409()V
named sendAiDebugData
Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
-
updateEventHandler
Called when the entity is loaded to register game event handlers.Entities that listen to game events should first create an instance of
EntityGameEventHandler
in the entity's constructor, and override this to callcallback
. For example:if (this.world instanceof ServerWorld serverWorld) { callback.accept(this.handler, serverWorld); }
- Overrides:
updateEventHandler
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Lbfh;a(Ljava/util/function/BiConsumer;)V
intermediary method_42147
Lnet/minecraft/class_1297;method_42147(Ljava/util/function/BiConsumer;)V
named updateEventHandler
Lnet/minecraft/entity/Entity;updateEventHandler(Ljava/util/function/BiConsumer;)V
-
getTag
- Specified by:
getTag
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official a
Ldgi$a;a()Lanv;
intermediary method_42210
Lnet/minecraft/class_5718$class_5719;method_42210()Lnet/minecraft/class_6862;
named getTag
Lnet/minecraft/world/event/listener/VibrationListener$Callback;getTag()Lnet/minecraft/registry/tag/TagKey;
-
triggersAvoidCriterion
public boolean triggersAvoidCriterion()- Specified by:
triggersAvoidCriterion
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official w
Ldgi$a;w()Z
intermediary method_43695
Lnet/minecraft/class_5718$class_5719;method_43695()Z
named triggersAvoidCriterion
Lnet/minecraft/world/event/listener/VibrationListener$Callback;triggersAvoidCriterion()Z
-
isValidTarget
- Mappings:
Namespace Name Mixin selector official a
Lbxq;a(Lbfh;)Z
intermediary method_42206
Lnet/minecraft/class_7260;method_42206(Lnet/minecraft/class_1297;)Z
named isValidTarget
Lnet/minecraft/entity/mob/WardenEntity;isValidTarget(Lnet/minecraft/entity/Entity;)Z
-
addDarknessToClosePlayers
public static void addDarknessToClosePlayers(ServerWorld world, Vec3d pos, @Nullable @Nullable Entity entity, int range) - Mappings:
Namespace Name Mixin selector official a
Lbxq;a(Laip;Lede;Lbfh;I)V
intermediary method_42204
Lnet/minecraft/class_7260;method_42204(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_1297;I)V
named addDarknessToClosePlayers
Lnet/minecraft/entity/mob/WardenEntity;addDarknessToClosePlayers(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;I)V
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbt
in classMobEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lbfh;b(Lre;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbt
in classMobEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbfh;a(Lre;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
playListeningSound
private void playListeningSound()- Mappings:
Namespace Name Mixin selector official ga
Lbxq;ga()V
intermediary method_42219
Lnet/minecraft/class_7260;method_42219()V
named playListeningSound
Lnet/minecraft/entity/mob/WardenEntity;playListeningSound()V
-
getAngriness
- Mappings:
Namespace Name Mixin selector official fS
Lbxq;fS()Lbxo;
intermediary method_42214
Lnet/minecraft/class_7260;method_42214()Lnet/minecraft/class_7253;
named getAngriness
Lnet/minecraft/entity/mob/WardenEntity;getAngriness()Lnet/minecraft/entity/mob/Angriness;
-
getAngerAtTarget
private int getAngerAtTarget()- Mappings:
Namespace Name Mixin selector official gb
Lbxq;gb()I
intermediary method_43999
Lnet/minecraft/class_7260;method_43999()I
named getAngerAtTarget
Lnet/minecraft/entity/mob/WardenEntity;getAngerAtTarget()I
-
removeSuspect
- Mappings:
Namespace Name Mixin selector official b
Lbxq;b(Lbfh;)V
intermediary method_42211
Lnet/minecraft/class_7260;method_42211(Lnet/minecraft/class_1297;)V
named removeSuspect
Lnet/minecraft/entity/mob/WardenEntity;removeSuspect(Lnet/minecraft/entity/Entity;)V
-
increaseAngerAt
- Mappings:
Namespace Name Mixin selector official c
Lbxq;c(Lbfh;)V
intermediary method_42213
Lnet/minecraft/class_7260;method_42213(Lnet/minecraft/class_1297;)V
named increaseAngerAt
Lnet/minecraft/entity/mob/WardenEntity;increaseAngerAt(Lnet/minecraft/entity/Entity;)V
-
increaseAngerAt
- Mappings:
Namespace Name Mixin selector official a
Lbxq;a(Lbfh;IZ)V
intermediary method_42212
Lnet/minecraft/class_7260;method_42212(Lnet/minecraft/class_1297;IZ)V
named increaseAngerAt
Lnet/minecraft/entity/mob/WardenEntity;increaseAngerAt(Lnet/minecraft/entity/Entity;IZ)V
-
getPrimeSuspect
- Mappings:
Namespace Name Mixin selector official fT
Lbxq;fT()Ljava/util/Optional;
intermediary method_42215
Lnet/minecraft/class_7260;method_42215()Ljava/util/Optional;
named getPrimeSuspect
Lnet/minecraft/entity/mob/WardenEntity;getPrimeSuspect()Ljava/util/Optional;
-
getTarget
- Specified by:
getTarget
in interfaceTargeter
- Overrides:
getTarget
in classMobEntity
- Mappings:
Namespace Name Mixin selector official P_
Lbgu;P_()Lbfx;
intermediary method_5968
Lnet/minecraft/class_8152;method_5968()Lnet/minecraft/class_1309;
named getTarget
Lnet/minecraft/entity/Targeter;getTarget()Lnet/minecraft/entity/LivingEntity;
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared) - Overrides:
canImmediatelyDespawn
in classMobEntity
- Mappings:
Namespace Name Mixin selector official h
Lbfz;h(D)Z
intermediary method_5974
Lnet/minecraft/class_1308;method_5974(D)Z
named canImmediatelyDespawn
Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt) - Overrides:
initialize
in classMobEntity
- Mappings:
Namespace Name Mixin selector official a
Lbfz;a(Lcmx;Lbdw;Lbgb;Lbgr;Lre;)Lbgr;
intermediary method_5943
Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;Lnet/minecraft/class_2487;)Lnet/minecraft/class_1315;
named initialize
Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntity
has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like
ItemEntity
also have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity
, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of
Entity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource)
and return early.- Overrides:
damage
in classLivingEntity
- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbfh;a(Lbem;F)Z
intermediary method_5643
Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
named damage
Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
-
updateAttackTarget
- Mappings:
Namespace Name Mixin selector official m
Lbxq;m(Lbfx;)V
intermediary method_43274
Lnet/minecraft/class_7260;method_43274(Lnet/minecraft/class_1309;)V
named updateAttackTarget
Lnet/minecraft/entity/mob/WardenEntity;updateAttackTarget(Lnet/minecraft/entity/LivingEntity;)V
-
getDimensions
Returns the dimensions of the entity with the givenpose
.- Overrides:
getDimensions
in classLivingEntity
- Returns:
- the dimensions of the entity with the given
pose
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbfh;a(Lbgj;)Lbfi;
intermediary method_18377
Lnet/minecraft/class_1297;method_18377(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
named getDimensions
Lnet/minecraft/entity/Entity;getDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
-
isPushable
public boolean isPushable()Returns whether the entity can be pushed by other entities.- Overrides:
isPushable
in classLivingEntity
- Returns:
- whether the entity can be pushed by other entities
- Mappings:
Namespace Name Mixin selector official bn
Lbfh;bn()Z
intermediary method_5810
Lnet/minecraft/class_1297;method_5810()Z
named isPushable
Lnet/minecraft/entity/Entity;isPushable()Z
-
pushAway
- Overrides:
pushAway
in classLivingEntity
- Mappings:
Namespace Name Mixin selector official A
Lbfx;A(Lbfh;)V
intermediary method_6087
Lnet/minecraft/class_1309;method_6087(Lnet/minecraft/class_1297;)V
named pushAway
Lnet/minecraft/entity/LivingEntity;pushAway(Lnet/minecraft/entity/Entity;)V
-
accepts
public boolean accepts(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, GameEvent.Emitter emitter) Returns whether the callback wants to accept this event.- Specified by:
accepts
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official a
Ldgi$a;a(Laip;Ldgc;Lgt;Ldga;Ldga$a;)Z
intermediary method_32970
Lnet/minecraft/class_5718$class_5719;method_32970(Lnet/minecraft/class_3218;Lnet/minecraft/class_5714;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_5712$class_7397;)Z
named accepts
Lnet/minecraft/world/event/listener/VibrationListener$Callback;accepts(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/world/event/GameEvent$Emitter;)Z
-
accept
public void accept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable @Nullable Entity entity, @Nullable @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.- Specified by:
accept
in interfaceVibrationListener.Callback
- Mappings:
Namespace Name Mixin selector official a
Ldgi$a;a(Laip;Ldgc;Lgt;Ldga;Lbfh;Lbfh;F)V
intermediary method_32969
Lnet/minecraft/class_5718$class_5719;method_32969(Lnet/minecraft/class_3218;Lnet/minecraft/class_5714;Lnet/minecraft/class_2338;Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;F)V
named accept
Lnet/minecraft/world/event/listener/VibrationListener$Callback;accept(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/event/listener/GameEventListener;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/event/GameEvent;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;F)V
-
getAngerManager
- Mappings:
Namespace Name Mixin selector official fU
Lbxq;fU()Lbxp;
intermediary method_42216
Lnet/minecraft/class_7260;method_42216()Lnet/minecraft/class_7254;
named getAngerManager
Lnet/minecraft/entity/mob/WardenEntity;getAngerManager()Lnet/minecraft/entity/ai/WardenAngerManager;
-