public class EntityWither extends EntityMob implements IRangedAttackMob
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
EntityWither.AIDoNothing |
EntityLiving.SpawnPlacementType| Modifier and Type | Field and Description |
|---|---|
private int |
blockBreakCounter |
private BossInfoServer |
bossInfo |
private static DataParameter<java.lang.Integer> |
FIRST_HEAD_TARGET |
private static DataParameter<java.lang.Integer>[] |
HEAD_TARGETS |
private int[] |
idleHeadUpdates |
private static DataParameter<java.lang.Integer> |
INVULNERABILITY_TIME |
private int[] |
nextHeadUpdate |
private static com.google.common.base.Predicate<Entity> |
NOT_UNDEAD |
private static DataParameter<java.lang.Integer> |
SECOND_HEAD_TARGET |
private static DataParameter<java.lang.Integer> |
THIRD_HEAD_TARGET |
private float[] |
xRotationHeads |
private float[] |
xRotOHeads |
private float[] |
yRotationHeads |
private float[] |
yRotOHeads |
FLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUIDexperienceValue, inventoryArmorDropChances, inventoryHandsDropChances, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasksactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, HAND_STATES, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, updateBlocked, velocityChanged, width, worldMOB_SELECTOR, VISIBLE_MOB_SELECTOR| Constructor and Description |
|---|
EntityWither(World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPotionEffect(PotionEffect potioneffectIn) |
void |
addTrackingPlayer(EntityPlayerMP player) |
protected void |
applyEntityAttributes() |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
void |
attackEntityWithRangedAttack(EntityLivingBase target,
float distanceFactor) |
protected boolean |
canBeRidden(Entity entityIn) |
static boolean |
canDestroyBlock(Block blockIn) |
protected void |
despawnEntity() |
protected void |
dropFewItems(boolean wasRecentlyHit,
int lootingModifier) |
protected void |
entityInit() |
void |
fall(float distance,
float damageMultiplier) |
protected SoundEvent |
getAmbientSound() |
int |
getBrightnessForRender() |
EnumCreatureAttribute |
getCreatureAttribute() |
protected SoundEvent |
getDeathSound() |
private double |
getHeadX(int p_82214_1_) |
float |
getHeadXRotation(int p_82210_1_) |
private double |
getHeadY(int p_82208_1_) |
float |
getHeadYRotation(int p_82207_1_) |
private double |
getHeadZ(int p_82213_1_) |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
int |
getInvulTime() |
int |
getWatchedTargetId(int head) |
void |
ignite() |
protected void |
initEntityAI() |
boolean |
isArmored() |
boolean |
isNonBoss() |
private void |
launchWitherSkullToCoords(int p_82209_1_,
double x,
double y,
double z,
boolean invulnerable) |
private void |
launchWitherSkullToEntity(int p_82216_1_,
EntityLivingBase p_82216_2_) |
void |
onLivingUpdate() |
void |
readEntityFromNBT(NBTTagCompound compound) |
static void |
registerFixesWither(DataFixer fixer) |
void |
removeTrackingPlayer(EntityPlayerMP player) |
private float |
rotlerp(float p_82204_1_,
float p_82204_2_,
float p_82204_3_) |
void |
setCustomNameTag(java.lang.String name) |
void |
setInvulTime(int time) |
void |
setInWeb() |
void |
setSwingingArms(boolean swingingArms) |
protected void |
updateAITasks() |
void |
updateWatchedTargetId(int targetOffset,
int newId) |
void |
writeEntityToNBT(NBTTagCompound compound) |
attackEntityAsMob, canDropLoot, getBlockPathWeight, getCanSpawnHere, getFallSound, getSoundCategory, getSplashSound, getSwimSound, isPreventingPlayerRest, isValidLightLevel, onUpdatedetachHome, followLeashSpeed, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, onLeashDistance, setHomePosAndDistance, updateLeashedStatecanAttackClass, canBeLeashedTo, canBeSteered, canDespawn, canEquipItem, canPassengerSteer, canPickUpLoot, clearLeashed, createBodyHelper, createNavigator, dropEquipment, dropLoot, eatGrassBonus, enablePersistence, faceEntity, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropItem, getEntitySenses, getExperiencePoints, getHeldEquipment, getHorizontalFaceSpeed, getItemStackFromSlot, getJumpHelper, getLeashed, getLeashHolder, getLookHelper, getLootTable, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPathPriority, getPrimaryHand, getRenderSizeModifier, getSlotForItemStack, getTalkInterval, getVerticalFaceSpeed, handleStatusUpdate, isAIDisabled, isItemStackInSlot, isLeftHanded, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, onInitialSpawn, playHurtSound, playLivingSound, processInitialInteract, processInteract, registerFixesMob, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setItemStackToSlot, setLeashHolder, setLeftHanded, setMoveForward, setMoveStrafing, setMoveVertical, setNoAI, setPathPriority, spawnExplosionParticle, startRiding, updateDistance, updateEntityActionState, updateEquipmentIfNeededapplyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attemptTeleport, blockUsingShield, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, dismountEntity, dismountRidingEntity, frostWalk, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCapability, getCombatTracker, getEntityAttribute, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLook, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasCapability, hasItemInSlot, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPlayerSleeping, isPotionActive, isPotionApplicable, jump, knockBack, markPotionsDirty, markVelocityChanged, moveRelative, notifyDataManagerChange, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setArrowCountInEntity, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, swingArm, travel, updateActiveHand, updateArmSwingProgress, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata, updateRiddenaddEntityCrashInfo, addPassenger, addTag, addVelocity, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, awardKillScore, canBeAttackedWithItem, canExplosionDestroyBlock, canFitPassenger, canRenderOnFire, canRiderInteract, canTrample, canTriggerWalking, canUseCommand, changeDimension, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getFireImmuneTicks, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLookVec, getLowestRidingEntity, getMaxInPortalTime, getMirroredYaw, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isOverWater, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, makeFlySound, move, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onInsideBlock, onKillEntity, onRemovedFromWorld, onStruckByLightning, playFlySound, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, resetEntityId, resetPositionToBB, sendCommandFeedback, sendMessage, serializeNBT, setAir, setAlwaysRenderNameTag, setCommandStat, setCommandStats, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, turn, updatePassenger, writeToNBT, writeToNBTAtomically, writeToNBTOptionalprivate static final DataParameter<java.lang.Integer> FIRST_HEAD_TARGET
private static final DataParameter<java.lang.Integer> SECOND_HEAD_TARGET
private static final DataParameter<java.lang.Integer> THIRD_HEAD_TARGET
private static final DataParameter<java.lang.Integer>[] HEAD_TARGETS
private static final DataParameter<java.lang.Integer> INVULNERABILITY_TIME
private final float[] xRotationHeads
private final float[] yRotationHeads
private final float[] xRotOHeads
private final float[] yRotOHeads
private final int[] nextHeadUpdate
private final int[] idleHeadUpdates
private int blockBreakCounter
private final BossInfoServer bossInfo
private static final com.google.common.base.Predicate<Entity> NOT_UNDEAD
public EntityWither(World worldIn)
protected void initEntityAI()
initEntityAI in class EntityLivingprotected void entityInit()
entityInit in class EntityLivingpublic static void registerFixesWither(DataFixer fixer)
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT in class EntityLivingpublic void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT in class EntityLivingpublic void setCustomNameTag(java.lang.String name)
setCustomNameTag in class Entityprotected SoundEvent getAmbientSound()
getAmbientSound in class EntityLivingprotected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound in class EntityMobprotected SoundEvent getDeathSound()
getDeathSound in class EntityMobpublic void onLivingUpdate()
onLivingUpdate in class EntityMobprotected void updateAITasks()
updateAITasks in class EntityLivingpublic static boolean canDestroyBlock(Block blockIn)
public void ignite()
public void addTrackingPlayer(EntityPlayerMP player)
addTrackingPlayer in class Entitypublic void removeTrackingPlayer(EntityPlayerMP player)
removeTrackingPlayer in class Entityprivate 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 launchWitherSkullToEntity(int p_82216_1_,
EntityLivingBase p_82216_2_)
private void launchWitherSkullToCoords(int p_82209_1_,
double x,
double y,
double z,
boolean invulnerable)
public void attackEntityWithRangedAttack(EntityLivingBase target, float distanceFactor)
attackEntityWithRangedAttack in interface IRangedAttackMobpublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class EntityMobprotected void dropFewItems(boolean wasRecentlyHit,
int lootingModifier)
dropFewItems in class EntityLivingprotected void despawnEntity()
despawnEntity in class EntityLivingpublic int getBrightnessForRender()
getBrightnessForRender in class Entitypublic void fall(float distance,
float damageMultiplier)
fall in class EntityLivingBasepublic void addPotionEffect(PotionEffect potioneffectIn)
addPotionEffect in class EntityLivingBaseprotected void applyEntityAttributes()
applyEntityAttributes in class EntityMobpublic float getHeadYRotation(int p_82207_1_)
public float getHeadXRotation(int p_82210_1_)
public int getInvulTime()
public void setInvulTime(int time)
public int getWatchedTargetId(int head)
public void updateWatchedTargetId(int targetOffset,
int newId)
public boolean isArmored()
public EnumCreatureAttribute getCreatureAttribute()
getCreatureAttribute in class EntityLivingBaseprotected boolean canBeRidden(Entity entityIn)
canBeRidden in class Entitypublic void setSwingingArms(boolean swingingArms)
setSwingingArms in interface IRangedAttackMob