public class EntityLlama extends AbstractChestHorse implements IRangedAttackMob
EntityLiving.SpawnPlacementTypecanGallop, gallopTime, horseChest, horseJumping, JUMP_STRENGTH, jumpPower, sprintCounter, tailCounter, temperspawnableBlockforcedAge, forcedAgeTimer, growingAgeFLEEING_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, world| Constructor and Description |
|---|
EntityLlama(World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyEntityAttributes() |
void |
attackEntityWithRangedAttack(EntityLivingBase target,
float distanceFactor)
Attack the specified entity using a ranged attack.
|
boolean |
canBeSaddled() |
boolean |
canBeSteered()
returns true if all the conditions for steering the entity are met.
|
boolean |
canEatGrass() |
boolean |
canMateWith(EntityAnimal otherAnimal)
Returns true if the mob is currently able to mate with the specified mob.
|
EntityLlama |
createChild(EntityAgeable ageable) |
protected void |
entityInit() |
void |
fall(float distance,
float damageMultiplier) |
protected double |
followLeashSpeed() |
protected void |
followMother() |
protected SoundEvent |
getAmbientSound() |
protected SoundEvent |
getAngrySound() |
EntityLlama |
getCaravanHead() |
EnumDyeColor |
getColor() |
protected SoundEvent |
getDeathSound() |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
int |
getInventoryColumns() |
protected int |
getInventorySize() |
protected ResourceLocation |
getLootTable() |
int |
getMaxTemper() |
double |
getMountedYOffset()
Returns the Y offset from the entity's position for any entity riding this one.
|
int |
getStrength() |
int |
getVariant() |
protected boolean |
handleEating(EntityPlayer player,
ItemStack stack) |
boolean |
hasCaravanTrail() |
boolean |
hasColor() |
boolean |
inCaravan() |
protected void |
initEntityAI() |
boolean |
isArmor(ItemStack stack) |
protected boolean |
isMovementBlocked()
Dead and sleeping entities cannot move
|
void |
joinCaravan(EntityLlama caravanHeadIn) |
void |
leaveCaravan() |
void |
makeMad() |
IEntityLivingData |
onInitialSpawn(DifficultyInstance difficulty,
IEntityLivingData livingdata)
Called only once on an entity when first time spawned, via egg, mob spawner, natural spawning etc, but not called
when entity is reloaded from nbt.
|
void |
onInventoryChanged(IInventory invBasic)
Called by InventoryBasic.onInventoryChanged() on a array that is never filled.
|
protected void |
playChestEquipSound() |
protected void |
playStepSound(BlockPos pos,
Block blockIn) |
void |
readEntityFromNBT(NBTTagCompound compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setSwingingArms(boolean swingingArms) |
void |
setVariant(int variantIn) |
protected void |
updateHorseSlots()
Updates the items in the saddle and armor slots of the horse's inventory.
|
void |
updatePassenger(Entity passenger) |
boolean |
wearsArmor() |
void |
writeEntityToNBT(NBTTagCompound compound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
hasChest, onDeath, processInteract, registerFixesAbstractChestHorse, replaceItemInInventory, setChestedattackEntityFrom, canBeLeashedTo, canBePushed, canJump, canMate, getCapability, getClosestHorse, getControllingPassenger, getEyeHeight, getGrassEatingAmount, getHorseJumpStrength, getHorseSize, getHorseWatchableBoolean, getMaxSpawnedInChunk, getModifiedJumpStrength, getModifiedMaxHealth, getModifiedMovementSpeed, getMouthOpennessAngle, getOwnerUniqueId, getRearingAmount, getSoundVolume, getTalkInterval, getTemper, handleStartJump, handleStatusUpdate, handleStopJump, hasCapability, increaseTemper, initHorseChest, isBreeding, isBreedingItem, isEatingHaystack, isHorseJumping, isHorseSaddled, isOnLadder, isRearing, isTame, mountTo, onLeashDistance, onLivingUpdate, onUpdate, openGUI, playGallopSound, registerFixesAbstractHorse, setBreeding, setEatingHaystack, setHorseJumping, setHorseSaddled, setHorseTamed, setHorseWatchableBoolean, setJumpPower, setOffspringAttributes, setOwnerUniqueId, setRearing, setScaleForAge, setTamedBy, setTemper, spawnHorseParticles, travelcanDespawn, consumeItemFromStack, getBlockPathWeight, getCanSpawnHere, getExperiencePoints, getLoveCause, getYOffset, isInLove, resetInLove, setInLove, updateAITasksaddGrowth, ageUp, getGrowingAge, holdingSpawnEggOfClass, isChild, notifyDataManagerChange, onGrowingAdult, setGrowingAge, setScale, setSizedetachHome, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, setHomePosAndDistance, updateLeashedStatecanAttackClass, canEquipItem, canPassengerSteer, canPickUpLoot, clearLeashed, createBodyHelper, createNavigator, despawnEntity, dropEquipment, dropFewItems, dropLoot, eatGrassBonus, enablePersistence, faceEntity, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropItem, getEntitySenses, getHeldEquipment, getHorizontalFaceSpeed, getItemStackFromSlot, getJumpHelper, getLeashed, getLeashHolder, getLookHelper, getMaxFallHeight, getMoveHelper, getNavigator, getPathPriority, getPrimaryHand, getRenderSizeModifier, getSlotForItemStack, getVerticalFaceSpeed, isAIDisabled, isItemStackInSlot, isLeftHanded, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, playHurtSound, playLivingSound, processInitialInteract, registerFixesMob, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setItemStackToSlot, setLeashHolder, setLeftHanded, setMoveForward, setMoveStrafing, setMoveVertical, setNoAI, setPathPriority, spawnExplosionParticle, startRiding, updateDistance, updateEntityActionState, updateEquipmentIfNeededaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, blockUsingShield, canBeCollidedWith, canBeHitWithPotion, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, dismountEntity, dismountRidingEntity, frostWalk, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLook, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasItemInSlot, heal, isActiveItemStackBlocking, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isPlayer, isPlayerSleeping, isPotionActive, isPotionApplicable, jump, knockBack, markPotionsDirty, markVelocityChanged, moveRelative, onChangedPotionEffect, 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, updateActiveHand, updateArmSwingProgress, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata, updateRiddenaddEntityCrashInfo, addPassenger, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, awardKillScore, canBeAttackedWithItem, canBeRidden, 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, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getFireImmuneTicks, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLookVec, getLowestRidingEntity, getMaxInPortalTime, getMirroredYaw, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSoundCategory, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, 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, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetPositionToBB, sendCommandFeedback, sendMessage, serializeNBT, setAir, setAlwaysRenderNameTag, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, turn, writeToNBT, writeToNBTAtomically, writeToNBTOptionalpublic EntityLlama(World worldIn)
public int getStrength()
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT in class AbstractChestHorsepublic void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT in class AbstractChestHorseprotected void initEntityAI()
initEntityAI in class AbstractHorseprotected void applyEntityAttributes()
applyEntityAttributes in class AbstractChestHorseprotected void entityInit()
entityInit in class AbstractChestHorsepublic int getVariant()
public void setVariant(int variantIn)
protected int getInventorySize()
getInventorySize in class AbstractChestHorsepublic void updatePassenger(Entity passenger)
updatePassenger in class AbstractHorsepublic double getMountedYOffset()
getMountedYOffset in class AbstractChestHorsepublic boolean canBeSteered()
canBeSteered in class AbstractHorseprotected boolean handleEating(EntityPlayer player, ItemStack stack)
handleEating in class AbstractHorseprotected boolean isMovementBlocked()
isMovementBlocked in class AbstractHorsepublic IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, IEntityLivingData livingdata)
onInitialSpawn in class AbstractHorsepublic boolean hasColor()
protected SoundEvent getAngrySound()
getAngrySound in class AbstractChestHorseprotected SoundEvent getAmbientSound()
getAmbientSound in class AbstractHorseprotected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound in class AbstractHorseprotected SoundEvent getDeathSound()
getDeathSound in class AbstractHorseprotected void playStepSound(BlockPos pos, Block blockIn)
playStepSound in class AbstractHorseprotected void playChestEquipSound()
playChestEquipSound in class AbstractChestHorsepublic void makeMad()
makeMad in class AbstractHorseprotected ResourceLocation getLootTable()
getLootTable in class EntityLivingpublic int getInventoryColumns()
getInventoryColumns in class AbstractChestHorsepublic boolean wearsArmor()
wearsArmor in class AbstractHorsepublic boolean isArmor(ItemStack stack)
isArmor in class AbstractHorsepublic boolean canBeSaddled()
canBeSaddled in class AbstractHorsepublic void onInventoryChanged(IInventory invBasic)
onInventoryChanged in interface IInventoryChangedListeneronInventoryChanged in class AbstractHorseprotected void updateHorseSlots()
updateHorseSlots in class AbstractHorsepublic EnumDyeColor getColor()
public int getMaxTemper()
getMaxTemper in class AbstractHorsepublic boolean canMateWith(EntityAnimal otherAnimal)
canMateWith in class AbstractHorsepublic EntityLlama createChild(EntityAgeable ageable)
createChild in class AbstractHorsepublic void fall(float distance,
float damageMultiplier)
fall in class AbstractHorsepublic void leaveCaravan()
public void joinCaravan(EntityLlama caravanHeadIn)
public boolean hasCaravanTrail()
public boolean inCaravan()
public EntityLlama getCaravanHead()
protected double followLeashSpeed()
followLeashSpeed in class EntityCreatureprotected void followMother()
followMother in class AbstractHorsepublic boolean canEatGrass()
canEatGrass in class AbstractHorsepublic void attackEntityWithRangedAttack(EntityLivingBase target, float distanceFactor)
attackEntityWithRangedAttack in interface IRangedAttackMobpublic void setSwingingArms(boolean swingingArms)
setSwingingArms in interface IRangedAttackMob