public class EntityHorse extends AbstractHorse
Modifier and Type | Class and Description |
---|---|
static class |
EntityHorse.GroupData |
EntityLiving.SpawnPlacementType
Modifier and Type | Field and Description |
---|---|
private static java.util.UUID |
ARMOR_MODIFIER_UUID |
private static DataParameter<java.lang.Integer> |
HORSE_ARMOR |
private static DataParameter<ItemStack> |
HORSE_ARMOR_STACK |
private static java.lang.String[] |
HORSE_MARKING_TEXTURES |
private static java.lang.String[] |
HORSE_MARKING_TEXTURES_ABBR |
private static java.lang.String[] |
HORSE_TEXTURES |
private static java.lang.String[] |
HORSE_TEXTURES_ABBR |
private static DataParameter<java.lang.Integer> |
HORSE_VARIANT |
private java.lang.String[] |
horseTexturesArray |
private java.lang.String |
texturePrefix |
canGallop, gallopTime, horseChest, horseJumping, JUMP_STRENGTH, jumpPower, sprintCounter, tailCounter, temper
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 |
---|
EntityHorse(World worldIn) |
attackEntityFrom, canBeLeashedTo, canBePushed, canBeSaddled, canBeSteered, canEatGrass, canJump, canMate, fall, followMother, getCapability, getClosestHorse, getControllingPassenger, getEyeHeight, getGrassEatingAmount, getHorseJumpStrength, getHorseSize, getHorseWatchableBoolean, getInventorySize, getMaxSpawnedInChunk, getMaxTemper, getModifiedJumpStrength, getModifiedMaxHealth, getModifiedMovementSpeed, getMouthOpennessAngle, getOwnerUniqueId, getRearingAmount, getSoundVolume, getTalkInterval, getTemper, handleEating, handleStartJump, handleStatusUpdate, handleStopJump, hasCapability, increaseTemper, initEntityAI, initHorseChest, isBreeding, isBreedingItem, isEatingHaystack, isHorseJumping, isHorseSaddled, isMovementBlocked, isOnLadder, isRearing, isTame, makeMad, mountTo, onDeath, onLeashDistance, onLivingUpdate, openGUI, playStepSound, registerFixesAbstractHorse, replaceItemInInventory, setBreeding, setEatingHaystack, setHorseJumping, setHorseSaddled, setHorseTamed, setHorseWatchableBoolean, setJumpPower, setOffspringAttributes, setOwnerUniqueId, setRearing, setScaleForAge, setTamedBy, setTemper, spawnHorseParticles, travel, updatePassenger
canDespawn, consumeItemFromStack, getBlockPathWeight, getCanSpawnHere, getExperiencePoints, getLoveCause, getYOffset, isInLove, resetInLove, setInLove, updateAITasks
addGrowth, ageUp, getGrowingAge, holdingSpawnEggOfClass, isChild, notifyDataManagerChange, onGrowingAdult, setGrowingAge, setScale, setSize
detachHome, followLeashSpeed, getHomePosition, getMaximumHomeDistance, hasHome, hasPath, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, setHomePosAndDistance, updateLeashedState
canAttackClass, 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, updateEquipmentIfNeeded
addPotionEffect, 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, 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, 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, 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, writeToNBTOptional
private static final java.util.UUID ARMOR_MODIFIER_UUID
private static final DataParameter<java.lang.Integer> HORSE_VARIANT
private static final DataParameter<java.lang.Integer> HORSE_ARMOR
private static final DataParameter<ItemStack> HORSE_ARMOR_STACK
private static final java.lang.String[] HORSE_TEXTURES
private static final java.lang.String[] HORSE_TEXTURES_ABBR
private static final java.lang.String[] HORSE_MARKING_TEXTURES
private static final java.lang.String[] HORSE_MARKING_TEXTURES_ABBR
private java.lang.String texturePrefix
private final java.lang.String[] horseTexturesArray
public EntityHorse(World worldIn)
protected void entityInit()
entityInit
in class AbstractHorse
public static void registerFixesHorse(DataFixer fixer)
public void writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT
in class AbstractHorse
public void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class AbstractHorse
public void setHorseVariant(int variant)
public int getHorseVariant()
private void resetTexturePrefix()
private void setHorseTexturePaths()
public java.lang.String getHorseTexture()
public java.lang.String[] getVariantTexturePaths()
protected void updateHorseSlots()
updateHorseSlots
in class AbstractHorse
public void setHorseArmorStack(ItemStack itemStackIn)
public HorseArmorType getHorseArmorType()
public void onInventoryChanged(IInventory invBasic)
onInventoryChanged
in interface IInventoryChangedListener
onInventoryChanged
in class AbstractHorse
protected void playGallopSound(SoundType p_190680_1_)
playGallopSound
in class AbstractHorse
protected void applyEntityAttributes()
applyEntityAttributes
in class AbstractHorse
public void onUpdate()
onUpdate
in class AbstractHorse
protected SoundEvent getAmbientSound()
getAmbientSound
in class AbstractHorse
protected SoundEvent getDeathSound()
getDeathSound
in class AbstractHorse
protected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound
in class AbstractHorse
protected SoundEvent getAngrySound()
getAngrySound
in class AbstractHorse
protected ResourceLocation getLootTable()
getLootTable
in class EntityLiving
public boolean processInteract(EntityPlayer player, EnumHand hand)
processInteract
in class EntityAnimal
public boolean canMateWith(EntityAnimal otherAnimal)
canMateWith
in class AbstractHorse
public EntityAgeable createChild(EntityAgeable ageable)
createChild
in class AbstractHorse
public boolean wearsArmor()
wearsArmor
in class AbstractHorse
public boolean isArmor(ItemStack stack)
isArmor
in class AbstractHorse
@Nullable public IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, @Nullable IEntityLivingData livingdata)
onInitialSpawn
in class AbstractHorse