public class EntityParrot extends EntityShoulderRiding implements EntityFlying
EntityLiving.SpawnPlacementType
Modifier and Type | Field and Description |
---|---|
private static com.google.common.base.Predicate<EntityLiving> |
CAN_MIMIC |
private static Item |
DEADLY_ITEM |
float |
flap |
float |
flapping |
float |
flapSpeed |
private BlockPos |
jukeboxPosition |
private static java.util.Map<java.lang.Class<? extends Entity>,SoundEvent> |
MIMIC_SOUNDS |
float |
oFlap |
float |
oFlapSpeed |
private boolean |
partyParrot |
private static java.util.Set<Item> |
TAME_ITEMS |
private static DataParameter<java.lang.Integer> |
VARIANT |
aiSit, OWNER_UNIQUE_ID, TAMED
spawnableBlock
forcedAge, forcedAgeTimer, growingAge
FLEEING_SPEED_MODIFIER, FLEEING_SPEED_MODIFIER_UUID
experienceValue, inventoryArmorDropChances, inventoryHandsDropChances, jumpHelper, livingSoundTime, moveHelper, navigator, targetTasks, tasks
activeItemStack, 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, unused180
addedToChunk, 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 |
---|
EntityParrot(World worldIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyEntityAttributes() |
boolean |
attackEntityAsMob(Entity entityIn) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
private void |
calculateFlapping() |
boolean |
canBePushed() |
boolean |
canMateWith(EntityAnimal otherAnimal) |
protected void |
collideWithEntity(Entity entityIn) |
EntityAgeable |
createChild(EntityAgeable ageable) |
protected PathNavigate |
createNavigator(World worldIn) |
protected void |
entityInit() |
void |
fall(float distance,
float damageMultiplier) |
SoundEvent |
getAmbientSound() |
private static SoundEvent |
getAmbientSound(java.util.Random random) |
boolean |
getCanSpawnHere() |
protected SoundEvent |
getDeathSound() |
float |
getEyeHeight() |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
protected ResourceLocation |
getLootTable() |
private static float |
getPitch(java.util.Random random) |
SoundCategory |
getSoundCategory() |
protected float |
getSoundPitch() |
int |
getVariant() |
protected void |
initEntityAI() |
boolean |
isBreedingItem(ItemStack stack) |
boolean |
isFlying() |
boolean |
isPartying() |
protected boolean |
makeFlySound() |
IEntityLivingData |
onInitialSpawn(DifficultyInstance difficulty,
IEntityLivingData livingdata) |
void |
onLivingUpdate() |
static void |
playAmbientSound(World worldIn,
Entity p_192005_1_) |
protected float |
playFlySound(float p_191954_1_) |
private static boolean |
playMimicSound(World worldIn,
Entity p_192006_1_) |
protected void |
playStepSound(BlockPos pos,
Block blockIn) |
boolean |
processInteract(EntityPlayer player,
EnumHand hand) |
void |
readEntityFromNBT(NBTTagCompound compound) |
static void |
registerMimicSound(java.lang.Class<? extends Entity> cls,
SoundEvent sound) |
void |
setPartying(BlockPos pos,
boolean p_191987_2_) |
void |
setVariant(int p_191997_1_) |
protected void |
updateFallState(double y,
boolean onGroundIn,
IBlockState state,
BlockPos pos) |
void |
writeEntityToNBT(NBTTagCompound compound) |
canSitOnShoulder, onUpdate, setEntityOnShoulder
canBeLeashedTo, getAISit, getOwner, getOwnerId, getTeam, handleStatusUpdate, isOnSameTeam, isOwner, isSitting, isTamed, onDeath, playTameEffect, setOwnerId, setSitting, setTamed, setTamedBy, setupTamedAI, shouldAttackEntity
canDespawn, consumeItemFromStack, getBlockPathWeight, getExperiencePoints, getLoveCause, getTalkInterval, getYOffset, isInLove, resetInLove, setInLove, updateAITasks
addGrowth, ageUp, getGrowingAge, holdingSpawnEggOfClass, isChild, notifyDataManagerChange, onGrowingAdult, setGrowingAge, setScale, setScaleForAge, setSize
detachHome, followLeashSpeed, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, onLeashDistance, setHomePosAndDistance, updateLeashedState
canAttackClass, canBeSteered, canEquipItem, canPassengerSteer, canPickUpLoot, clearLeashed, createBodyHelper, despawnEntity, dropEquipment, dropFewItems, dropLoot, eatGrassBonus, enablePersistence, faceEntity, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropItem, getEntitySenses, getHeldEquipment, getHorizontalFaceSpeed, getItemStackFromSlot, getJumpHelper, getLeashed, getLeashHolder, getLookHelper, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPathPriority, getPrimaryHand, getRenderSizeModifier, getSlotForItemStack, getVerticalFaceSpeed, isAIDisabled, isItemStackInSlot, isLeftHanded, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, playHurtSound, playLivingSound, processInitialInteract, registerFixesMob, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setItemStackToSlot, setLeashHolder, setLeftHanded, setMoveForward, setMoveStrafing, setMoveVertical, setNoAI, setPathPriority, spawnExplosionParticle, startRiding, updateDistance, updateEntityActionState, updateEquipmentIfNeeded
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attemptTeleport, blockUsingShield, canBeCollidedWith, canBeHitWithPotion, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithNearbyEntities, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, dismountEntity, dismountRidingEntity, frostWalk, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCapability, getCombatTracker, getCreatureAttribute, getEntityAttribute, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLook, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasCapability, hasItemInSlot, heal, isActiveItemStackBlocking, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, 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, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, swingArm, travel, updateActiveHand, updateArmSwingProgress, updateItemUse, updatePotionEffects, updatePotionMetadata, updateRidden
addEntityCrashInfo, 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, getControllingPassenger, 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, getMountedYOffset, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSplashSound, getSwimSound, getTags, 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, isOnScoreboardTeam, isOutsideBorder, isOverWater, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, move, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onInsideBlock, onKillEntity, onRemovedFromWorld, onStruckByLightning, 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, updatePassenger, writeToNBT, writeToNBTAtomically, writeToNBTOptional
private static final DataParameter<java.lang.Integer> VARIANT
private static final com.google.common.base.Predicate<EntityLiving> CAN_MIMIC
private static final Item DEADLY_ITEM
private static final java.util.Set<Item> TAME_ITEMS
private static final java.util.Map<java.lang.Class<? extends Entity>,SoundEvent> MIMIC_SOUNDS
public float flap
public float flapSpeed
public float oFlapSpeed
public float oFlap
public float flapping
private boolean partyParrot
private BlockPos jukeboxPosition
public EntityParrot(World worldIn)
@Nullable public IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, @Nullable IEntityLivingData livingdata)
onInitialSpawn
in class EntityLiving
protected void initEntityAI()
initEntityAI
in class EntityLiving
protected void applyEntityAttributes()
applyEntityAttributes
in class EntityLiving
protected PathNavigate createNavigator(World worldIn)
createNavigator
in class EntityLiving
public float getEyeHeight()
getEyeHeight
in class Entity
public void onLivingUpdate()
onLivingUpdate
in class EntityAnimal
public void setPartying(BlockPos pos, boolean p_191987_2_)
setPartying
in class EntityLivingBase
public boolean isPartying()
private void calculateFlapping()
public boolean processInteract(EntityPlayer player, EnumHand hand)
processInteract
in class EntityAnimal
public boolean isBreedingItem(ItemStack stack)
isBreedingItem
in class EntityAnimal
public boolean getCanSpawnHere()
getCanSpawnHere
in class EntityAnimal
public void fall(float distance, float damageMultiplier)
fall
in class EntityLivingBase
protected void updateFallState(double y, boolean onGroundIn, IBlockState state, BlockPos pos)
updateFallState
in class EntityLivingBase
public boolean canMateWith(EntityAnimal otherAnimal)
canMateWith
in class EntityAnimal
@Nullable public EntityAgeable createChild(EntityAgeable ageable)
createChild
in class EntityAgeable
public boolean attackEntityAsMob(Entity entityIn)
attackEntityAsMob
in class EntityLivingBase
@Nullable public SoundEvent getAmbientSound()
getAmbientSound
in class EntityLiving
private static SoundEvent getAmbientSound(java.util.Random random)
protected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound
in class EntityLivingBase
protected SoundEvent getDeathSound()
getDeathSound
in class EntityLivingBase
protected void playStepSound(BlockPos pos, Block blockIn)
playStepSound
in class Entity
protected float playFlySound(float p_191954_1_)
playFlySound
in class Entity
protected boolean makeFlySound()
makeFlySound
in class Entity
protected float getSoundPitch()
getSoundPitch
in class EntityLivingBase
private static float getPitch(java.util.Random random)
public SoundCategory getSoundCategory()
getSoundCategory
in class Entity
public boolean canBePushed()
canBePushed
in class EntityLivingBase
protected void collideWithEntity(Entity entityIn)
collideWithEntity
in class EntityLivingBase
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class EntityAnimal
public int getVariant()
public void setVariant(int p_191997_1_)
protected void entityInit()
entityInit
in class EntityTameable
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT
in class EntityTameable
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class EntityTameable
@Nullable protected ResourceLocation getLootTable()
getLootTable
in class EntityLiving
public boolean isFlying()
public static void registerMimicSound(java.lang.Class<? extends Entity> cls, SoundEvent sound)