public class LlamaEntity extends AbstractChestedHorseEntity implements IRangedAttackMob
AgeableEntity.AgeableData
Entity.IMoveCallback
canGallop, gallopTime, horseChest, horseJumping, JUMP_STRENGTH, jumpPower, sprintCounter, tailCounter, temper
forcedAge, forcedAgeTimer, growingAge
experienceValue, goalSelector, inventoryArmorDropChances, inventoryHandsDropChances, jumpController, livingSoundTime, lookController, moveController, navigator, targetSelector
activeItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, beeStingRemovalCooldown, brain, dead, deathTime, ENTITY_GRAVITY, hurtTime, idleTime, interpTargetHeadYaw, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, interpTicksHead, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SLEEPING_SIZE, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, world
DUMMY
コンストラクタと説明 |
---|
LlamaEntity(EntityType<? extends LlamaEntity> p_i50237_1_,
World p_i50237_2_) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
attackEntityWithRangedAttack(LivingEntity 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(AnimalEntity otherAnimal)
Returns true if the mob is currently able to mate with the specified mob.
|
protected LlamaEntity |
createChild() |
LlamaEntity |
createChild(AgeableEntity ageable) |
protected double |
followLeashSpeed() |
protected void |
followMother() |
protected SoundEvent |
getAmbientSound() |
protected SoundEvent |
getAngrySound() |
LlamaEntity |
getCaravanHead() |
DyeColor |
getColor() |
protected SoundEvent |
getDeathSound() |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
int |
getInventoryColumns() |
protected int |
getInventorySize() |
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(PlayerEntity player,
ItemStack stack) |
boolean |
hasCaravanTrail() |
boolean |
inCaravan() |
boolean |
isArmor(ItemStack stack) |
protected boolean |
isMovementBlocked()
Dead and sleeping entities cannot move
|
boolean |
isTraderLlama() |
void |
joinCaravan(LlamaEntity caravanHeadIn) |
void |
leaveCaravan() |
void |
makeMad() |
ILivingEntityData |
onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
void |
onInventoryChanged(IInventory invBasic)
Called by InventoryBasic.onInventoryChanged() on a array that is never filled.
|
boolean |
onLivingFall(float distance,
float damageMultiplier) |
protected void |
playChestEquipSound() |
protected void |
playStepSound(BlockPos pos,
BlockState blockIn) |
void |
readAdditional(CompoundNBT compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
protected void |
registerAttributes() |
protected void |
registerData() |
protected void |
registerGoals() |
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 |
writeAdditional(CompoundNBT compound) |
dropInventory, hasChest, processInteract, replaceItemInInventory, setChested
attackEntityFrom, canBeLeashedTo, canBePushed, canJump, canMate, func_225508_e_, getCapability, getControllingPassenger, getGrassEatingAmount, getHorseJumpStrength, getHorseWatchableBoolean, getMaxSpawnedInChunk, getModifiedJumpStrength, getModifiedMaxHealth, getModifiedMovementSpeed, getMouthOpennessAngle, getOwnerUniqueId, getRearingAmount, getSoundVolume, getStandingEyeHeight, getTalkInterval, getTemper, handleStartJump, handleStatusUpdate, handleStopJump, increaseTemper, initExtraAI, initHorseChest, isBreeding, isBreedingItem, isEatingHaystack, isHorseJumping, isHorseSaddled, isOnLadder, isRearing, isTame, livingTick, mountTo, onLeashDistance, openGUI, playGallopSound, playJumpSound, remove, setBreeding, setEatingHaystack, setHorseJumping, setHorseSaddled, setHorseTamed, setHorseWatchableBoolean, setJumpPower, setOffspringAttributes, setOwnerUniqueId, setRearing, setTamedBy, setTemper, spawnHorseParticles, tick, travel
canAnimalSpawn, canBreed, canDespawn, consumeItemFromStack, getBlockPathWeight, getExperiencePoints, getLoveCause, getYOffset, isInLove, resetInLove, setInLove, setInLove, updateAITasks
addGrowth, ageUp, getGrowingAge, isChild, notifyDataManagerChange, onChildSpawnFromEgg, onGrowingAdult, setGrowingAge
canSpawn, getBlockPathWeight, hasPath, updateLeashedState
attackEntityAsMob, baseTick, canAttack, canAttack, canEquipItem, canPassengerSteer, canPickUpItem, canPickUpLoot, canSpawnOn, checkDespawn, clearLeashed, createBodyController, createNavigator, detachHome, dropLoot, dropSpecialItems, eatGrassBonus, enablePersistence, faceEntity, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropChance, getEntitySenses, getFaceRotSpeed, getHeldEquipment, getHomePosition, getHorizontalFaceSpeed, getItemStackFromSlot, getJumpController, getLeashed, getLeashHolder, getLookController, getLootContextBuilder, getLootTable, getLootTableResourceLocation, getMaxFallHeight, getMaximumHomeDistance, getMoveHelper, getNavigator, getPathPriority, getPrimaryHand, getSlotForItemStack, getVerticalFaceSpeed, handleFluidJump, isAggressive, isAIDisabled, isDespawnPeaceful, isHolding, isInDaylight, isItemStackInSlot, isLeftHanded, isMaxGroupSize, isNoDespawnRequired, isNotColliding, isServerWorld, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, playAmbientSound, playHurtSound, preventDespawn, processInitialInteract, sendDebugPackets, setAggroed, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setHomePosAndDistance, setItemStackToSlot, setLeashHolder, setLeftHanded, setMoveForward, setMoveStrafing, setMoveVertical, setNoAI, setPathPriority, setVehicleEntityId, shouldExchangeEquipment, spawnExplosionParticle, startRiding, updateDistance, updateEntityActionState, updateEquipmentIfNeeded, updateMovementGoalFlags
addPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attemptTeleport, blockUsingShield, canAttack, canBeCollidedWith, canBeHitWithPotion, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, constructKnockBackVector, createBrain, createSpawnPacket, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, determineNextAir, findAmmo, frostWalk, func_213343_cS, func_226292_a_, func_226293_b_, func_226294_cV_, func_226296_dJ_, func_226298_f_, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributes, getBedDirection, getBedPosition, getBeeStingCount, getBlockState, getBrain, getCombatTracker, getCreatureAttribute, getDrinkSound, getEatSound, getEyeHeight, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSize, getSoundPitch, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidSneak, hasItemInSlot, heal, isActiveItemStackBlocking, isActualySwimming, isAlive, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isPlayer, isPotionActive, isPotionApplicable, isSleeping, isSpinAttacking, jump, knockBack, lookAt, markPotionsDirty, markVelocityChanged, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onFoodEaten, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, playFallSound, removeActivePotionEffect, removePotionEffect, resetActiveHand, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setArrowCountInEntity, setBedPosition, setBeeStingCount, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, spawnDrops, spinAttack, startSleeping, startSpinAttack, stopActiveHand, stopRiding, swingArm, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRidden, updateSpinAttack, wakeUp
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, awardKillScore, calculateUpVector, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canRenderOnFire, canSwim, canTrample, canTriggerWalking, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, func_225513_by_, func_225514_a_, func_226265_a_, func_226266_a_, func_226276_cg_, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxInPortalTime, getMirroredYaw, getMotion, getName, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getScoreboardName, getServer, getSoundCategory, getSpeedFactor, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, handleFluidAcceleration, handlePistonMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isShiftKeyDown, isSilent, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, makeFlySound, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillEntity, onRemovedFromWorld, onStruckByLightning, pick, playFlySound, playSound, playSwimSound, preparePlayerToSpawn, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setInLava, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, teleportKeepLoaded, toString, updatePortal, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability
public LlamaEntity(EntityType<? extends LlamaEntity> p_i50237_1_, World p_i50237_2_)
public boolean isTraderLlama()
public int getStrength()
public void writeAdditional(CompoundNBT compound)
writeAdditional
クラス内 AbstractChestedHorseEntity
public void readAdditional(CompoundNBT compound)
readAdditional
クラス内 AbstractChestedHorseEntity
protected void registerGoals()
registerGoals
クラス内 AbstractHorseEntity
protected void registerAttributes()
registerAttributes
クラス内 AbstractChestedHorseEntity
protected void registerData()
registerData
クラス内 AbstractChestedHorseEntity
public int getVariant()
public void setVariant(int variantIn)
protected int getInventorySize()
getInventorySize
クラス内 AbstractChestedHorseEntity
public void updatePassenger(Entity passenger)
updatePassenger
クラス内 AbstractHorseEntity
public double getMountedYOffset()
getMountedYOffset
クラス内 AbstractChestedHorseEntity
public boolean canBeSteered()
canBeSteered
クラス内 AbstractHorseEntity
protected boolean handleEating(PlayerEntity player, ItemStack stack)
handleEating
クラス内 AbstractHorseEntity
protected boolean isMovementBlocked()
isMovementBlocked
クラス内 AbstractHorseEntity
@Nullable public ILivingEntityData onInitialSpawn(IWorld worldIn, DifficultyInstance difficultyIn, SpawnReason reason, @Nullable ILivingEntityData spawnDataIn, @Nullable CompoundNBT dataTag)
onInitialSpawn
クラス内 AbstractHorseEntity
protected SoundEvent getAngrySound()
getAngrySound
クラス内 AbstractChestedHorseEntity
protected SoundEvent getAmbientSound()
getAmbientSound
クラス内 AbstractHorseEntity
protected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound
クラス内 AbstractHorseEntity
protected SoundEvent getDeathSound()
getDeathSound
クラス内 AbstractHorseEntity
protected void playStepSound(BlockPos pos, BlockState blockIn)
playStepSound
クラス内 AbstractHorseEntity
protected void playChestEquipSound()
playChestEquipSound
クラス内 AbstractChestedHorseEntity
public void makeMad()
makeMad
クラス内 AbstractHorseEntity
public int getInventoryColumns()
getInventoryColumns
クラス内 AbstractChestedHorseEntity
public boolean wearsArmor()
wearsArmor
クラス内 AbstractHorseEntity
public boolean isArmor(ItemStack stack)
isArmor
クラス内 AbstractHorseEntity
public boolean canBeSaddled()
canBeSaddled
クラス内 AbstractHorseEntity
public void onInventoryChanged(IInventory invBasic)
onInventoryChanged
インタフェース内 IInventoryChangedListener
onInventoryChanged
クラス内 AbstractHorseEntity
protected void updateHorseSlots()
updateHorseSlots
クラス内 AbstractHorseEntity
@Nullable public DyeColor getColor()
public int getMaxTemper()
getMaxTemper
クラス内 AbstractHorseEntity
public boolean canMateWith(AnimalEntity otherAnimal)
canMateWith
クラス内 AbstractHorseEntity
public LlamaEntity createChild(AgeableEntity ageable)
createChild
クラス内 AbstractHorseEntity
protected LlamaEntity createChild()
public boolean onLivingFall(float distance, float damageMultiplier)
onLivingFall
クラス内 AbstractHorseEntity
public void leaveCaravan()
public void joinCaravan(LlamaEntity caravanHeadIn)
public boolean hasCaravanTrail()
public boolean inCaravan()
@Nullable public LlamaEntity getCaravanHead()
protected double followLeashSpeed()
followLeashSpeed
クラス内 CreatureEntity
protected void followMother()
followMother
クラス内 AbstractHorseEntity
public boolean canEatGrass()
canEatGrass
クラス内 AbstractHorseEntity
public void attackEntityWithRangedAttack(LivingEntity target, float distanceFactor)
attackEntityWithRangedAttack
インタフェース内 IRangedAttackMob