public class EntityButterfly extends net.minecraft.entity.EntityCreature implements IEntityButterfly
| Modifier and Type | Field and Description |
|---|---|
int |
cooldownEgg |
int |
cooldownMate |
int |
cooldownPollination |
static int |
COOLDOWNS |
static int |
EXHAUSTION_CONSUMPTION |
static int |
EXHAUSTION_REST |
FLEEING_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 |
|---|
EntityButterfly(net.minecraft.world.World world) |
EntityButterfly(net.minecraft.world.World world,
IButterfly butterfly,
net.minecraft.util.math.BlockPos homePos) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBePushed() |
protected boolean |
canDespawn() |
boolean |
canFly() |
boolean |
canMate() |
boolean |
canMateWith(IEntityButterfly butterfly) |
protected boolean |
canTriggerWalking() |
void |
changeExhaustion(int change) |
protected void |
collideWithEntity(net.minecraft.entity.Entity other) |
boolean |
doesEntityNotTriggerPressurePlate() |
protected void |
dropFewItems(boolean playerKill,
int lootLevel) |
protected void |
entityInit() |
void |
fall(float distance,
float damageMultiplier) |
float |
getBlockPathWeight(net.minecraft.util.math.BlockPos pos) |
IButterfly |
getButterfly() |
boolean |
getCanSpawnHere() |
net.minecraft.util.math.Vec3d |
getDestination() |
net.minecraft.entity.EntityCreature |
getEntity() |
int |
getExhaustion() |
int |
getMaxInPortalTime() |
java.lang.String |
getName() |
net.minecraft.item.ItemStack |
getPickedResult(net.minecraft.util.math.RayTraceResult target) |
IIndividual |
getPollen() |
float |
getSize() |
protected float |
getSoundVolume() |
float |
getSpeed() |
EnumButterflyState |
getState() |
float |
getSwingProgress(float partialTicktime) |
net.minecraft.util.ResourceLocation |
getTexture() |
float |
getWingFlap(float partialTicktime) |
boolean |
isAIDisabled() |
boolean |
isRenderable() |
net.minecraft.entity.IEntityLivingData |
onInitialSpawn(net.minecraft.world.DifficultyInstance difficulty,
net.minecraft.entity.IEntityLivingData data) |
void |
onUpdate() |
protected boolean |
processInteract(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand) |
void |
readEntityFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
setDestination(net.minecraft.util.math.Vec3d destination) |
void |
setIndividual(IButterfly butterfly) |
void |
setPollen(IIndividual pollen) |
void |
setState(EnumButterflyState state) |
protected void |
updateAITasks() |
protected void |
updateFallState(double y,
boolean onGroundIn,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.BlockPos pos) |
void |
writeEntityToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
detachHome, followLeashSpeed, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, onLeashDistance, setHomePosAndDistance, updateLeashedStateapplyEntityAttributes, canAttackClass, canBeLeashedTo, canBeSteered, canEquipItem, canPassengerSteer, canPickUpLoot, clearLeashed, createBodyHelper, createNavigator, despawnEntity, dropEquipment, dropLoot, eatGrassBonus, enablePersistence, faceEntity, getAmbientSound, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropItem, getEntitySenses, getExperiencePoints, getHeldEquipment, getHorizontalFaceSpeed, getItemStackFromSlot, getJumpHelper, getLeashed, getLeashHolder, getLookHelper, getLootTable, getMaxFallHeight, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPathPriority, getPrimaryHand, getRenderSizeModifier, getSlotForItemStack, getTalkInterval, getVerticalFaceSpeed, handleStatusUpdate, initEntityAI, isItemStackInSlot, isLeftHanded, isNoDespawnRequired, isNotColliding, isServerWorld, onEntityUpdate, onLivingUpdate, playHurtSound, playLivingSound, processInitialInteract, registerFixesMob, replaceItemInInventory, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setItemStackToSlot, setLeashHolder, setLeftHanded, setMoveForward, setMoveStrafing, setMoveVertical, setNoAI, setPathPriority, spawnExplosionParticle, startRiding, updateDistance, updateEntityActionState, updateEquipmentIfNeededaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attackEntityFrom, 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, getDeathSound, getEntityAttribute, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getHurtSound, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLook, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasCapability, hasItemInSlot, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPlayerSleeping, isPotionActive, isPotionApplicable, jump, knockBack, markPotionsDirty, markVelocityChanged, moveRelative, notifyDataManagerChange, onChangedPotionEffect, onDeath, 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, travel, updateActiveHand, updateArmSwingProgress, updateItemUse, updatePotionEffects, updatePotionMetadata, updateRiddenaddEntityCrashInfo, addPassenger, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyEntityCollision, applyOrientationToEntity, applyPlayerInteraction, awardKillScore, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canRenderOnFire, canRiderInteract, canTrample, canUseCommand, changeDimension, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, doBlockCollisions, 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, getEyeHeight, getFireImmuneTicks, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLookVec, getLowestRidingEntity, getMirroredYaw, getMountedYOffset, getParts, getPassengers, getPersistentID, getPitchYaw, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSoundCategory, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, 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, playStepSound, 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, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, turn, updatePassenger, writeToNBT, writeToNBTAtomically, writeToNBTOptionalpublic static final int COOLDOWNS
public static final int EXHAUSTION_REST
public static final int EXHAUSTION_CONSUMPTION
public int cooldownPollination
public int cooldownEgg
public int cooldownMate
public EntityButterfly(net.minecraft.world.World world)
public EntityButterfly(net.minecraft.world.World world,
IButterfly butterfly,
net.minecraft.util.math.BlockPos homePos)
protected void entityInit()
entityInit in class net.minecraft.entity.EntityLivingpublic net.minecraft.entity.EntityCreature getEntity()
getEntity in interface IEntityButterflypublic void writeEntityToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeEntityToNBT in class net.minecraft.entity.EntityLivingpublic void readEntityFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readEntityFromNBT in class net.minecraft.entity.EntityLivingpublic float getWingFlap(float partialTicktime)
public void setState(EnumButterflyState state)
public EnumButterflyState getState()
public float getSize()
public float getSpeed()
@Nullable public net.minecraft.util.math.Vec3d getDestination()
public void setDestination(@Nullable
net.minecraft.util.math.Vec3d destination)
public float getBlockPathWeight(net.minecraft.util.math.BlockPos pos)
getBlockPathWeight in class net.minecraft.entity.EntityCreature@Nullable public IIndividual getPollen()
getPollen in interface IEntityButterflypublic void setPollen(@Nullable
IIndividual pollen)
setPollen in interface IEntityButterflypublic void changeExhaustion(int change)
changeExhaustion in interface IEntityButterflypublic int getExhaustion()
getExhaustion in interface IEntityButterflypublic boolean canFly()
public void setIndividual(@Nullable
IButterfly butterfly)
public IButterfly getButterfly()
getButterfly in interface IEntityButterflypublic net.minecraft.entity.IEntityLivingData onInitialSpawn(net.minecraft.world.DifficultyInstance difficulty,
@Nullable
net.minecraft.entity.IEntityLivingData data)
onInitialSpawn in class net.minecraft.entity.EntityLivingpublic java.lang.String getName()
getName in interface net.minecraft.command.ICommandSendergetName in class net.minecraft.entity.Entitypublic boolean getCanSpawnHere()
getCanSpawnHere in class net.minecraft.entity.EntityCreaturepublic int getMaxInPortalTime()
getMaxInPortalTime in class net.minecraft.entity.Entitypublic boolean isRenderable()
public net.minecraft.util.ResourceLocation getTexture()
public boolean canBePushed()
canBePushed in class net.minecraft.entity.EntityLivingBaseprotected void collideWithEntity(net.minecraft.entity.Entity other)
collideWithEntity in class net.minecraft.entity.EntityLivingBasepublic boolean isAIDisabled()
isAIDisabled in class net.minecraft.entity.EntityLivingprotected boolean canDespawn()
canDespawn in class net.minecraft.entity.EntityLivingprotected boolean processInteract(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand)
processInteract in class net.minecraft.entity.EntityLivingprotected void dropFewItems(boolean playerKill,
int lootLevel)
dropFewItems in class net.minecraft.entity.EntityLivingpublic void onUpdate()
onUpdate in class net.minecraft.entity.EntityLivingprotected void updateAITasks()
updateAITasks in class net.minecraft.entity.EntityLivingprotected boolean canTriggerWalking()
canTriggerWalking in class net.minecraft.entity.Entitypublic void fall(float distance,
float damageMultiplier)
fall in class net.minecraft.entity.EntityLivingBaseprotected void updateFallState(double y,
boolean onGroundIn,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.BlockPos pos)
updateFallState in class net.minecraft.entity.EntityLivingBasepublic boolean doesEntityNotTriggerPressurePlate()
doesEntityNotTriggerPressurePlate in class net.minecraft.entity.Entitypublic float getSwingProgress(float partialTicktime)
getSwingProgress in class net.minecraft.entity.EntityLivingBaseprotected float getSoundVolume()
getSoundVolume in class net.minecraft.entity.EntityLivingBasepublic net.minecraft.item.ItemStack getPickedResult(net.minecraft.util.math.RayTraceResult target)
getPickedResult in class net.minecraft.entity.Entitypublic boolean canMateWith(IEntityButterfly butterfly)
canMateWith in interface IEntityButterflypublic boolean canMate()
canMate in interface IEntityButterfly