public class EntityWither extends EntityMob implements IRangedAttackMob
EntityLiving.SpawnPlacementTypeFLEEING_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)
adds a PotionEffect to the entity
|
void |
addTrackingPlayer(EntityPlayerMP player)
Add the given player to the list of players tracking this entity.
|
protected void |
applyEntityAttributes() |
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
void |
attackEntityWithRangedAttack(EntityLivingBase target,
float distanceFactor)
Attack the specified entity using a ranged attack.
|
protected boolean |
canBeRidden(Entity entityIn) |
static boolean |
canDestroyBlock(Block blockIn) |
protected void |
despawnEntity()
Makes the entity despawn if requirements are reached
|
protected void |
dropFewItems(boolean wasRecentlyHit,
int lootingModifier)
Drop 0-2 items of this living's type
|
protected void |
entityInit() |
void |
fall(float distance,
float damageMultiplier) |
protected SoundEvent |
getAmbientSound() |
int |
getBrightnessForRender() |
EnumCreatureAttribute |
getCreatureAttribute()
Get this Entity's EnumCreatureAttribute
|
protected SoundEvent |
getDeathSound() |
float |
getHeadXRotation(int p_82210_1_) |
float |
getHeadYRotation(int p_82207_1_) |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
int |
getInvulTime() |
int |
getWatchedTargetId(int head)
Returns the target entity ID if present, or -1 if not @param par1 The target offset, should be from 0-2
|
void |
ignite()
Initializes this Wither's explosion sequence and makes it invulnerable.
|
protected void |
initEntityAI() |
boolean |
isArmored()
Returns whether the wither is armored with its boss armor or not by checking whether its health is below half of
its maximum.
|
boolean |
isNonBoss()
Returns false if this Entity is a boss, true otherwise.
|
void |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required.
|
void |
readEntityFromNBT(NBTTagCompound compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
static void |
registerFixesWither(DataFixer fixer) |
void |
removeTrackingPlayer(EntityPlayerMP player)
Removes the given player from the list of players tracking this entity.
|
void |
setCustomNameTag(java.lang.String name)
Sets the custom name tag for this entity
|
void |
setInvulTime(int time) |
void |
setInWeb()
Sets the Entity inside a web block.
|
void |
setSwingingArms(boolean swingingArms) |
protected void |
updateAITasks() |
void |
updateWatchedTargetId(int targetOffset,
int newId)
Updates the target entity ID
|
void |
writeEntityToNBT(NBTTagCompound compound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
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, writeToNBTOptionalpublic 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 setInWeb()
public void addTrackingPlayer(EntityPlayerMP player)
addTrackingPlayer in class Entitypublic void removeTrackingPlayer(EntityPlayerMP player)
Entity.addTrackingPlayer(net.minecraft.entity.player.EntityPlayerMP) for
more information on tracking.removeTrackingPlayer in class Entitypublic 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 boolean isNonBoss()
public void setSwingingArms(boolean swingingArms)
setSwingingArms in interface IRangedAttackMob