public class WitherEntity extends MonsterEntity implements IChargeableMob, IRangedAttackMob
Modifier and Type | Class and Description |
---|---|
(package private) class |
WitherEntity.DoNothingGoal |
Entity.IMoveCallback
Modifier and Type | Field and Description |
---|---|
private ServerBossInfo |
bossEvent |
private static DataParameter<java.lang.Integer> |
DATA_ID_INV |
private static DataParameter<java.lang.Integer> |
DATA_TARGET_A |
private static DataParameter<java.lang.Integer> |
DATA_TARGET_B |
private static DataParameter<java.lang.Integer> |
DATA_TARGET_C |
private static java.util.List<DataParameter<java.lang.Integer>> |
DATA_TARGETS |
private int |
destroyBlocksTick |
private int[] |
idleHeadUpdates |
private static java.util.function.Predicate<LivingEntity> |
LIVING_ENTITY_SELECTOR |
private int[] |
nextHeadUpdate |
private static EntityPredicate |
TARGETING_CONDITIONS |
private float[] |
xRotHeads |
private float[] |
xRotOHeads |
private float[] |
yRotHeads |
private float[] |
yRotOHeads |
ambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, xpReward
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
NULL
Constructor and Description |
---|
WitherEntity(EntityType<? extends WitherEntity> p_i50226_1_,
World p_i50226_2_) |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalSaveData(CompoundNBT p_213281_1_) |
boolean |
addEffect(EffectInstance p_195064_1_) |
void |
aiStep() |
boolean |
canBeAffected(EffectInstance p_70687_1_) |
boolean |
canChangeDimensions() |
static boolean |
canDestroy(BlockState p_181033_0_)
Deprecated.
|
protected boolean |
canRide(Entity p_184228_1_) |
boolean |
causeFallDamage(float p_225503_1_,
float p_225503_2_) |
void |
checkDespawn() |
static AttributeModifierMap.MutableAttribute |
createAttributes() |
protected void |
customServerAiStep() |
protected void |
defineSynchedData() |
protected void |
dropCustomDeathLoot(DamageSource p_213333_1_,
int p_213333_2_,
boolean p_213333_3_) |
int |
getAlternativeTarget(int p_82203_1_) |
protected SoundEvent |
getAmbientSound() |
protected SoundEvent |
getDeathSound() |
private double |
getHeadX(int p_82214_1_) |
float |
getHeadXRot(int p_82210_1_) |
private double |
getHeadY(int p_82208_1_) |
float |
getHeadYRot(int p_82207_1_) |
private double |
getHeadZ(int p_82213_1_) |
protected SoundEvent |
getHurtSound(DamageSource p_184601_1_) |
int |
getInvulnerableTicks() |
CreatureAttribute |
getMobType() |
boolean |
hurt(DamageSource p_70097_1_,
float p_70097_2_) |
boolean |
isPowered() |
void |
makeInvulnerable() |
void |
makeStuckInBlock(BlockState p_213295_1_,
Vector3d p_213295_2_) |
private void |
performRangedAttack(int p_82209_1_,
double p_82209_2_,
double p_82209_4_,
double p_82209_6_,
boolean p_82209_8_) |
private void |
performRangedAttack(int p_82216_1_,
LivingEntity p_82216_2_) |
void |
performRangedAttack(LivingEntity p_82196_1_,
float p_82196_2_) |
void |
readAdditionalSaveData(CompoundNBT p_70037_1_) |
protected void |
registerGoals() |
private float |
rotlerp(float p_82204_1_,
float p_82204_2_,
float p_82204_3_) |
void |
setAlternativeTarget(int p_82211_1_,
int p_82211_2_) |
void |
setCustomName(ITextComponent p_200203_1_) |
void |
setInvulnerableTicks(int p_82215_1_) |
void |
startSeenByPlayer(ServerPlayerEntity p_184178_1_) |
void |
stopSeenByPlayer(ServerPlayerEntity p_184203_1_) |
checkAnyLightMonsterSpawnRules, checkMonsterSpawnRules, createMonsterAttributes, getFallDamageSound, getProjectile, getSoundSource, getSwimSound, getSwimSplashSound, getWalkTargetValue, isDarkEnoughToSpawn, isPreventingPlayerRest, shouldDespawnInPeaceful, shouldDropExperience, shouldDropLoot, updateNoActionTime
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, onLeashDistance, tickLeash
ate, baseTick, canAttack, canAttackType, canBeControlledByRider, canBeLeashed, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkMobSpawnRules, checkSpawnObstruction, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, doHurtTarget, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, finalizeSpawn, getAmbientSoundInterval, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getEquipmentSlotForItem, getExperienceReward, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getRestrictCenter, getRestrictRadius, getSensing, getTarget, handleEntityEvent, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, mobInteract, onOffspringSpawnedFromEgg, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeWhenFarAway, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setBaby, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSlot, setSpeed, setTarget, setXxa, setYya, setZza, shouldPassengersInheritMalus, spawnAnim, startRiding, tick, tickHeadTurn, updateControlFlags, wantsToPickUp
actuallyHurt, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getNoActionTime, getOffhandItem, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSoundVolume, getSpeed, getStandingEyeHeight, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBaby, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, markHurt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, onSyncedDataUpdated, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canCollideWith, canEnterPose, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getSwimHighSpeedSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
getCapability
private static final DataParameter<java.lang.Integer> DATA_TARGET_A
private static final DataParameter<java.lang.Integer> DATA_TARGET_B
private static final DataParameter<java.lang.Integer> DATA_TARGET_C
private static final java.util.List<DataParameter<java.lang.Integer>> DATA_TARGETS
private static final DataParameter<java.lang.Integer> DATA_ID_INV
private final float[] xRotHeads
private final float[] yRotHeads
private final float[] xRotOHeads
private final float[] yRotOHeads
private final int[] nextHeadUpdate
private final int[] idleHeadUpdates
private int destroyBlocksTick
private final ServerBossInfo bossEvent
private static final java.util.function.Predicate<LivingEntity> LIVING_ENTITY_SELECTOR
private static final EntityPredicate TARGETING_CONDITIONS
public WitherEntity(EntityType<? extends WitherEntity> p_i50226_1_, World p_i50226_2_)
protected void registerGoals()
registerGoals
in class MobEntity
protected void defineSynchedData()
defineSynchedData
in class MobEntity
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
addAdditionalSaveData
in class MobEntity
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
readAdditionalSaveData
in class MobEntity
public void setCustomName(@Nullable ITextComponent p_200203_1_)
setCustomName
in class Entity
protected SoundEvent getAmbientSound()
getAmbientSound
in class MobEntity
protected SoundEvent getHurtSound(DamageSource p_184601_1_)
getHurtSound
in class MonsterEntity
protected SoundEvent getDeathSound()
getDeathSound
in class MonsterEntity
public void aiStep()
aiStep
in class MonsterEntity
protected void customServerAiStep()
customServerAiStep
in class MobEntity
@Deprecated public static boolean canDestroy(BlockState p_181033_0_)
public void makeInvulnerable()
public void makeStuckInBlock(BlockState p_213295_1_, Vector3d p_213295_2_)
makeStuckInBlock
in class Entity
public void startSeenByPlayer(ServerPlayerEntity p_184178_1_)
startSeenByPlayer
in class Entity
public void stopSeenByPlayer(ServerPlayerEntity p_184203_1_)
stopSeenByPlayer
in class Entity
private double getHeadX(int p_82214_1_)
private double getHeadY(int p_82208_1_)
private double getHeadZ(int p_82213_1_)
private float rotlerp(float p_82204_1_, float p_82204_2_, float p_82204_3_)
private void performRangedAttack(int p_82216_1_, LivingEntity p_82216_2_)
private void performRangedAttack(int p_82209_1_, double p_82209_2_, double p_82209_4_, double p_82209_6_, boolean p_82209_8_)
public void performRangedAttack(LivingEntity p_82196_1_, float p_82196_2_)
performRangedAttack
in interface IRangedAttackMob
public boolean hurt(DamageSource p_70097_1_, float p_70097_2_)
hurt
in class MonsterEntity
protected void dropCustomDeathLoot(DamageSource p_213333_1_, int p_213333_2_, boolean p_213333_3_)
dropCustomDeathLoot
in class MobEntity
public void checkDespawn()
checkDespawn
in class MobEntity
public boolean causeFallDamage(float p_225503_1_, float p_225503_2_)
causeFallDamage
in class LivingEntity
public boolean addEffect(EffectInstance p_195064_1_)
addEffect
in class LivingEntity
public static AttributeModifierMap.MutableAttribute createAttributes()
public float getHeadYRot(int p_82207_1_)
public float getHeadXRot(int p_82210_1_)
public int getInvulnerableTicks()
public void setInvulnerableTicks(int p_82215_1_)
public int getAlternativeTarget(int p_82203_1_)
public void setAlternativeTarget(int p_82211_1_, int p_82211_2_)
public boolean isPowered()
isPowered
in interface IChargeableMob
public CreatureAttribute getMobType()
getMobType
in class LivingEntity
public boolean canChangeDimensions()
canChangeDimensions
in class Entity
public boolean canBeAffected(EffectInstance p_70687_1_)
canBeAffected
in class LivingEntity