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_UUID
experienceValue, inventoryArmorDropChances, inventoryHandsDropChances, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasks
activeItemStack, 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, unused180
addedToChunk, 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, world
MOB_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, onUpdate
detachHome, followLeashSpeed, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, onLeashDistance, setHomePosAndDistance, updateLeashedState
canAttackClass, 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, updateEquipmentIfNeeded
applyArmorCalculations, 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, updateRidden
addEntityCrashInfo, 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, writeToNBTOptional
private 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 EntityLiving
protected void entityInit()
entityInit
in class EntityLiving
public static void registerFixesWither(DataFixer fixer)
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT
in class EntityLiving
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class EntityLiving
public void setCustomNameTag(java.lang.String name)
setCustomNameTag
in class Entity
protected SoundEvent getAmbientSound()
getAmbientSound
in class EntityLiving
protected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound
in class EntityMob
protected SoundEvent getDeathSound()
getDeathSound
in class EntityMob
public void onLivingUpdate()
onLivingUpdate
in class EntityMob
protected void updateAITasks()
updateAITasks
in class EntityLiving
public static boolean canDestroyBlock(Block blockIn)
public void ignite()
public void addTrackingPlayer(EntityPlayerMP player)
addTrackingPlayer
in class Entity
public void removeTrackingPlayer(EntityPlayerMP player)
removeTrackingPlayer
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 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 IRangedAttackMob
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityMob
protected void dropFewItems(boolean wasRecentlyHit, int lootingModifier)
dropFewItems
in class EntityLiving
protected void despawnEntity()
despawnEntity
in class EntityLiving
public int getBrightnessForRender()
getBrightnessForRender
in class Entity
public void fall(float distance, float damageMultiplier)
fall
in class EntityLivingBase
public void addPotionEffect(PotionEffect potioneffectIn)
addPotionEffect
in class EntityLivingBase
protected void applyEntityAttributes()
applyEntityAttributes
in class EntityMob
public 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 EntityLivingBase
protected boolean canBeRidden(Entity entityIn)
canBeRidden
in class Entity
public void setSwingingArms(boolean swingingArms)
setSwingingArms
in interface IRangedAttackMob