public abstract class EntityLivingBase extends Entity
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, world
Modifier | Constructor and Description |
---|---|
protected |
EntityLivingBase(EntityType<?> type,
World p_i48577_2_) |
Modifier and Type | Method and Description |
---|---|
boolean |
addPotionEffect(PotionEffect p_195064_1_) |
protected float |
applyArmorCalculations(DamageSource source,
float damage) |
protected float |
applyPotionDamageCalculations(DamageSource source,
float damage) |
static boolean |
areAllPotionsAmbient(java.util.Collection<PotionEffect> potionEffects) |
boolean |
attackable() |
boolean |
attackEntityAsMob(Entity entityIn) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
boolean |
attemptTeleport(double x,
double y,
double z) |
void |
baseTick() |
protected void |
blockUsingShield(EntityLivingBase p_190629_1_) |
boolean |
canBeCollidedWith() |
boolean |
canBeHitWithPotion() |
boolean |
canBePushed() |
boolean |
canBeRiddenInWater() |
boolean |
canBreatheUnderwater() |
protected boolean |
canDropLoot() |
boolean |
canEntityBeSeen(Entity entityIn) |
protected void |
collideWithEntity(Entity entityIn) |
protected void |
collideWithNearbyEntities() |
boolean |
curePotionEffects(ItemStack curativeItem)
Removes all potion effects that have curativeItem as a curative item for its effect
|
protected void |
damageArmor(float damage) |
protected void |
damageEntity(DamageSource damageSrc,
float damageAmount) |
protected void |
damageShield(float damage) |
protected int |
decreaseAirSupply(int air) |
protected int |
determineNextAir(int currentAir) |
void |
dismountEntity(Entity entityIn) |
protected void |
dropEquipment(boolean wasRecentlyHit,
int lootingModifier) |
protected void |
dropFewItems(boolean wasRecentlyHit,
int lootingModifier) |
protected void |
dropLoot(boolean wasRecentlyHit,
int lootingModifier,
DamageSource source) |
void |
fall(float distance,
float damageMultiplier) |
protected void |
frostWalk(BlockPos pos) |
boolean |
func_195061_cb() |
protected void |
func_203010_cG() |
float |
getAbsorptionAmount() |
EnumHand |
getActiveHand() |
ItemStack |
getActiveItemStack() |
PotionEffect |
getActivePotionEffect(Potion potionIn) |
java.util.Collection<PotionEffect> |
getActivePotionEffects() |
java.util.Map<Potion,PotionEffect> |
getActivePotionMap() |
float |
getAIMoveSpeed() |
boolean |
getAlwaysRenderNameTagForRender() |
abstract java.lang.Iterable<ItemStack> |
getArmorInventoryList() |
int |
getArrowCountInEntity() |
EntityLivingBase |
getAttackingEntity() |
IAttributeInstance |
getAttribute(IAttribute attribute) |
AbstractAttributeMap |
getAttributeMap() |
<T> LazyOptional<T> |
getCapability(Capability<T> capability,
EnumFacing facing)
Retrieves the Optional handler for the capability requested on the specific side.
|
CombatTracker |
getCombatTracker() |
CreatureAttribute |
getCreatureAttribute() |
protected SoundEvent |
getDeathSound() |
protected int |
getExperiencePoints(EntityPlayer player) |
protected SoundEvent |
getFallSound(int heightIn) |
float |
getHealth() |
ItemStack |
getHeldItem(EnumHand hand) |
ItemStack |
getHeldItemMainhand() |
ItemStack |
getHeldItemOffhand() |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
int |
getIdleTime() |
int |
getItemInUseCount() |
int |
getItemInUseMaxCount() |
abstract ItemStack |
getItemStackFromSlot(EntityEquipmentSlot slotIn) |
protected float |
getJumpUpwardsMotion() |
EntityLivingBase |
getLastAttackedEntity() |
int |
getLastAttackedEntityTime() |
DamageSource |
getLastDamageSource() |
float |
getMaxHealth() |
abstract EnumHandSide |
getPrimaryHand() |
EntityLivingBase |
getRevengeTarget() |
int |
getRevengeTimer() |
java.util.Random |
getRNG() |
float |
getRotationYawHead() |
protected float |
getSoundPitch() |
protected float |
getSoundVolume() |
float |
getSwimAnimation(float partialTicks) |
float |
getSwingProgress(float partialTickTime) |
int |
getTicksElytraFlying() |
int |
getTotalArmorValue() |
protected float |
getWaterSlowDown() |
float |
getYaw(float partialTicks) |
protected void |
handleFluidJump(Tag<Fluid> p_180466_1_) |
void |
handleStatusUpdate(byte id) |
boolean |
hasItemInSlot(EntityEquipmentSlot p_190630_1_) |
void |
heal(float healAmount) |
boolean |
isActiveItemStackBlocking() |
boolean |
isAlive() |
boolean |
isChild() |
boolean |
isElytraFlying() |
boolean |
isEntityUndead() |
boolean |
isHandActive() |
protected boolean |
isMovementBlocked() |
boolean |
isOnLadder() |
protected boolean |
isPlayer() |
boolean |
isPlayerSleeping() |
boolean |
isPotionActive(Potion potionIn) |
boolean |
isPotionApplicable(PotionEffect potioneffectIn) |
boolean |
isServerWorld() |
boolean |
isSpinAttacking() |
protected void |
jump() |
void |
knockBack(Entity entityIn,
float strength,
double xRatio,
double zRatio) |
protected float |
lerp(float p_205016_1_,
float p_205016_2_,
float partialTicks) |
void |
livingTick() |
void |
lookAt(EntityAnchorArgument.Type p_200602_1_,
Vec3d p_200602_2_) |
protected void |
markPotionsDirty() |
protected void |
markVelocityChanged() |
void |
moveRelative(float strafe,
float up,
float forward,
float friction) |
void |
notifyDataManagerChange(DataParameter<?> key) |
protected void |
onChangedPotionEffect(PotionEffect id,
boolean p_70695_2_) |
void |
onDeath(DamageSource cause) |
protected void |
onDeathUpdate() |
protected void |
onFinishedPotionEffect(PotionEffect effect) |
void |
onItemPickup(Entity entityIn,
int quantity) |
protected void |
onItemUseFinish() |
void |
onKillCommand() |
protected void |
onNewPotionEffect(PotionEffect id) |
protected void |
outOfWorld() |
void |
performHurtAnimation() |
protected void |
playEquipSound(ItemStack stack) |
protected void |
playHurtSound(DamageSource source) |
void |
readAdditional(NBTTagCompound compound) |
protected void |
registerAttributes() |
protected void |
registerData() |
void |
remove(boolean keepData) |
PotionEffect |
removeActivePotionEffect(Potion potioneffectin) |
boolean |
removePotionEffect(Potion p_195063_1_) |
void |
renderBrokenItemStack(ItemStack stack) |
void |
resetActiveHand() |
protected void |
resetPotionEffectMetadata() |
void |
sendEndCombat() |
void |
sendEnterCombat() |
void |
setAbsorptionAmount(float amount) |
void |
setActiveHand(EnumHand hand) |
void |
setAIMoveSpeed(float speedIn) |
void |
setArrowCountInEntity(int count) |
void |
setHeadRotation(float yaw,
int pitch) |
void |
setHealth(float health) |
void |
setHeldItem(EnumHand hand,
ItemStack stack) |
abstract void |
setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
void |
setJumping(boolean jumping) |
void |
setLastAttackedEntity(Entity entityIn) |
protected void |
setLivingFlag(int key,
boolean value) |
void |
setPartying(BlockPos pos,
boolean isPartying) |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport) |
void |
setRenderYawOffset(float offset) |
void |
setRevengeTarget(EntityLivingBase livingBase) |
void |
setRotationYawHead(float rotation) |
void |
setSprinting(boolean sprinting) |
boolean |
shouldRiderFaceForward(EntityPlayer player)
Returns true if the entity's rider (EntityPlayer) should face forward when mounted.
|
protected void |
spinAttack(EntityLivingBase p_204804_1_) |
void |
startSpinAttack(int p_204803_1_) |
void |
stopActiveHand() |
void |
stopRiding() |
void |
swingArm(EnumHand hand) |
void |
tick() |
void |
travel(float strafe,
float vertical,
float forward) |
protected void |
updateActiveHand() |
protected void |
updateArmSwingProgress() |
protected float |
updateDistance(float p_110146_1_,
float p_110146_2_) |
protected void |
updateEntityActionState() |
protected void |
updateFallState(double y,
boolean onGroundIn,
IBlockState state,
BlockPos pos) |
protected void |
updateItemUse(ItemStack stack,
int eatingParticleCount) |
protected void |
updatePotionEffects() |
protected void |
updatePotionMetadata() |
void |
updateRidden() |
protected void |
updateSpinAttack(AxisAlignedBB p_204801_1_,
AxisAlignedBB p_204801_2_) |
void |
writeAdditional(NBTTagCompound compound) |
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, awardKillScore, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canTriggerWalking, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, func_212321_a, getAdjustedHorizontalFacing, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyePosition, getFireImmuneTicks, getFlag, getForward, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMountedYOffset, getName, getParts, getPassengers, getPermissionLevel, getPitch, getPitchYaw, getPortalCooldown, getPosition, getPositionVector, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getScoreboardName, getServer, getSoundCategory, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, getYOffset, handleFluidAcceleration, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPassenger, isPassenger, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isSwimming, isWet, makeFlySound, move, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillEntity, onRemovedFromWorld, onStruckByLightning, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, processInitialInteract, pushOutOfBlocks, rayTrace, read, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setDropItemsWhenDead, setEntityId, setFire, setFlag, setGlowing, setInvisible, setInvulnerable, setInWeb, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, toString, updatePassenger, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getEntity, getPickedResult, isCreatureType, serializeNBT, shouldRenderInPass, shouldRiderSit
getCapability
public static final IAttribute SWIM_SPEED
public static final IAttribute NAMETAG_DISTANCE
protected static final DataParameter<java.lang.Byte> LIVING_FLAGS
public boolean isSwingInProgress
public EnumHand swingingHand
public int swingProgressInt
public int arrowHitTimer
public int hurtTime
public int maxHurtTime
public float attackedAtYaw
public int deathTime
public float prevSwingProgress
public float swingProgress
protected int ticksSinceLastSwing
public float prevLimbSwingAmount
public float limbSwingAmount
public float limbSwing
public int maxHurtResistantTime
public float prevCameraPitch
public float cameraPitch
public float randomUnused2
public float randomUnused1
public float renderYawOffset
public float prevRenderYawOffset
public float rotationYawHead
public float prevRotationYawHead
public float jumpMovementFactor
protected EntityPlayer attackingPlayer
protected int recentlyHit
protected boolean dead
protected int idleTime
protected float prevOnGroundSpeedFactor
protected float onGroundSpeedFactor
protected float movedDistance
protected float prevMovedDistance
protected float unused180
protected int scoreValue
protected float lastDamage
protected boolean isJumping
public float moveStrafing
public float moveVertical
public float moveForward
public float randomYawVelocity
protected int newPosRotationIncrements
protected double interpTargetX
protected double interpTargetY
protected double interpTargetZ
protected double interpTargetYaw
protected double interpTargetPitch
protected double field_208001_bq
protected int field_208002_br
protected ItemStack activeItemStack
protected int activeItemStackUseCount
protected int ticksElytraFlying
protected int spinAttackDuration
protected EntityLivingBase(EntityType<?> type, World p_i48577_2_)
public void onKillCommand()
onKillCommand
in class Entity
protected void registerData()
registerData
in class Entity
protected void registerAttributes()
protected void updateFallState(double y, boolean onGroundIn, IBlockState state, BlockPos pos)
updateFallState
in class Entity
public boolean canBreatheUnderwater()
public float getSwimAnimation(float partialTicks)
protected float lerp(float p_205016_1_, float p_205016_2_, float partialTicks)
protected void frostWalk(BlockPos pos)
public boolean isChild()
public boolean canBeRiddenInWater()
canBeRiddenInWater
in class Entity
protected void onDeathUpdate()
protected boolean canDropLoot()
protected int decreaseAirSupply(int air)
protected int determineNextAir(int currentAir)
protected int getExperiencePoints(EntityPlayer player)
protected boolean isPlayer()
public java.util.Random getRNG()
@Nullable public EntityLivingBase getRevengeTarget()
public int getRevengeTimer()
public void setRevengeTarget(@Nullable EntityLivingBase livingBase)
public EntityLivingBase getLastAttackedEntity()
public int getLastAttackedEntityTime()
public void setLastAttackedEntity(Entity entityIn)
public int getIdleTime()
protected void playEquipSound(ItemStack stack)
public void writeAdditional(NBTTagCompound compound)
writeAdditional
in class Entity
public void readAdditional(NBTTagCompound compound)
readAdditional
in class Entity
protected void updatePotionEffects()
protected void updatePotionMetadata()
public static boolean areAllPotionsAmbient(java.util.Collection<PotionEffect> potionEffects)
protected void resetPotionEffectMetadata()
public boolean func_195061_cb()
public boolean curePotionEffects(ItemStack curativeItem)
curativeItem
- The itemstack we are using to cure potion effectspublic java.util.Collection<PotionEffect> getActivePotionEffects()
public java.util.Map<Potion,PotionEffect> getActivePotionMap()
public boolean isPotionActive(Potion potionIn)
@Nullable public PotionEffect getActivePotionEffect(Potion potionIn)
public boolean addPotionEffect(PotionEffect p_195064_1_)
public boolean isPotionApplicable(PotionEffect potioneffectIn)
public boolean isEntityUndead()
@Nullable public PotionEffect removeActivePotionEffect(@Nullable Potion potioneffectin)
public boolean removePotionEffect(Potion p_195063_1_)
protected void onNewPotionEffect(PotionEffect id)
protected void onChangedPotionEffect(PotionEffect id, boolean p_70695_2_)
protected void onFinishedPotionEffect(PotionEffect effect)
public void heal(float healAmount)
public float getHealth()
public void setHealth(float health)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class Entity
protected void blockUsingShield(EntityLivingBase p_190629_1_)
@Nullable public DamageSource getLastDamageSource()
protected void playHurtSound(DamageSource source)
public void renderBrokenItemStack(ItemStack stack)
public void onDeath(DamageSource cause)
protected void dropLoot(boolean wasRecentlyHit, int lootingModifier, DamageSource source)
protected void dropEquipment(boolean wasRecentlyHit, int lootingModifier)
public void knockBack(Entity entityIn, float strength, double xRatio, double zRatio)
@Nullable protected SoundEvent getHurtSound(DamageSource damageSourceIn)
@Nullable protected SoundEvent getDeathSound()
protected SoundEvent getFallSound(int heightIn)
protected void dropFewItems(boolean wasRecentlyHit, int lootingModifier)
public boolean isOnLadder()
public void performHurtAnimation()
performHurtAnimation
in class Entity
public int getTotalArmorValue()
protected void damageArmor(float damage)
protected void damageShield(float damage)
protected float applyArmorCalculations(DamageSource source, float damage)
protected float applyPotionDamageCalculations(DamageSource source, float damage)
protected void damageEntity(DamageSource damageSrc, float damageAmount)
public CombatTracker getCombatTracker()
@Nullable public EntityLivingBase getAttackingEntity()
public final float getMaxHealth()
public final int getArrowCountInEntity()
public final void setArrowCountInEntity(int count)
public void swingArm(EnumHand hand)
public void handleStatusUpdate(byte id)
handleStatusUpdate
in class Entity
protected void outOfWorld()
outOfWorld
in class Entity
protected void updateArmSwingProgress()
public IAttributeInstance getAttribute(IAttribute attribute)
public AbstractAttributeMap getAttributeMap()
public CreatureAttribute getCreatureAttribute()
public ItemStack getHeldItemMainhand()
public ItemStack getHeldItemOffhand()
public boolean hasItemInSlot(EntityEquipmentSlot p_190630_1_)
public abstract java.lang.Iterable<ItemStack> getArmorInventoryList()
getArmorInventoryList
in class Entity
public abstract ItemStack getItemStackFromSlot(EntityEquipmentSlot slotIn)
public abstract void setItemStackToSlot(EntityEquipmentSlot slotIn, ItemStack stack)
setItemStackToSlot
in class Entity
public void setSprinting(boolean sprinting)
setSprinting
in class Entity
protected float getSoundVolume()
protected float getSoundPitch()
protected boolean isMovementBlocked()
public void dismountEntity(Entity entityIn)
public boolean getAlwaysRenderNameTagForRender()
getAlwaysRenderNameTagForRender
in class Entity
protected float getJumpUpwardsMotion()
protected void jump()
protected void func_203010_cG()
protected float getWaterSlowDown()
public void travel(float strafe, float vertical, float forward)
public float getAIMoveSpeed()
public void setAIMoveSpeed(float speedIn)
public boolean attackEntityAsMob(Entity entityIn)
public boolean isPlayerSleeping()
protected float updateDistance(float p_110146_1_, float p_110146_2_)
public void livingTick()
protected void updateEntityActionState()
protected void collideWithNearbyEntities()
protected void updateSpinAttack(AxisAlignedBB p_204801_1_, AxisAlignedBB p_204801_2_)
protected void collideWithEntity(Entity entityIn)
protected void spinAttack(EntityLivingBase p_204804_1_)
public void startSpinAttack(int p_204803_1_)
public boolean isSpinAttacking()
public void stopRiding()
stopRiding
in class Entity
public void updateRidden()
updateRidden
in class Entity
public void setPositionAndRotationDirect(double x, double y, double z, float yaw, float pitch, int posRotationIncrements, boolean teleport)
setPositionAndRotationDirect
in class Entity
public void setHeadRotation(float yaw, int pitch)
setHeadRotation
in class Entity
public void setJumping(boolean jumping)
public void onItemPickup(Entity entityIn, int quantity)
public boolean canEntityBeSeen(Entity entityIn)
public float getSwingProgress(float partialTickTime)
public boolean isServerWorld()
public boolean canBeCollidedWith()
canBeCollidedWith
in class Entity
public boolean canBePushed()
canBePushed
in class Entity
protected void markVelocityChanged()
markVelocityChanged
in class Entity
public float getRotationYawHead()
getRotationYawHead
in class Entity
public void setRotationYawHead(float rotation)
setRotationYawHead
in class Entity
public void setRenderYawOffset(float offset)
setRenderYawOffset
in class Entity
public float getAbsorptionAmount()
public void setAbsorptionAmount(float amount)
public void sendEnterCombat()
public void sendEndCombat()
protected void markPotionsDirty()
public abstract EnumHandSide getPrimaryHand()
public boolean isHandActive()
public EnumHand getActiveHand()
protected void updateActiveHand()
protected void setLivingFlag(int key, boolean value)
public void setActiveHand(EnumHand hand)
public void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange
in class Entity
public void lookAt(EntityAnchorArgument.Type p_200602_1_, Vec3d p_200602_2_)
protected void updateItemUse(ItemStack stack, int eatingParticleCount)
protected void onItemUseFinish()
public ItemStack getActiveItemStack()
public int getItemInUseCount()
public int getItemInUseMaxCount()
public void stopActiveHand()
public void resetActiveHand()
public boolean isActiveItemStackBlocking()
public boolean isElytraFlying()
public int getTicksElytraFlying()
public boolean attemptTeleport(double x, double y, double z)
public boolean canBeHitWithPotion()
public boolean attackable()
public void setPartying(BlockPos pos, boolean isPartying)
public boolean shouldRiderFaceForward(EntityPlayer player)
player
- The player who is riding the entity.public void moveRelative(float strafe, float up, float forward, float friction)
moveRelative
in class Entity
public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable EnumFacing facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class CapabilityProvider<Entity>