Package net.minecraft.entity.boss
Class EntityWither
- java.lang.Object
-
- All Implemented Interfaces:
IBossDisplayData,IRangedAttackMob,IMob,IAnimals,org.teavm.jso.JSObject
public class EntityWither extends EntityMob implements IBossDisplayData, IRangedAttackMob
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.EntityLiving
EntityLiving.SpawnPlacementType
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
-
Fields inherited from class net.minecraft.entity.EntityCreature
FLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUID
-
Fields inherited from class net.minecraft.entity.EntityLiving
equipmentDropChances, experienceValue, livingSoundTime
-
Fields inherited from class net.minecraft.entity.EntityLivingBase
arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, field_70741_aB, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressInt
-
Fields inherited from class net.minecraft.entity.Entity
addedToChunk, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, field_181016_an, field_181017_ao, field_181018_ap, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
-
Fields inherited from interface net.minecraft.entity.monster.IMob
mobSelector, VISIBLE_MOB_SELECTOR
-
-
Constructor Summary
Constructors Constructor Description EntityWither(World worldIn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPotionEffect(PotionEffect var1)+ adds a PotionEffect to the entityprotected voidapplyEntityAttributes()booleanattackEntityFrom(DamageSource damagesource, float f)+ Called when the entity is attacked.voidattackEntityWithRangedAttack(EntityLivingBase entitylivingbase, float var2)+ Attack the specified entity using a ranged attack.protected voiddespawnEntity()+ Makes the entity despawn if requirements are reachedprotected voiddropFewItems(boolean var1, int var2)+ Drop 0-2 items of this living's typeprotected voidentityInit()voidfall(float var1, float var2)static booleanfunc_181033_a(Block parBlock)voidfunc_82206_m()floatfunc_82207_a(int parInt1)floatfunc_82210_r(int parInt1)intgetBrightnessForRender(float var1)EnumCreatureAttributegetCreatureAttribute()+ Get this Entity's EnumCreatureAttributeprotected java.lang.StringgetDeathSound()+ Returns the sound this mob makes on death.protected java.lang.StringgetHurtSound()+ Returns the sound this mob makes when it is hurt.intgetInvulTime()protected java.lang.StringgetLivingSound()+ Returns the sound this mob makes while it's alive.intgetTotalArmorValue()+ Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValueintgetWatchedTargetId(int parInt1)+ Returns the target entity ID if present, or -1 if not @param par1 The target offset, should be from 0-2booleanisArmored()+ Returns whether the wither is armored with its boss armor or not by checking whether its health is below half of its maximum.voidmountEntity(Entity var1)+ Called when a player mounts an entity.voidonLivingUpdate()+ Called frequently so the entity can update its state every tick as required.voidreadEntityFromNBT(NBTTagCompound nbttagcompound)+ (abstract) Protected helper method to read subclass entity data from NBT.voidsetInvulTime(int parInt1)voidsetInWeb()+ Sets the Entity inside a web block.protected voidupdateAITasks()voidupdateWatchedTargetId(int targetOffset, int newId)+ Updates the target entity IDvoidwriteEntityToNBT(NBTTagCompound nbttagcompound)+ (abstract) Protected helper method to write subclass entity data to NBT.-
Methods inherited from class net.minecraft.entity.monster.EntityMob
attackEntityAsMob, canDropLoot, getBlockPathWeight, getCanSpawnHere, getFallSoundString, getSplashSound, getSwimSound, isValidLightLevel
-
Methods inherited from class net.minecraft.entity.EntityCreature
detachHome, func_142017_o, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, setHomePosAndDistance, updateLeashedState
-
Methods inherited from class net.minecraft.entity.EntityLiving
allowLeashing, canAttackClass, canBeSteered, canDespawn, canPickUpLoot, clearLeashed, dropEquipment, eatGrassBonus, enablePersistence, faceEntity, func_110146_f, func_175448_a, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmor, getDropItem, getEquipmentInSlot, getExperiencePoints, getHeldItem, getInventory, getLeashed, getLeashedToEntity, getMaxFallHeight, getMaxSpawnedInChunk, getRenderSizeModifier, getTalkInterval, getVerticalFaceSpeed, handleStatusUpdate, interact, interactFirst, isAIDisabled, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, onInitialSpawn, playLivingSound, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setNoAI, spawnExplosionParticle, updateEntityActionState, updateEquipmentIfNeeded
-
Methods inherited from class net.minecraft.entity.EntityLivingBase
addRandomDrop, applyArmorCalculations, applyPotionDamageCalculations, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, func_181013_g, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttributeMap, getCombatTracker, getEntityAttribute, getHealth, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTeam, handleJumpLava, heal, isChild, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, loadPluginData, makePluginData, markPotionsDirty, moveEntityWithHeading, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onKillCommand, onNewPotionEffect, onUpdate, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRidden
-
Methods inherited from class net.minecraft.entity.Entity
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canTriggerWalking, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fromNBT, func_181012_aH, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getBrightness, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getEyeHeight, getFlag, getHorizontalFacing, getHoverEvent, getMaxInPortalTime, getMountedYOffset, getName, getNBTTagCompound, getParts, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getUniqueID, getVectorForRotation, getYOffset, handleWaterMovement, hasCustomName, hashCode, hitByEntity, interactAt, isBurning, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSize, setSneaking, setVelocity, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toNBT, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraft.entity.boss.IBossDisplayData
getDisplayName, getHealth, getMaxHealth
-
-
-
-
Constructor Detail
-
EntityWither
public EntityWither(World worldIn)
-
-
Method Detail
-
entityInit
protected void entityInit()
- Overrides:
entityInitin classEntityLiving
-
writeEntityToNBT
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityLiving
-
readEntityFromNBT
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
+ (abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityLiving
-
getLivingSound
protected java.lang.String getLivingSound()
+ Returns the sound this mob makes while it's alive.- Overrides:
getLivingSoundin classEntityLiving
-
getHurtSound
protected java.lang.String getHurtSound()
+ Returns the sound this mob makes when it is hurt.- Overrides:
getHurtSoundin classEntityMob
-
getDeathSound
protected java.lang.String getDeathSound()
+ Returns the sound this mob makes on death.- Overrides:
getDeathSoundin classEntityMob
-
onLivingUpdate
public void onLivingUpdate()
+ Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons use this to react to sunlight and start to burn.- Overrides:
onLivingUpdatein classEntityMob
-
updateAITasks
protected void updateAITasks()
- Overrides:
updateAITasksin classEntityLiving
-
func_181033_a
public static boolean func_181033_a(Block parBlock)
-
func_82206_m
public void func_82206_m()
-
setInWeb
public void setInWeb()
+ Sets the Entity inside a web block.
-
getTotalArmorValue
public int getTotalArmorValue()
+ Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue- Overrides:
getTotalArmorValuein classEntityLivingBase
-
attackEntityWithRangedAttack
public void attackEntityWithRangedAttack(EntityLivingBase entitylivingbase, float var2)
+ Attack the specified entity using a ranged attack.- Specified by:
attackEntityWithRangedAttackin interfaceIRangedAttackMob
-
attackEntityFrom
public boolean attackEntityFrom(DamageSource damagesource, float f)
+ Called when the entity is attacked.- Overrides:
attackEntityFromin classEntityMob
-
dropFewItems
protected void dropFewItems(boolean var1, int var2)+ Drop 0-2 items of this living's type- Overrides:
dropFewItemsin classEntityLiving
-
despawnEntity
protected void despawnEntity()
+ Makes the entity despawn if requirements are reached- Overrides:
despawnEntityin classEntityLiving
-
getBrightnessForRender
public int getBrightnessForRender(float var1)
- Overrides:
getBrightnessForRenderin classEntity
-
fall
public void fall(float var1, float var2)- Overrides:
fallin classEntityLivingBase
-
addPotionEffect
public void addPotionEffect(PotionEffect var1)
+ adds a PotionEffect to the entity- Overrides:
addPotionEffectin classEntityLivingBase
-
applyEntityAttributes
protected void applyEntityAttributes()
- Overrides:
applyEntityAttributesin classEntityMob
-
func_82207_a
public float func_82207_a(int parInt1)
-
func_82210_r
public float func_82210_r(int parInt1)
-
getInvulTime
public int getInvulTime()
-
setInvulTime
public void setInvulTime(int parInt1)
-
getWatchedTargetId
public int getWatchedTargetId(int parInt1)
+ Returns the target entity ID if present, or -1 if not @param par1 The target offset, should be from 0-2
-
updateWatchedTargetId
public void updateWatchedTargetId(int targetOffset, int newId)+ Updates the target entity ID
-
isArmored
public 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.
-
getCreatureAttribute
public EnumCreatureAttribute getCreatureAttribute()
+ Get this Entity's EnumCreatureAttribute- Overrides:
getCreatureAttributein classEntityLivingBase
-
mountEntity
public void mountEntity(Entity var1)
+ Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.- Overrides:
mountEntityin classEntityLivingBase
-
-