Class WardenEntity
- All Implemented Interfaces:
Attackable,DataTracked,EquipmentHolder,Leashable,Monster,Targeter,ScoreHolder,CommandOutput,Nameable,EntityLike,Vibrations
- Mappings:
Namespace Name named net/minecraft/entity/mob/WardenEntityintermediary net/minecraft/class_7260official cmb
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSoundsNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashDataNested classes/interfaces inherited from interface net.minecraft.world.event.Vibrations
Vibrations.Callback, Vibrations.ListenerData, Vibrations.Ticker, Vibrations.VibrationListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TrackedData<Integer> (package private) WardenAngerManagerprivate static final intprivate static final intprivate static final floatprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final floatprivate static final floatprivate static final intprivate static final intprivate static final intprivate final EntityGameEventHandler<Vibrations.VibrationListener> private intprivate static final floatprivate intprivate intprivate static final Loggerprivate static final intprivate static final floatprivate intprivate final Vibrations.Callbackprivate Vibrations.ListenerDataFields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVORFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, bodyArmorDropChance, DEFAULT_CAN_PICKUP_LOOT_CHANCE, DEFAULT_DROP_CHANCE, experiencePoints, field_35039, field_38932, field_52220, goalSelector, handDropChances, jumpControl, lookControl, MINIMUM_DROPPED_XP_PER_EQUIPMENT, moveControl, navigation, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelectorFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, BABY_SCALE_FACTOR, bodyTrackingIncrements, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, EQUIPMENT_SLOT_ID, fallFlyingTicks, field_30063, field_30069, field_30070, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, 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, prevScale, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideAttackDamage, riptideStack, riptideTicks, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields 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_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMYFields inherited from interface net.minecraft.entity.Leashable
field_52314, field_52315, LEASH_NBT_KEYFields inherited from interface net.minecraft.entity.mob.Monster
NORMAL_MONSTER_XP, SMALL_MONSTER_XP, STRONG_MONSTER_XP, STRONGER_MONSTER_XP, WITHER_XP, ZERO_XPFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAMEFields inherited from interface net.minecraft.world.event.Vibrations
DEFAULT_FREQUENCY, FREQUENCIES, RESONATIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDarknessToClosePlayers(ServerWorld world, Vec3d pos, @Nullable Entity entity, int range) private voidaddDigParticles(AnimationState animationState) protected floatbooleancanImmediatelyDespawn(double distanceSquared) booleanprotected booleancanStartRiding(Entity entity) Returns whether this entity can rideentity.protected EntityNavigationcreateNavigation(World world) createSpawnPacket(EntityTrackerEntry entityTrackerEntry) Returns a packet to notify the clients of the entity's spawning.booleandamage(DamageSource source, float amount) Applies a damage to this entity.protected Brain<?> deserializeBrain(com.mojang.serialization.Dynamic<?> dynamic) booleanprotected @Nullable SoundEventintgetAnger()private intgetBaseDimensions(EntityPose pose) getBrain()protected SoundEventfloatgetHeartPitch(float tickDelta) private intprotected SoundEventgetHurtSound(DamageSource source) floatgetPathfindingFavor(BlockPos pos, WorldView world) protected floatfloatgetTendrilPitch(float tickDelta) voidhandleStatus(byte status) Called on the client when the entity receives an entity status from the server.voidincreaseAngerAt(@Nullable Entity entity) voidincreaseAngerAt(@Nullable Entity entity, int amount, boolean listening) protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) (package private) booleanbooleanisImmuneToExplosion(Explosion explosion) Returns whether the entity is immune from explosion knockback and damage.booleanisInvulnerableTo(DamageSource damageSource) Returns whether the entity is invulnerable todamageSource.booleanReturns whether the entity can be pushed by other entities.booleanisValidTarget(@Nullable Entity entity) protected voidmobTick()booleanReturns whether the entity should not emit vibrations.voidonSpawnPacket(EntitySpawnS2CPacket packet) Called on the client when the entity receives a spawn packet.voidonTrackedDataSet(TrackedData<?> data) Called on the client when the tracked data is set.private voidprotected voidplayStepSound(BlockPos pos, BlockState state) protected voidvoidReads custom data fromnbt.voidremoveSuspect(Entity entity) protected voidvoidtick()Ticks this entity.booleanprivate voidvoidupdateAttackTarget(LivingEntity target) voidupdateEventHandler(BiConsumer<EntityGameEventHandler<?>, ServerWorld> callback) Called when the entity is loaded to register game event handlers.voidWrites 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, updateDespawnCounterMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getFollowLeashSpeed, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash, shouldTickLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
baseTick, canBeLeashed, canEquip, canGather, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canTarget, canUseRangedWeapon, canUseSlot, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, createBodyControl, createMobAttributes, detachLeash, detachLeash, dropAllEquipment, dropEquipment, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, equipStack, getAllArmorItems, getArmorItems, getAttackBox, getBodyArmor, getControllingPassenger, getDropChance, getEquipmentForSlot, getEquippedStack, getHandItems, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLimitPerChunk, getLookControl, getLootTable, getLootTableId, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getTargetInBrain, getVisibilityCache, getXpToDrop, hasPositionTarget, initEquipment, initGoals, interact, interactMob, isAffectedByDaylight, isAiDisabled, isAttacking, isHorseArmor, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, movesIndependently, onEatingGrass, onFinishPathfinding, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, stopMovement, swimUpward, tickNewAi, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, applyMovementInput, areItemsDifferent, attackLivingEntity, blockedByShield, canBreatheInWater, canFreeze, canHaveStatusEffect, canHit, canSee, canTakeDamage, canTarget, canUsePortals, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, damageArmor, damageEquipment, damageHelmet, damageShield, disableExperienceDropping, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBodyYaw, getBoundingBox, getClimbingPos, getControlledMovementInput, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEquippedItems, getFallFlyingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getKnockbackAgainst, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getLocationBasedEnchantmentEffects, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getWeaponStack, getXpToDrop, getYaw, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isExperienceDroppingDisabled, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isMobOrPlayer, isPartOfGame, isSleeping, isTarget, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, playSound, positionInPortal, positionInPortal, processEquippedStack, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickHandSwing, tickInVoid, tickItemStackUsage, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, travel, triggerItemPickedUpByEntityCriteria, tryEatFood, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp, wouldNotSuffocateInPoseMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canTeleportBetween, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, 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, isInFluid, isInLava, isInPose, isInRange, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, lerpPosAndRotation, limitFallDistance, move, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickPortalCooldown, tickPortalTeleportation, toNbtList, toNbtList, toString, tryCheckBlockCollision, tryUsePortal, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateVelocity, updateWaterState, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.entity.EquipmentHolder
getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTableMethods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbtMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/entity/mob/WardenEntity;LOGGER:Lorg/slf4j/Logger;intermediary field_38138Lnet/minecraft/class_7260;field_38138:Lorg/slf4j/Logger;official ceLcmb;ce:Lorg/slf4j/Logger;
-
field_38142
private static final int field_38142- See Also:
- Mappings:
Namespace Name Mixin selector named field_38142Lnet/minecraft/entity/mob/WardenEntity;field_38142:Iintermediary field_38142Lnet/minecraft/class_7260;field_38142:Iofficial cfLcmb;cf:I
-
field_38860
private static final int field_38860- See Also:
- Mappings:
Namespace Name Mixin selector named field_38860Lnet/minecraft/entity/mob/WardenEntity;field_38860:Iintermediary field_38860Lnet/minecraft/class_7260;field_38860:Iofficial cgLcmb;cg:I
-
MAX_HEALTH
private static final int MAX_HEALTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_HEALTHLnet/minecraft/entity/mob/WardenEntity;MAX_HEALTH:Iintermediary field_38143Lnet/minecraft/class_7260;field_38143:Iofficial chLcmb;ch:I
-
MOVEMENT_SPEED
private static final float MOVEMENT_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector named MOVEMENT_SPEEDLnet/minecraft/entity/mob/WardenEntity;MOVEMENT_SPEED:Fintermediary field_38144Lnet/minecraft/class_7260;field_38144:Fofficial ciLcmb;ci:F
-
KNOCKBACK_RESISTANCE
private static final float KNOCKBACK_RESISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named KNOCKBACK_RESISTANCELnet/minecraft/entity/mob/WardenEntity;KNOCKBACK_RESISTANCE:Fintermediary field_38145Lnet/minecraft/class_7260;field_38145:Fofficial cjLcmb;cj:F
-
ATTACK_KNOCKBACK
private static final float ATTACK_KNOCKBACK- See Also:
- Mappings:
Namespace Name Mixin selector named ATTACK_KNOCKBACKLnet/minecraft/entity/mob/WardenEntity;ATTACK_KNOCKBACK:Fintermediary field_38146Lnet/minecraft/class_7260;field_38146:Fofficial ckLcmb;ck:F
-
ATTACK_DAMAGE
private static final int ATTACK_DAMAGE- See Also:
- Mappings:
Namespace Name Mixin selector named ATTACK_DAMAGELnet/minecraft/entity/mob/WardenEntity;ATTACK_DAMAGE:Iintermediary field_38147Lnet/minecraft/class_7260;field_38147:Iofficial clLcmb;cl:I
-
ANGER
- Mappings:
Namespace Name Mixin selector named ANGERLnet/minecraft/entity/mob/WardenEntity;ANGER:Lnet/minecraft/entity/data/TrackedData;intermediary field_38148Lnet/minecraft/class_7260;field_38148:Lnet/minecraft/class_2940;official cmLcmb;cm:Lajw;
-
field_38149
private static final int field_38149- See Also:
- Mappings:
Namespace Name Mixin selector named field_38149Lnet/minecraft/entity/mob/WardenEntity;field_38149:Iintermediary field_38149Lnet/minecraft/class_7260;field_38149:Iofficial cnLcmb;cn:I
-
DARKNESS_EFFECT_DURATION
private static final int DARKNESS_EFFECT_DURATION- See Also:
- Mappings:
Namespace Name Mixin selector named DARKNESS_EFFECT_DURATIONLnet/minecraft/entity/mob/WardenEntity;DARKNESS_EFFECT_DURATION:Iintermediary field_38150Lnet/minecraft/class_7260;field_38150:Iofficial coLcmb;co:I
-
field_38151
private static final int field_38151- See Also:
- Mappings:
Namespace Name Mixin selector named field_38151Lnet/minecraft/entity/mob/WardenEntity;field_38151:Iintermediary field_38151Lnet/minecraft/class_7260;field_38151:Iofficial cpLcmb;cp:I
-
field_38152
private static final int field_38152- See Also:
- Mappings:
Namespace Name Mixin selector named field_38152Lnet/minecraft/entity/mob/WardenEntity;field_38152:Iintermediary field_38152Lnet/minecraft/class_7260;field_38152:Iofficial cqLcmb;cq:I
-
field_38153
private static final int field_38153- See Also:
- Mappings:
Namespace Name Mixin selector named field_38153Lnet/minecraft/entity/mob/WardenEntity;field_38153:Iintermediary field_38153Lnet/minecraft/class_7260;field_38153:Iofficial crLcmb;cr:I
-
ANGRINESS_AMOUNT
private static final int ANGRINESS_AMOUNT- See Also:
- Mappings:
Namespace Name Mixin selector named ANGRINESS_AMOUNTLnet/minecraft/entity/mob/WardenEntity;ANGRINESS_AMOUNT:Iintermediary field_38155Lnet/minecraft/class_7260;field_38155:Iofficial csLcmb;cs:I
-
field_38156
private static final int field_38156- See Also:
- Mappings:
Namespace Name Mixin selector named field_38156Lnet/minecraft/entity/mob/WardenEntity;field_38156:Iintermediary field_38156Lnet/minecraft/class_7260;field_38156:Iofficial ctLcmb;ct:I
-
field_39117
private static final int field_39117- See Also:
- Mappings:
Namespace Name Mixin selector named field_39117Lnet/minecraft/entity/mob/WardenEntity;field_39117:Iintermediary field_39117Lnet/minecraft/class_7260;field_39117:Iofficial cuLcmb;cu:I
-
field_38157
private static final int field_38157- See Also:
- Mappings:
Namespace Name Mixin selector named field_38157Lnet/minecraft/entity/mob/WardenEntity;field_38157:Iintermediary field_38157Lnet/minecraft/class_7260;field_38157:Iofficial cvLcmb;cv:I
-
field_38158
private static final int field_38158- See Also:
- Mappings:
Namespace Name Mixin selector named field_38158Lnet/minecraft/entity/mob/WardenEntity;field_38158:Iintermediary field_38158Lnet/minecraft/class_7260;field_38158:Iofficial cwLcmb;cw:I
-
field_38159
private static final int field_38159- See Also:
- Mappings:
Namespace Name Mixin selector named field_38159Lnet/minecraft/entity/mob/WardenEntity;field_38159:Iintermediary field_38159Lnet/minecraft/class_7260;field_38159:Iofficial cxLcmb;cx:I
-
field_38160
private static final float field_38160- See Also:
- Mappings:
Namespace Name Mixin selector named field_38160Lnet/minecraft/entity/mob/WardenEntity;field_38160:Fintermediary field_38160Lnet/minecraft/class_7260;field_38160:Fofficial cyLcmb;cy:F
-
field_38161
private static final float field_38161- See Also:
- Mappings:
Namespace Name Mixin selector named field_38161Lnet/minecraft/entity/mob/WardenEntity;field_38161:Fintermediary field_38161Lnet/minecraft/class_7260;field_38161:Fofficial czLcmb;cz:F
-
field_39305
private static final int field_39305- See Also:
- Mappings:
Namespace Name Mixin selector named field_39305Lnet/minecraft/entity/mob/WardenEntity;field_39305:Iintermediary field_39305Lnet/minecraft/class_7260;field_39305:Iofficial cALcmb;cA:I
-
tendrilPitch
private int tendrilPitch- Mappings:
Namespace Name Mixin selector named tendrilPitchLnet/minecraft/entity/mob/WardenEntity;tendrilPitch:Iintermediary field_38162Lnet/minecraft/class_7260;field_38162:Iofficial cBLcmb;cB:I
-
lastTendrilPitch
private int lastTendrilPitch- Mappings:
Namespace Name Mixin selector named lastTendrilPitchLnet/minecraft/entity/mob/WardenEntity;lastTendrilPitch:Iintermediary field_38163Lnet/minecraft/class_7260;field_38163:Iofficial cDLcmb;cD:I
-
heartbeatCooldown
private int heartbeatCooldown- Mappings:
Namespace Name Mixin selector named heartbeatCooldownLnet/minecraft/entity/mob/WardenEntity;heartbeatCooldown:Iintermediary field_38164Lnet/minecraft/class_7260;field_38164:Iofficial cELcmb;cE:I
-
lastHeartbeatCooldown
private int lastHeartbeatCooldown- Mappings:
Namespace Name Mixin selector named lastHeartbeatCooldownLnet/minecraft/entity/mob/WardenEntity;lastHeartbeatCooldown:Iintermediary field_38165Lnet/minecraft/class_7260;field_38165:Iofficial cFLcmb;cF:I
-
roaringAnimationState
- Mappings:
Namespace Name Mixin selector named roaringAnimationStateLnet/minecraft/entity/mob/WardenEntity;roaringAnimationState:Lnet/minecraft/entity/AnimationState;intermediary field_38168Lnet/minecraft/class_7260;field_38168:Lnet/minecraft/class_7094;official bLcmb;b:Lbsm;
-
sniffingAnimationState
- Mappings:
Namespace Name Mixin selector named sniffingAnimationStateLnet/minecraft/entity/mob/WardenEntity;sniffingAnimationState:Lnet/minecraft/entity/AnimationState;intermediary field_38169Lnet/minecraft/class_7260;field_38169:Lnet/minecraft/class_7094;official cLcmb;c:Lbsm;
-
emergingAnimationState
- Mappings:
Namespace Name Mixin selector named emergingAnimationStateLnet/minecraft/entity/mob/WardenEntity;emergingAnimationState:Lnet/minecraft/entity/AnimationState;intermediary field_38135Lnet/minecraft/class_7260;field_38135:Lnet/minecraft/class_7094;official dLcmb;d:Lbsm;
-
diggingAnimationState
- Mappings:
Namespace Name Mixin selector named diggingAnimationStateLnet/minecraft/entity/mob/WardenEntity;diggingAnimationState:Lnet/minecraft/entity/AnimationState;intermediary field_38136Lnet/minecraft/class_7260;field_38136:Lnet/minecraft/class_7094;official eLcmb;e:Lbsm;
-
attackingAnimationState
- Mappings:
Namespace Name Mixin selector named attackingAnimationStateLnet/minecraft/entity/mob/WardenEntity;attackingAnimationState:Lnet/minecraft/entity/AnimationState;intermediary field_38137Lnet/minecraft/class_7260;field_38137:Lnet/minecraft/class_7094;official ccLcmb;cc:Lbsm;
-
chargingSonicBoomAnimationState
- Mappings:
Namespace Name Mixin selector named chargingSonicBoomAnimationStateLnet/minecraft/entity/mob/WardenEntity;chargingSonicBoomAnimationState:Lnet/minecraft/entity/AnimationState;intermediary field_38859Lnet/minecraft/class_7260;field_38859:Lnet/minecraft/class_7094;official cdLcmb;cd:Lbsm;
-
gameEventHandler
- Mappings:
Namespace Name Mixin selector named gameEventHandlerLnet/minecraft/entity/mob/WardenEntity;gameEventHandler:Lnet/minecraft/world/event/listener/EntityGameEventHandler;intermediary field_38166Lnet/minecraft/class_7260;field_38166:Lnet/minecraft/class_5715;official cGLcmb;cG:Ldxw;
-
vibrationCallback
- Mappings:
Namespace Name Mixin selector named vibrationCallbackLnet/minecraft/entity/mob/WardenEntity;vibrationCallback:Lnet/minecraft/world/event/Vibrations$Callback;intermediary field_44598Lnet/minecraft/class_7260;field_44598:Lnet/minecraft/class_8514$class_5719;official cHLcmb;cH:Ldyi$d;
-
vibrationListenerData
- Mappings:
Namespace Name Mixin selector named vibrationListenerDataLnet/minecraft/entity/mob/WardenEntity;vibrationListenerData:Lnet/minecraft/world/event/Vibrations$ListenerData;intermediary field_44599Lnet/minecraft/class_7260;field_44599:Lnet/minecraft/class_8514$class_8515;official cILcmb;cI:Ldyi$a;
-
angerManager
WardenAngerManager angerManager- Mappings:
Namespace Name Mixin selector named angerManagerLnet/minecraft/entity/mob/WardenEntity;angerManager:Lnet/minecraft/entity/ai/WardenAngerManager;intermediary field_38141Lnet/minecraft/class_7260;field_38141:Lnet/minecraft/class_7254;official cJLcmb;cJ:Lcma;
-
-
Constructor Details
-
WardenEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lbsr;<init>(Lbsx;Ldcw;)V
-
-
Method Details
-
createSpawnPacket
Returns a packet to notify the clients of the entity's spawning.- Overrides:
createSpawnPacketin classEntity- Returns:
- a packet to notify the clients of the entity's spawning
- API Note:
- Subclasses should return
new EntitySpawnS2CPacket(this), unless they use a custom spawning packet. - Mappings:
Namespace Name Mixin selector named createSpawnPacketLnet/minecraft/entity/Entity;createSpawnPacket(Lnet/minecraft/server/network/EntityTrackerEntry;)Lnet/minecraft/network/packet/Packet;intermediary method_18002Lnet/minecraft/class_1297;method_18002(Lnet/minecraft/class_3231;)Lnet/minecraft/class_2596;official aLbsr;a(Laqt;)Lzg;
-
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:
onSpawnPacketin classLivingEntity- Mappings:
Namespace Name Mixin selector named onSpawnPacketLnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)Vintermediary method_31471Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)Vofficial aLbsr;a(Labv;)V
-
canSpawn
-
getPathfindingFavor
- Overrides:
getPathfindingFavorin classHostileEntity- Mappings:
Namespace Name Mixin selector named getPathfindingFavorLnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)Fintermediary method_6144Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)Fofficial aLbtw;a(Ljd;Ldcz;)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:
isInvulnerableToin classLivingEntity- Returns:
- whether the entity is invulnerable to
damageSource - See Also:
- Implementation Note:
- Entity is invulnerable to all damages if it is removed, and is invulnerable to all damages except
DamageTypes.OUT_OF_WORLDor damages from creative mode players if the entity is invulnerable. This also checksEntity.isFireImmune(). - Mappings:
Namespace Name Mixin selector named isInvulnerableToLnet/minecraft/entity/Entity;isInvulnerableTo(Lnet/minecraft/entity/damage/DamageSource;)Zintermediary method_5679Lnet/minecraft/class_1297;method_5679(Lnet/minecraft/class_1282;)Zofficial bLbsr;b(Lbrk;)Z
-
isDiggingOrEmerging
boolean isDiggingOrEmerging()- Mappings:
Namespace Name Mixin selector named isDiggingOrEmergingLnet/minecraft/entity/mob/WardenEntity;isDiggingOrEmerging()Zintermediary method_43113Lnet/minecraft/class_7260;method_43113()Zofficial goLcmb;go()Z
-
canStartRiding
Returns whether this entity can rideentity.Returning
falsecauses the entity to be unable to ride other entities. For example,WitherEntityoverrides this to returnfalse, so withers cannot ride boats or minecarts. Note that this check can be bypassed by passingtruetoMobEntity.startRiding(Entity, boolean).This is the opposite of
Entity.canAddPassenger(net.minecraft.entity.Entity).- Overrides:
canStartRidingin classEntity- Returns:
- whether this entity can ride
entity - See Also:
- Mappings:
Namespace Name Mixin selector named canStartRidingLnet/minecraft/entity/Entity;canStartRiding(Lnet/minecraft/entity/Entity;)Zintermediary method_5860Lnet/minecraft/class_1297;method_5860(Lnet/minecraft/class_1297;)Zofficial oLbsr;o(Lbsr;)Z
-
disablesShield
public boolean disablesShield()- Overrides:
disablesShieldin classLivingEntity- Mappings:
Namespace Name Mixin selector named disablesShieldLnet/minecraft/entity/LivingEntity;disablesShield()Zintermediary method_42149Lnet/minecraft/class_1309;method_42149()Zofficial fKLbtn;fK()Z
-
calculateNextStepSoundDistance
protected float calculateNextStepSoundDistance()- Overrides:
calculateNextStepSoundDistancein classEntity- Mappings:
Namespace Name Mixin selector named calculateNextStepSoundDistanceLnet/minecraft/entity/Entity;calculateNextStepSoundDistance()Fintermediary method_5867Lnet/minecraft/class_1297;method_5867()Fofficial aPLbsr;aP()F
-
addAttributes
- Mappings:
Namespace Name Mixin selector named addAttributesLnet/minecraft/entity/mob/WardenEntity;addAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;intermediary method_42221Lnet/minecraft/class_7260;method_42221()Lnet/minecraft/class_5132$class_5133;official sLcmb;s()Lbuv$a;
-
occludeVibrationSignals
public boolean occludeVibrationSignals()Returns whether the entity should not emit vibrations.By default, wool or carpet
, andinvalid reference
item entities
WardenEntitydo not emit vibrations.- Overrides:
occludeVibrationSignalsin classEntity- Returns:
- whether the entity should not emit vibrations
- Mappings:
Namespace Name Mixin selector named occludeVibrationSignalsLnet/minecraft/entity/Entity;occludeVibrationSignals()Zintermediary method_33189Lnet/minecraft/class_1297;method_33189()Zofficial bdLbsr;bd()Z
-
getSoundVolume
protected float getSoundVolume()- Overrides:
getSoundVolumein classLivingEntity- Mappings:
Namespace Name Mixin selector named getSoundVolumeLnet/minecraft/entity/LivingEntity;getSoundVolume()Fintermediary method_6107Lnet/minecraft/class_1309;method_6107()Fofficial faLbtn;fa()F
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity- Mappings:
Namespace Name Mixin selector named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;intermediary method_5994Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;official vLbtp;v()Lavo;
-
getHurtSound
- Overrides:
getHurtSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector named getHurtSoundLnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;intermediary method_6011Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;official dLbtn;d(Lbrk;)Lavo;
-
getDeathSound
- Overrides:
getDeathSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;intermediary method_6002Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;official n_Lbtn;n_()Lavo;
-
playStepSound
- Overrides:
playStepSoundin classEntity- Mappings:
Namespace Name Mixin selector named playStepSoundLnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_5712Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial bLbsr;b(Ljd;Ldtc;)V
-
tryAttack
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTrackerin classMobEntity- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLbsr;a(Laka$a;)V
-
getAnger
public int getAnger()- Mappings:
Namespace Name Mixin selector named getAngerLnet/minecraft/entity/mob/WardenEntity;getAnger()Iintermediary method_42222Lnet/minecraft/class_7260;method_42222()Iofficial tLcmb;t()I
-
updateAnger
private void updateAnger()- Mappings:
Namespace Name Mixin selector named updateAngerLnet/minecraft/entity/mob/WardenEntity;updateAnger()Vintermediary method_42217Lnet/minecraft/class_7260;method_42217()Vofficial grLcmb;gr()V
-
tick
public void tick()Ticks this entity.- Overrides:
tickin classMobEntity- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
MobEntity.baseTick(). - Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial lLbsr;l()V
-
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:
handleStatusin classMobEntity- See Also:
- API Note:
- To send an entity status, use
World.sendEntityStatus(net.minecraft.entity.Entity, byte). - Mappings:
Namespace Name Mixin selector named handleStatusLnet/minecraft/entity/Entity;handleStatus(B)Vintermediary method_5711Lnet/minecraft/class_1297;method_5711(B)Vofficial bLbsr;b(B)V
-
getHeartRate
private int getHeartRate()- Mappings:
Namespace Name Mixin selector named getHeartRateLnet/minecraft/entity/mob/WardenEntity;getHeartRate()Iintermediary method_42218Lnet/minecraft/class_7260;method_42218()Iofficial gsLcmb;gs()I
-
getTendrilPitch
public float getTendrilPitch(float tickDelta) - Mappings:
Namespace Name Mixin selector named getTendrilPitchLnet/minecraft/entity/mob/WardenEntity;getTendrilPitch(F)Fintermediary method_42223Lnet/minecraft/class_7260;method_42223(F)Fofficial HLcmb;H(F)F
-
getHeartPitch
public float getHeartPitch(float tickDelta) - Mappings:
Namespace Name Mixin selector named getHeartPitchLnet/minecraft/entity/mob/WardenEntity;getHeartPitch(F)Fintermediary method_42202Lnet/minecraft/class_7260;method_42202(F)Fofficial ILcmb;I(F)F
-
addDigParticles
- Mappings:
Namespace Name Mixin selector named addDigParticlesLnet/minecraft/entity/mob/WardenEntity;addDigParticles(Lnet/minecraft/entity/AnimationState;)Vintermediary method_42205Lnet/minecraft/class_7260;method_42205(Lnet/minecraft/class_7094;)Vofficial aLcmb;a(Lbsm;)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.
- Specified by:
onTrackedDataSetin interfaceDataTracked- Overrides:
onTrackedDataSetin classLivingEntity- Mappings:
Namespace Name Mixin selector named onTrackedDataSetLnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)Vintermediary method_5674Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)Vofficial aLajz;a(Lajw;)V
-
isImmuneToExplosion
Returns whether the entity is immune from explosion knockback and damage.Invisible
ArmorStandEntityand emerging or diggingWardenEntityare immune from explosions.- Overrides:
isImmuneToExplosionin classEntity- Returns:
- whether the entity is immune from explosion knockback and damage
- Mappings:
Namespace Name Mixin selector named isImmuneToExplosionLnet/minecraft/entity/Entity;isImmuneToExplosion(Lnet/minecraft/world/explosion/Explosion;)Zintermediary method_5659Lnet/minecraft/class_1297;method_5659(Lnet/minecraft/class_1927;)Zofficial aLbsr;a(Ldco;)Z
-
deserializeBrain
- Overrides:
deserializeBrainin classLivingEntity- Mappings:
Namespace Name Mixin selector named deserializeBrainLnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;intermediary method_18867Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;official aLbtn;a(Lcom/mojang/serialization/Dynamic;)Lbuq;
-
getBrain
- Overrides:
getBrainin classLivingEntity- Mappings:
Namespace Name Mixin selector named getBrainLnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;intermediary method_18868Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;official dTLbtn;dT()Lbuq;
-
sendAiDebugData
protected void sendAiDebugData()- Overrides:
sendAiDebugDatain classMobEntity- Mappings:
Namespace Name Mixin selector named sendAiDebugDataLnet/minecraft/entity/mob/MobEntity;sendAiDebugData()Vintermediary method_18409Lnet/minecraft/class_1308;method_18409()Vofficial aaLbtp;aa()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
EntityGameEventHandlerin the entity's constructor, and override this to callcallback. For example:if (this.world instanceof ServerWorld serverWorld) { callback.accept(this.handler, serverWorld); }- Overrides:
updateEventHandlerin classEntity- Mappings:
Namespace Name Mixin selector named updateEventHandlerLnet/minecraft/entity/Entity;updateEventHandler(Ljava/util/function/BiConsumer;)Vintermediary method_42147Lnet/minecraft/class_1297;method_42147(Ljava/util/function/BiConsumer;)Vofficial aLbsr;a(Ljava/util/function/BiConsumer;)V
-
isValidTarget
- Mappings:
Namespace Name Mixin selector named isValidTargetLnet/minecraft/entity/mob/WardenEntity;isValidTarget(Lnet/minecraft/entity/Entity;)Zintermediary method_42206Lnet/minecraft/class_7260;method_42206(Lnet/minecraft/class_1297;)Zofficial cLcmb;c(Lbsr;)Z
-
addDarknessToClosePlayers
public static void addDarknessToClosePlayers(ServerWorld world, Vec3d pos, @Nullable @Nullable Entity entity, int range) - Mappings:
Namespace Name Mixin selector named addDarknessToClosePlayersLnet/minecraft/entity/mob/WardenEntity;addDarknessToClosePlayers(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;I)Vintermediary method_42204Lnet/minecraft/class_7260;method_42204(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_1297;I)Vofficial aLcmb;a(Laqu;Lexc;Lbsr;I)V
-
writeCustomDataToNbt
Writes custom data tonbt. Subclasses have 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:
writeCustomDataToNbtin classMobEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vofficial bLbsr;b(Lub;)V
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses have 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.
nbtmight 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:
readCustomDataFromNbtin classMobEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vofficial aLbsr;a(Lub;)V
-
playListeningSound
private void playListeningSound()- Mappings:
Namespace Name Mixin selector named playListeningSoundLnet/minecraft/entity/mob/WardenEntity;playListeningSound()Vintermediary method_42219Lnet/minecraft/class_7260;method_42219()Vofficial gtLcmb;gt()V
-
getAngriness
- Mappings:
Namespace Name Mixin selector named getAngrinessLnet/minecraft/entity/mob/WardenEntity;getAngriness()Lnet/minecraft/entity/mob/Angriness;intermediary method_42214Lnet/minecraft/class_7260;method_42214()Lnet/minecraft/class_7253;official xLcmb;x()Lclz;
-
getAngerAtTarget
private int getAngerAtTarget()- Mappings:
Namespace Name Mixin selector named getAngerAtTargetLnet/minecraft/entity/mob/WardenEntity;getAngerAtTarget()Iintermediary method_43999Lnet/minecraft/class_7260;method_43999()Iofficial guLcmb;gu()I
-
removeSuspect
- Mappings:
Namespace Name Mixin selector named removeSuspectLnet/minecraft/entity/mob/WardenEntity;removeSuspect(Lnet/minecraft/entity/Entity;)Vintermediary method_42211Lnet/minecraft/class_7260;method_42211(Lnet/minecraft/class_1297;)Vofficial dLcmb;d(Lbsr;)V
-
increaseAngerAt
- Mappings:
Namespace Name Mixin selector named increaseAngerAtLnet/minecraft/entity/mob/WardenEntity;increaseAngerAt(Lnet/minecraft/entity/Entity;)Vintermediary method_42213Lnet/minecraft/class_7260;method_42213(Lnet/minecraft/class_1297;)Vofficial eLcmb;e(Lbsr;)V
-
increaseAngerAt
- Mappings:
Namespace Name Mixin selector named increaseAngerAtLnet/minecraft/entity/mob/WardenEntity;increaseAngerAt(Lnet/minecraft/entity/Entity;IZ)Vintermediary method_42212Lnet/minecraft/class_7260;method_42212(Lnet/minecraft/class_1297;IZ)Vofficial aLcmb;a(Lbsr;IZ)V
-
getPrimeSuspect
- Mappings:
Namespace Name Mixin selector named getPrimeSuspectLnet/minecraft/entity/mob/WardenEntity;getPrimeSuspect()Ljava/util/Optional;intermediary method_42215Lnet/minecraft/class_7260;method_42215()Ljava/util/Optional;official gkLcmb;gk()Ljava/util/Optional;
-
getTarget
- Specified by:
getTargetin interfaceTargeter- Overrides:
getTargetin classMobEntity- Mappings:
Namespace Name Mixin selector named getTargetLnet/minecraft/entity/Targeter;getTarget()Lnet/minecraft/entity/LivingEntity;intermediary method_5968Lnet/minecraft/class_8152;method_5968()Lnet/minecraft/class_1309;official pLbum;p()Lbtn;
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared) - Overrides:
canImmediatelyDespawnin classMobEntity- Mappings:
Namespace Name Mixin selector named canImmediatelyDespawnLnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Zintermediary method_5974Lnet/minecraft/class_1308;method_5974(D)Zofficial hLbtp;h(D)Z
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Overrides:
initializein classMobEntity- Mappings:
Namespace Name Mixin selector named initializeLnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;intermediary method_5943Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;official aLbtp;a(Lddl;Lbqp;Lbtr;Lbuh;)Lbuh;
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntityhas 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
ItemEntityalso 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
isInvulnerableTo(net.minecraft.entity.damage.DamageSource)and return early.- Overrides:
damagein classLivingEntity- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector named damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Zintermediary method_5643Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Zofficial aLbsr;a(Lbrk;F)Z
-
updateAttackTarget
- Mappings:
Namespace Name Mixin selector named updateAttackTargetLnet/minecraft/entity/mob/WardenEntity;updateAttackTarget(Lnet/minecraft/entity/LivingEntity;)Vintermediary method_43274Lnet/minecraft/class_7260;method_43274(Lnet/minecraft/class_1309;)Vofficial jLcmb;j(Lbtn;)V
-
getBaseDimensions
- Overrides:
getBaseDimensionsin classLivingEntity- Mappings:
Namespace Name Mixin selector named getBaseDimensionsLnet/minecraft/entity/LivingEntity;getBaseDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;intermediary method_55694Lnet/minecraft/class_1309;method_55694(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;official eLbtn;e(Lbua;)Lbsu;
-
isPushable
public boolean isPushable()Returns whether the entity can be pushed by other entities.- Overrides:
isPushablein classLivingEntity- Returns:
- whether the entity can be pushed by other entities
- Mappings:
Namespace Name Mixin selector named isPushableLnet/minecraft/entity/Entity;isPushable()Zintermediary method_5810Lnet/minecraft/class_1297;method_5810()Zofficial bBLbsr;bB()Z
-
pushAway
- Overrides:
pushAwayin classLivingEntity- Mappings:
Namespace Name Mixin selector named pushAwayLnet/minecraft/entity/LivingEntity;pushAway(Lnet/minecraft/entity/Entity;)Vintermediary method_6087Lnet/minecraft/class_1309;method_6087(Lnet/minecraft/class_1297;)Vofficial ELbtn;E(Lbsr;)V
-
getAngerManager
- Mappings:
Namespace Name Mixin selector named getAngerManagerLnet/minecraft/entity/mob/WardenEntity;getAngerManager()Lnet/minecraft/entity/ai/WardenAngerManager;intermediary method_42216Lnet/minecraft/class_7260;method_42216()Lnet/minecraft/class_7254;official glLcmb;gl()Lcma;
-
getVibrationListenerData
- Specified by:
getVibrationListenerDatain interfaceVibrations- Mappings:
Namespace Name Mixin selector named getVibrationListenerDataLnet/minecraft/world/event/Vibrations;getVibrationListenerData()Lnet/minecraft/world/event/Vibrations$ListenerData;intermediary method_51298Lnet/minecraft/class_8514;method_51298()Lnet/minecraft/class_8514$class_8515;official gmLdyi;gm()Ldyi$a;
-
getVibrationCallback
- Specified by:
getVibrationCallbackin interfaceVibrations- Mappings:
Namespace Name Mixin selector named getVibrationCallbackLnet/minecraft/world/event/Vibrations;getVibrationCallback()Lnet/minecraft/world/event/Vibrations$Callback;intermediary method_51299Lnet/minecraft/class_8514;method_51299()Lnet/minecraft/class_8514$class_5719;official gnLdyi;gn()Ldyi$d;
-