Package net.minecraft.entity.boss
Class WitherEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
net.minecraft.entity.mob.MobEntity
net.minecraft.entity.PathAwareEntity
net.minecraft.entity.mob.HostileEntity
net.minecraft.entity.boss.WitherEntity
- All Implemented Interfaces:
CommandSource,RangedAttackMob,BossBarProvider,EntityCategoryProvider,Monster
@EnvironmentInterfaces(@EnvironmentInterface(value=CLIENT,itf=BossBarProvider.class))
public class WitherEntity
extends HostileEntity
implements BossBarProvider, RangedAttackMob
- Mappings:
Namespace Name official adfintermediary net/minecraft/class_1410named net/minecraft/entity/boss/WitherEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Predicateprivate int[]private int[]private intprivate float[]private float[]private float[]private float[]Fields inherited from class net.minecraft.entity.mob.HostileEntity
field_22424Fields inherited from class net.minecraft.entity.PathAwareEntity
FLEEING_SPEED_BONUS_ID, FLEEING_SPEED_MODIFIERFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, attackGoals, entityMotionHelper, experiencePoints, goals, jumpControl, navigationFields inherited from class net.minecraft.entity.LivingEntity
attackingPlayer, bodyTrackingIncrements, bodyYaw, dead, deathTime, defaultMaxHealth, despawnCounter, distanceTravelled, field_6748, field_6749, field_6750, field_6752, field_6753, field_6771, field_6776, field_6777, field_6778, field_6782, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, headYaw, hurtTime, jumping, knockbackVelocity, lastHandSwingProgress, maxHurtTime, playerHitTimer, prevBodyYaw, prevDistanceTravelled, prevHeadYaw, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, serverPitch, serverY, serverYaw, serverZ, serxerX, sidewaysSpeed, stepBobbingAmountFields inherited from class net.minecraft.entity.Entity
changingDimension, chunkX, chunkY, chunkZ, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_22434, field_3223, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, isFireImmune, netherPortalCooldown, netherPortalTime, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, renderDistanceMultiplier, rider, stepHeight, teleporting, ticksAlive, touchingWater, trackedX, trackedY, trackedZ, updateNeeded, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, zFields inherited from interface net.minecraft.entity.mob.Monster
MONSTER_PREDICATE, VISIBLE_MONSTER_PREDICATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatusEffect(StatusEffectInstance instance) protected voidbooleandamage(DamageSource source, float amount) protected voiddropLoot(boolean allowDrops, int lootingMultiplier) protected Stringintprotected StringgetGroup()floatgetHeadPitch(int headIndex) private doublegetHeadX(int headIndex) private doublegetHeadY(int headIndex) floatgetHeadYaw(int headIndex) private doublegetHeadZ(int headIndex) protected StringintintgetLightmapCoordinates(float float2) private floatgetNextAngle(float prevAngle, float desiredAngle, float maxDifference) intgetTrackedEntityId(int headIndex) voidhandleFallDamage(float fallDistance, float damageMultiplier) protected voidprotected voidvoidprotected voidmobTick()voidrangedAttack(LivingEntity target, float pullProgress) voidvoidvoidsetInvulnerabilityTime(int time) voidsetTrackedEntityId(int headIndex, int id) private voidshootSkullAt(int headIndex, double targetX, double targetY, double targetZ, boolean charged) private voidshootSkullAt(int headIndex, LivingEntity target) booleanvoidstartRiding(Entity entity) voidvoidMethods inherited from class net.minecraft.entity.mob.HostileEntity
canSpawn, getFallSound, getPathfindingFavor, getSplashSound, getSwimSound, method_3087, shouldDropXp, tick, tryAttackMethods inherited from class net.minecraft.entity.PathAwareEntity
getPositionTarget, getPositionTargetRange, hasPositionTarget, isInWalkTargetRange, isInWalkTargetRange, method_6173, method_6175, setPositionTarget, shouldContinue, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canAttackEntity, canBeControlledByRider, canBeLeashedBy, canImmediatelyDespawn, canMoveVoluntarily, canPickupItem, canPickUpLoot, createNavigation, detachLeash, equip, getArmorStacks, getDefaultDrop, getJumpControl, getLimitPerChunk, getLookControl, getLookPitchSpeed, getMainSlot, getMinAmbientSoundDelay, getMotionHelper, getNavigation, getSafeFallDistance, getStackInHand, getTarget, getVisibilityCache, getXpToDrop, handleStatus, initEquipment, initialize, isLeashed, isPersistent, isTameable, lookAtEntity, loot, method_2469, method_2638, method_4470, method_4472, method_4485, method_5388, method_6162, method_8374, onEatingGrass, openInventory, playAmbientSound, playSpawnEffects, setAiDisabled, setArmorSlot, setCanPickUpLoot, setForwardSpeed, setMovementSpeed, setPersistent, setTarget, tickNewAi, turnHead, updateEnchantmentsMethods inherited from class net.minecraft.entity.LivingEntity
animateDamage, applyArmorDamage, applyDamage, applyEnchantmentsToDamage, canSee, clearStatusEffects, collides, damageArmor, destroy, dropXp, endCombat, enterCombat, fall, getAbsorption, getAttacker, getAttacking, getAttributeContainer, getDamageTracker, getEffectInstance, getHandSwingProgress, getHeadRotation, getHealth, getJumpVelocity, getLastAttackTime, getLastHurtTimestamp, getMaxHealth, getMovementSpeed, getNextAirUnderwater, getOpponent, getRandom, getRotation, getRotationVector, getScoreboardTeam, getSoundPitch, getSoundVolume, getStatusEffectInstances, getStuckArrows, hasStatusEffect, hasStatusEffect, heal, initializeAttribute, isAffectedBySmite, isAlive, isBaby, isClimbing, isInSameTeam, isInTeam, isPushable, isSleeping, jump, kill, markEffectsDirty, method_10979, method_10981, method_2582, method_2607, method_2610, method_2634, method_2649, method_2658, method_4473, method_6108, method_6109, method_6111, method_6117, method_6149, method_6150, method_6152, onKilled, pushAway, removeEffect, scheduleVelocityUpdate, sendPickup, setAbsorption, setAttacker, setHeadYaw, setHealth, setJumping, setSprinting, setStuckArrows, shouldAlwaysDropXp, shouldRenderName, swingHand, tickCramming, tickHandSwing, tickRiding, tickStatusEffects, travel, updatePotionVisibility, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, attemptSprintingParticles, burn, canAvoidTraps, canClimb, canExplosionDestroyBlock, canFly, canUseCommand, checkBlockCollision, copyPortalInfo, copyPosition, dealDamage, distanceTo, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropItem, equals, extinguish, fromClientNbt, fromNbt, getAir, getBlastResistance, getBlockPos, getBoundingBox, getBox, getBrightnessAtEyes, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getEntity, getEntityId, getEyeHeight, getFlag, getHardCollisionBox, getHeightOffset, getHorizontalDirection, getHoverEvent, getMaxNetherPortalTime, getMountedHeightOffset, getParts, getPos, getRotationVector, getSavedEntityId, getTargetingMargin, getTranslationKey, getUuid, getWorld, handleAttack, hasCustomName, hashCode, hasVehicle, increaseTransforms, interactAt, isAttackable, isCustomNameVisible, isFireImmune, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isSwimming, isTouchingLava, isTouchingWater, method_10786, method_10941, method_10948, method_10957, method_10965, method_6097, method_6344, method_8364, move, onKilledOther, onLightningStrike, onPlayerCollision, onSwimmingStart, playSound, playStepSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, saveSelfToNbt, saveToNbt, sendCommandFeedback, sendMessage, setAir, setBoundingBox, setBounds, setCustomName, setCustomNameVisible, setEntityId, setFlag, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setSwimming, setVelocityClient, setWorld, shouldRender, shouldRender, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, teleportToDimension, tickFire, toListNbt, toListNbt, toString, updateKilledAdvancementCriterion, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateVelocity, updateWaterState, writePlayerDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.entity.boss.BossBarProvider
getHealth, getMaxHealth, method_6344
-
Field Details
-
CAN_ATTACK_PREDICATE
- Mappings:
Namespace Name Mixin selector official bpLadf;bp:Lcom/google/common/base/Predicate;intermediary field_12015Lnet/minecraft/class_1410;field_12015:Lcom/google/common/base/Predicate;named CAN_ATTACK_PREDICATELnet/minecraft/entity/boss/WitherEntity;CAN_ATTACK_PREDICATE:Lcom/google/common/base/Predicate;
-
sideHeadPitches
private float[] sideHeadPitches- Mappings:
Namespace Name Mixin selector official bLadf;b:[Fintermediary field_5372Lnet/minecraft/class_1410;field_5372:[Fnamed sideHeadPitchesLnet/minecraft/entity/boss/WitherEntity;sideHeadPitches:[F
-
sideHeadYaws
private float[] sideHeadYaws- Mappings:
Namespace Name Mixin selector official cLadf;c:[Fintermediary field_5373Lnet/minecraft/class_1410;field_5373:[Fnamed sideHeadYawsLnet/minecraft/entity/boss/WitherEntity;sideHeadYaws:[F
-
prevSideHeadPitches
private float[] prevSideHeadPitches- Mappings:
Namespace Name Mixin selector official bkLadf;bk:[Fintermediary field_5374Lnet/minecraft/class_1410;field_5374:[Fnamed prevSideHeadPitchesLnet/minecraft/entity/boss/WitherEntity;prevSideHeadPitches:[F
-
prevSideHeadYaws
private float[] prevSideHeadYaws- Mappings:
Namespace Name Mixin selector official blLadf;bl:[Fintermediary field_5375Lnet/minecraft/class_1410;field_5375:[Fnamed prevSideHeadYawsLnet/minecraft/entity/boss/WitherEntity;prevSideHeadYaws:[F
-
field_5376
private int[] field_5376- Mappings:
Namespace Name Mixin selector official bmLadf;bm:[Iintermediary field_5376Lnet/minecraft/class_1410;field_5376:[Inamed field_5376Lnet/minecraft/entity/boss/WitherEntity;field_5376:[I
-
field_5377
private int[] field_5377- Mappings:
Namespace Name Mixin selector official bnLadf;bn:[Iintermediary field_5377Lnet/minecraft/class_1410;field_5377:[Inamed field_5377Lnet/minecraft/entity/boss/WitherEntity;field_5377:[I
-
field_5378
private int field_5378- Mappings:
Namespace Name Mixin selector official boLadf;bo:Iintermediary field_5378Lnet/minecraft/class_1410;field_5378:Inamed field_5378Lnet/minecraft/entity/boss/WitherEntity;field_5378:I
-
-
Constructor Details
-
WitherEntity
- Mappings:
Namespace Name Mixin selector official <init>Lwv;<init>(Laqu;)Vintermediary <init>Lnet/minecraft/class_864;<init>(Lnet/minecraft/class_1150;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
-
Method Details
-
initDataTracker
protected void initDataTracker()- Overrides:
initDataTrackerin classMobEntity- Mappings:
Namespace Name Mixin selector official hLwv;h()Vintermediary method_2484Lnet/minecraft/class_864;method_2484()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
writeCustomDataToNbt
- Overrides:
writeCustomDataToNbtin classMobEntity- Mappings:
Namespace Name Mixin selector official bLwv;b(Lfn;)Vintermediary method_2528Lnet/minecraft/class_864;method_2528(Lnet/minecraft/class_322;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
- Overrides:
readCustomDataFromNbtin classMobEntity- Mappings:
Namespace Name Mixin selector official aLwv;a(Lfn;)Vintermediary method_2498Lnet/minecraft/class_864;method_2498(Lnet/minecraft/class_322;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity- Mappings:
Namespace Name Mixin selector official zLxn;z()Ljava/lang/String;intermediary method_2603Lnet/minecraft/class_871;method_2603()Ljava/lang/String;named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Ljava/lang/String;
-
getHurtSound
- Overrides:
getHurtSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector official bnLxm;bn()Ljava/lang/String;intermediary method_2604Lnet/minecraft/class_1699;method_2604()Ljava/lang/String;named getHurtSoundLnet/minecraft/entity/LivingEntity;getHurtSound()Ljava/lang/String;
-
getDeathSound
- Overrides:
getDeathSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector official boLxm;bo()Ljava/lang/String;intermediary method_2605Lnet/minecraft/class_1699;method_2605()Ljava/lang/String;named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Ljava/lang/String;
-
tickMovement
public void tickMovement()- Overrides:
tickMovementin classHostileEntity- Mappings:
Namespace Name Mixin selector official mLxm;m()Vintermediary method_2651Lnet/minecraft/class_1699;method_2651()Vnamed tickMovementLnet/minecraft/entity/LivingEntity;tickMovement()V
-
mobTick
protected void mobTick() -
method_4537
public void method_4537()- Mappings:
Namespace Name Mixin selector official nLadf;n()Vintermediary method_4537Lnet/minecraft/class_1410;method_4537()Vnamed method_4537Lnet/minecraft/entity/boss/WitherEntity;method_4537()V
-
setInLava
public void setInLava() -
getArmorProtectionValue
public int getArmorProtectionValue()- Overrides:
getArmorProtectionValuein classLivingEntity- Mappings:
Namespace Name Mixin selector official bqLxm;bq()Iintermediary method_2601Lnet/minecraft/class_1699;method_2601()Inamed getArmorProtectionValueLnet/minecraft/entity/LivingEntity;getArmorProtectionValue()I
-
getHeadX
private double getHeadX(int headIndex) - Mappings:
Namespace Name Mixin selector official tLadf;t(I)Dintermediary method_4543Lnet/minecraft/class_1410;method_4543(I)Dnamed getHeadXLnet/minecraft/entity/boss/WitherEntity;getHeadX(I)D
-
getHeadY
private double getHeadY(int headIndex) - Mappings:
Namespace Name Mixin selector official uLadf;u(I)Dintermediary method_4544Lnet/minecraft/class_1410;method_4544(I)Dnamed getHeadYLnet/minecraft/entity/boss/WitherEntity;getHeadY(I)D
-
getHeadZ
private double getHeadZ(int headIndex) - Mappings:
Namespace Name Mixin selector official vLadf;v(I)Dintermediary method_4545Lnet/minecraft/class_1410;method_4545(I)Dnamed getHeadZLnet/minecraft/entity/boss/WitherEntity;getHeadZ(I)D
-
getNextAngle
private float getNextAngle(float prevAngle, float desiredAngle, float maxDifference) - Mappings:
Namespace Name Mixin selector official bLadf;b(FFF)Fintermediary method_4535Lnet/minecraft/class_1410;method_4535(FFF)Fnamed getNextAngleLnet/minecraft/entity/boss/WitherEntity;getNextAngle(FFF)F
-
shootSkullAt
- Mappings:
Namespace Name Mixin selector official aLadf;a(ILxm;)Vintermediary method_6303Lnet/minecraft/class_1410;method_6303(ILnet/minecraft/class_1699;)Vnamed shootSkullAtLnet/minecraft/entity/boss/WitherEntity;shootSkullAt(ILnet/minecraft/entity/LivingEntity;)V
-
shootSkullAt
private void shootSkullAt(int headIndex, double targetX, double targetY, double targetZ, boolean charged) - Mappings:
Namespace Name Mixin selector official aLadf;a(IDDDZ)Vintermediary method_4533Lnet/minecraft/class_1410;method_4533(IDDDZ)Vnamed shootSkullAtLnet/minecraft/entity/boss/WitherEntity;shootSkullAt(IDDDZ)V
-
rangedAttack
- Specified by:
rangedAttackin interfaceRangedAttackMob- Mappings:
Namespace Name Mixin selector official aLafr;a(Lxm;F)Vintermediary method_4552Lnet/minecraft/class_1413;method_4552(Lnet/minecraft/class_1699;F)Vnamed rangedAttackLnet/minecraft/entity/ai/RangedAttackMob;rangedAttack(Lnet/minecraft/entity/LivingEntity;F)V
-
damage
- Overrides:
damagein classHostileEntity- Mappings:
Namespace Name Mixin selector official aLwv;a(Lwh;F)Zintermediary method_2499Lnet/minecraft/class_864;method_2499(Lnet/minecraft/class_856;F)Znamed damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
-
dropLoot
protected void dropLoot(boolean allowDrops, int lootingMultiplier) -
checkDespawn
protected void checkDespawn()- Overrides:
checkDespawnin classMobEntity- Mappings:
Namespace Name Mixin selector official DLxn;D()Vintermediary method_2632Lnet/minecraft/class_871;method_2632()Vnamed checkDespawnLnet/minecraft/entity/mob/MobEntity;checkDespawn()V
-
getLightmapCoordinates
- Overrides:
getLightmapCoordinatesin classEntity- Mappings:
Namespace Name Mixin selector official bLwv;b(F)Iintermediary method_2524Lnet/minecraft/class_864;method_2524(F)Inamed getLightmapCoordinatesLnet/minecraft/entity/Entity;getLightmapCoordinates(F)I
-
handleFallDamage
public void handleFallDamage(float fallDistance, float damageMultiplier) - Overrides:
handleFallDamagein classLivingEntity- Mappings:
Namespace Name Mixin selector official eLwv;e(FF)Vintermediary method_2490Lnet/minecraft/class_864;method_2490(FF)Vnamed handleFallDamageLnet/minecraft/entity/Entity;handleFallDamage(FF)V
-
addStatusEffect
- Overrides:
addStatusEffectin classLivingEntity- Mappings:
Namespace Name Mixin selector official cLxm;c(Lwq;)Vintermediary method_2654Lnet/minecraft/class_1699;method_2654(Lnet/minecraft/class_861;)Vnamed addStatusEffectLnet/minecraft/entity/LivingEntity;addStatusEffect(Lnet/minecraft/entity/effect/StatusEffectInstance;)V
-
initializeAttributes
protected void initializeAttributes()- Overrides:
initializeAttributesin classHostileEntity- Mappings:
Namespace Name Mixin selector official aWLxm;aW()Vintermediary method_6129Lnet/minecraft/class_1699;method_6129()Vnamed initializeAttributesLnet/minecraft/entity/LivingEntity;initializeAttributes()V
-
getHeadYaw
- Mappings:
Namespace Name Mixin selector official aLadf;a(I)Fintermediary method_4532Lnet/minecraft/class_1410;method_4532(I)Fnamed getHeadYawLnet/minecraft/entity/boss/WitherEntity;getHeadYaw(I)F
-
getHeadPitch
- Mappings:
Namespace Name Mixin selector official bLadf;b(I)Fintermediary method_4540Lnet/minecraft/class_1410;method_4540(I)Fnamed getHeadPitchLnet/minecraft/entity/boss/WitherEntity;getHeadPitch(I)F
-
getInvulnerabilityTime
public int getInvulnerabilityTime()- Mappings:
Namespace Name Mixin selector official cjLadf;cj()Iintermediary method_4538Lnet/minecraft/class_1410;method_4538()Inamed getInvulnerabilityTimeLnet/minecraft/entity/boss/WitherEntity;getInvulnerabilityTime()I
-
setInvulnerabilityTime
public void setInvulnerabilityTime(int time) - Mappings:
Namespace Name Mixin selector official rLadf;r(I)Vintermediary method_4541Lnet/minecraft/class_1410;method_4541(I)Vnamed setInvulnerabilityTimeLnet/minecraft/entity/boss/WitherEntity;setInvulnerabilityTime(I)V
-
getTrackedEntityId
public int getTrackedEntityId(int headIndex) - Mappings:
Namespace Name Mixin selector official sLadf;s(I)Iintermediary method_4542Lnet/minecraft/class_1410;method_4542(I)Inamed getTrackedEntityIdLnet/minecraft/entity/boss/WitherEntity;getTrackedEntityId(I)I
-
setTrackedEntityId
public void setTrackedEntityId(int headIndex, int id) - Mappings:
Namespace Name Mixin selector official bLadf;b(II)Vintermediary method_4536Lnet/minecraft/class_1410;method_4536(II)Vnamed setTrackedEntityIdLnet/minecraft/entity/boss/WitherEntity;setTrackedEntityId(II)V
-
shouldRenderOverlay
public boolean shouldRenderOverlay()- Mappings:
Namespace Name Mixin selector official ckLadf;ck()Zintermediary method_4539Lnet/minecraft/class_1410;method_4539()Znamed shouldRenderOverlayLnet/minecraft/entity/boss/WitherEntity;shouldRenderOverlay()Z
-
getGroup
- Overrides:
getGroupin classLivingEntity- Mappings:
Namespace Name Mixin selector official byLxm;by()Lxs;intermediary method_2647Lnet/minecraft/class_1699;method_2647()Lnet/minecraft/class_873;named getGroupLnet/minecraft/entity/LivingEntity;getGroup()Lnet/minecraft/entity/EntityGroup;
-
startRiding
- Overrides:
startRidingin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLwv;a(Lwv;)Vintermediary method_2500Lnet/minecraft/class_864;method_2500(Lnet/minecraft/class_864;)Vnamed startRidingLnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;)V
-