public class EntityRabbit extends EntityAnimal
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
EntityRabbit.AIAvoidEntity<T extends Entity> |
(package private) static class |
EntityRabbit.AIEvilAttack |
(package private) static class |
EntityRabbit.AIPanic |
(package private) static class |
EntityRabbit.AIRaidFarm |
(package private) static class |
EntityRabbit.EnumMoveType |
class |
EntityRabbit.RabbitJumpHelper |
(package private) static class |
EntityRabbit.RabbitMoveHelper |
static class |
EntityRabbit.RabbitTypeData |
EntityLiving.SpawnPlacementType| Modifier and Type | Field and Description |
|---|---|
private EntityRabbit.AIAvoidEntity<EntityWolf> |
aiAvoidWolves |
private int |
carrotTicks |
private int |
currentMoveTypeDuration |
private int |
field_175535_bn |
private boolean |
field_175536_bo |
private boolean |
field_175537_bp |
private int |
field_175540_bm |
private EntityPlayer |
field_175543_bt |
private EntityRabbit.EnumMoveType |
moveType |
spawnableBlockfield_175502_b, field_175503_c, growingAgeFLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUIDequipmentDropChances, experienceValue, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasksarrowHitTimer, 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, swingProgressIntaddedToChunk, 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| Constructor and Description |
|---|
EntityRabbit(World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRandomDrop()
Causes this Entity to drop a random item.
|
protected void |
applyEntityAttributes() |
boolean |
attackEntityAsMob(Entity entityIn) |
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
private void |
calculateRotationYaw(double x,
double z) |
EntityRabbit |
createChild(EntityAgeable ageable) |
protected void |
createEatingParticles() |
void |
doMovementAction(EntityRabbit.EnumMoveType movetype) |
protected void |
dropFewItems(boolean p_70628_1_,
int p_70628_2_)
Drop 0-2 items of this living's type
|
protected void |
entityInit() |
private void |
func_175517_cu() |
private void |
func_175518_cr() |
private void |
func_175520_cs() |
float |
func_175521_o(float p_175521_1_) |
boolean |
func_175523_cj() |
protected java.lang.String |
getDeathSound()
Returns the sound this mob makes on death.
|
protected java.lang.String |
getHurtSound()
Returns the sound this mob makes when it is hurt.
|
protected java.lang.String |
getJumpingSound() |
protected float |
getJumpUpwardsMotion() |
protected java.lang.String |
getLivingSound()
Returns the sound this mob makes while it's alive.
|
protected int |
getMoveTypeDuration()
Returns duration of the current
move type |
int |
getRabbitType() |
int |
getTotalArmorValue()
Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue
|
void |
handleStatusUpdate(byte id) |
boolean |
isBreedingItem(ItemStack stack)
Checks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on
the animal type)
|
private boolean |
isCarrotEaten()
Returns true if
carrotTicks has reached zero |
private boolean |
isRabbitBreedingItem(Item itemIn) |
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 |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required.
|
void |
readEntityFromNBT(NBTTagCompound tagCompund)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setJumping(boolean jump,
EntityRabbit.EnumMoveType moveTypeIn) |
void |
setMovementSpeed(double newSpeed) |
void |
setMoveType(EntityRabbit.EnumMoveType type) |
void |
setRabbitType(int rabbitTypeId) |
void |
spawnRunningParticles()
Attempts to create sprinting particles if the entity is sprinting and not in water.
|
void |
updateAITasks() |
private void |
updateMoveTypeDuration() |
void |
writeEntityToNBT(NBTTagCompound tagCompound)
(abstract) Protected helper method to write subclass entity data to NBT.
|
canDespawn, canMateWith, consumeItemFromStack, getBlockPathWeight, getCanSpawnHere, getExperiencePoints, getPlayerInLove, getTalkInterval, interact, isInLove, resetInLove, setInLoveaddGrowth, func_175501_a, getGrowingAge, isChild, onGrowingAdult, setGrowingAge, setScale, setScaleForAge, setSizedetachHome, func_142017_o, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, setHomePosAndDistance, updateLeashedStateallowLeashing, canAttackClass, canBeSteered, canPickUpLoot, clearLeashed, despawnEntity, dropEquipment, eatGrassBonus, enablePersistence, faceEntity, func_110146_f, func_175448_a, getArmorItemForSlot, getArmorPosition, getAttackTarget, getCurrentArmor, getDropItem, getEntitySenses, getEquipmentInSlot, getHeldItem, getInventory, getJumpHelper, getLeashed, getLeashedToEntity, getLookHelper, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getNewNavigator, getRenderSizeModifier, getVerticalFaceSpeed, interactFirst, isAIDisabled, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, onUpdate, playLivingSound, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setCurrentItemOrArmor, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setEquipmentDropChance, setLeashedToEntity, setMoveForward, setNoAI, spawnExplosionParticle, updateEntityActionState, updateEquipmentIfNeededaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, canBeCollidedWith, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, damageArmor, damageEntity, decreaseAirSupply, dismountEntity, fall, func_181013_g, func_94060_bK, getAbsorptionAmount, getActivePotionEffect, getActivePotionEffects, getAge, getAIMoveSpeed, getAITarget, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getFallSoundString, getHealth, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTeam, handleJumpLava, heal, isEntityAlive, isEntityUndead, isMovementBlocked, isOnLadder, isOnSameTeam, isOnTeam, isPlayer, isPlayerSleeping, isPotionActive, isPotionActive, isPotionApplicable, jump, kill, knockBack, markPotionsDirty, mountEntity, moveEntityWithHeading, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onKillCommand, onNewPotionEffect, performHurtAnimation, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRiddenaddChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, canTriggerWalking, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, func_174817_o, func_181012_aH, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, 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, getSplashSound, getSwimSound, 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, isSpectatedByPlayer, isSprinting, isWet, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setSilent, setSneaking, setVelocity, setWorld, shouldSetPosAfterLoading, toString, travelToDimension, updateRiderPosition, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptionalprivate EntityRabbit.AIAvoidEntity<EntityWolf> aiAvoidWolves
private int field_175540_bm
private int field_175535_bn
private boolean field_175536_bo
private boolean field_175537_bp
private int currentMoveTypeDuration
private EntityRabbit.EnumMoveType moveType
private int carrotTicks
private EntityPlayer field_175543_bt
public EntityRabbit(World worldIn)
protected float getJumpUpwardsMotion()
getJumpUpwardsMotion in class EntityLivingBasepublic void setMoveType(EntityRabbit.EnumMoveType type)
public float func_175521_o(float p_175521_1_)
public void setMovementSpeed(double newSpeed)
public void setJumping(boolean jump,
EntityRabbit.EnumMoveType moveTypeIn)
public void doMovementAction(EntityRabbit.EnumMoveType movetype)
public boolean func_175523_cj()
protected void entityInit()
entityInit in class EntityAgeablepublic void updateAITasks()
updateAITasks in class EntityAnimalpublic void spawnRunningParticles()
spawnRunningParticles in class Entityprivate void calculateRotationYaw(double x,
double z)
private void func_175518_cr()
private void func_175520_cs()
private void updateMoveTypeDuration()
private void func_175517_cu()
public void onLivingUpdate()
onLivingUpdate in class EntityAnimalprotected void applyEntityAttributes()
applyEntityAttributes in class EntityLivingpublic void writeEntityToNBT(NBTTagCompound tagCompound)
writeEntityToNBT in class EntityAnimalpublic void readEntityFromNBT(NBTTagCompound tagCompund)
readEntityFromNBT in class EntityAnimalprotected java.lang.String getJumpingSound()
protected java.lang.String getLivingSound()
getLivingSound in class EntityLivingprotected java.lang.String getHurtSound()
getHurtSound in class EntityLivingBaseprotected java.lang.String getDeathSound()
getDeathSound in class EntityLivingBasepublic boolean attackEntityAsMob(Entity entityIn)
attackEntityAsMob in class EntityLivingBasepublic int getTotalArmorValue()
getTotalArmorValue in class EntityLivingBasepublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class EntityAnimalprotected void addRandomDrop()
addRandomDrop in class EntityLivingBaseprotected void dropFewItems(boolean p_70628_1_,
int p_70628_2_)
dropFewItems in class EntityLivingprivate boolean isRabbitBreedingItem(Item itemIn)
public EntityRabbit createChild(EntityAgeable ageable)
createChild in class EntityAgeablepublic boolean isBreedingItem(ItemStack stack)
isBreedingItem in class EntityAnimalpublic int getRabbitType()
public void setRabbitType(int rabbitTypeId)
public IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, IEntityLivingData livingdata)
onInitialSpawn in class EntityLivingprivate boolean isCarrotEaten()
carrotTicks has reached zeroprotected int getMoveTypeDuration()
move typeprotected void createEatingParticles()
public void handleStatusUpdate(byte id)
handleStatusUpdate in class EntityAnimal