Class Llama
java.lang.Object
- All Implemented Interfaces:
CommandSource
,ContainerListener
,HasCustomInventoryScreen
,RangedAttackMob
,PlayerRideable
,PlayerRideableJumping
,Saddleable
,EntityAccess
,Nameable
,ICapabilityProvider
,ICapabilityProviderImpl<Entity>
,ICapabilitySerializable<CompoundTag>
,IForgeEntity
,IForgeLivingEntity
,INBTSerializable<CompoundTag>
- Direct Known Subclasses:
TraderLlama
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static class
Nested classes/interfaces inherited from class net.minecraft.world.entity.AgeableMob
AgeableMob.AgeableMobGroupData
Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
LivingEntity.Fallsounds
Nested classes/interfaces inherited from class net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate Llama
private Llama
private static final EntityDataAccessor<Integer>
private static final EntityDataAccessor<Integer>
private static final EntityDataAccessor<Integer>
(package private) boolean
private static final Ingredient
private static final int
private static final int
Fields inherited from class net.minecraft.world.entity.animal.horse.AbstractChestedHorse
INV_CHEST_COUNT
Fields inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse
canGallop, CHEST_SLOT_OFFSET, EQUIPMENT_SLOT_OFFSET, gallopSoundCounter, INV_BASE_COUNT, INV_SLOT_ARMOR, INV_SLOT_SADDLE, inventory, INVENTORY_SLOT_OFFSET, isJumping, playerJumpPendingScale, sprintCounter, tailCounter, temper
Fields inherited from class net.minecraft.world.entity.animal.Animal
PARENT_AGE_AFTER_BREEDING
Fields inherited from class net.minecraft.world.entity.AgeableMob
age, BABY_START_AGE, forcedAge, forcedAgeTimer
Fields inherited from class net.minecraft.world.entity.PathfinderMob
DEFAULT_WALK_TARGET_VALUE
Fields inherited from class net.minecraft.world.entity.Mob
ambientSoundTime, armorDropChances, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, LEASH_TAG, lookControl, MAX_ENCHANTED_ARMOR_CHANCE, MAX_ENCHANTED_WEAPON_CHANCE, MAX_PICKUP_LOOT_CHANCE, MAX_WEARING_ARMOR_CHANCE, moveControl, navigation, PICKUP_REACH, PRESERVE_ITEM_DROP_CHANCE, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpReward
Fields inherited from class net.minecraft.world.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BASE_GRAVITY, DEFAULT_EYE_HEIGHT, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, flyingSpeed, HAND_SLOTS, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, lyHeadRot, MIN_MOVEMENT_DISTANCE, noActionTime, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
Fields inherited from class net.minecraft.world.entity.Entity
BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, level, MAX_ENTITY_TAG_COUNT, maxUpStep, minorHorizontalCollision, moveDist, noCulling, noPhysics, onGround, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
Fields inherited from interface net.minecraft.commands.CommandSource
NULL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData
(CompoundTag p_30793_) boolean
boolean
boolean
boolean
causeFallDamage
(float p_149538_, float p_149539_, DamageSource p_149540_) void
containerChanged
(Container p_30760_) static AttributeSupplier.Builder
protected void
finalizeSpawn
(ServerLevelAccessor p_30774_, DifficultyInstance p_30775_, MobSpawnType p_30776_, SpawnGroupData p_30777_, CompoundTag p_30778_) Calls to this method should be accompanied by firing theSpecialSpawn
event viaForgeEventFactory.doSpecialSpawn(net.minecraft.world.entity.Mob, net.minecraft.world.level.LevelAccessor, float, float, float, net.minecraft.world.level.BaseSpawner, net.minecraft.world.entity.MobSpawnType)
.protected double
protected void
protected SoundEvent
protected SoundEvent
getBreedOffspring
(ServerLevel p_149545_, AgeableMob p_149546_) protected SoundEvent
private static DyeColor
getDyeColor
(ItemStack p_30836_) protected SoundEvent
protected SoundEvent
getHurtSound
(DamageSource p_30803_) int
protected int
int
double
int
getSwag()
int
protected boolean
handleEating
(Player p_30796_, ItemStack p_30797_) boolean
boolean
boolean
boolean
protected boolean
boolean
boolean
boolean
void
joinCaravan
(Llama p_30767_) void
protected Llama
void
makeMad()
void
performRangedAttack
(LivingEntity p_30762_, float p_30763_) protected void
protected void
playStepSound
(BlockPos p_30790_, BlockState p_30791_) void
positionRider
(Entity p_30830_) void
readAdditionalSaveData
(CompoundTag p_30780_) protected void
(package private) void
setDidSpit
(boolean p_30753_) private void
setRandomStrength
(RandomSource p_218818_) private void
setStrength
(int p_30841_) private void
void
setVariant
(int p_30839_) private void
spit
(LivingEntity p_30828_) protected void
Methods inherited from class net.minecraft.world.entity.animal.horse.AbstractChestedHorse
createBaseChestedHorseAttributes, dropEquipment, getSlot, hasChest, mobInteract, randomizeAttributes, setChest
Methods inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse
addBehaviourGoals, aiStep, calculateFallDamage, canJump, canParent, createBaseHorseAttributes, createInventory, doPlayerRide, equipSaddle, fedFood, generateRandomJumpStrength, generateRandomMaxHealth, generateRandomSpeed, getAmbientSoundInterval, getCapability, getCustomJump, getDismountLocationForPassenger, getEatAnim, getFlag, getMaxSpawnClusterSize, getMouthAnim, getOwnerUUID, getSoundVolume, getStandAnim, getStandingEyeHeight, getTemper, handleEntityEvent, handleStartJump, handleStopJump, hasInventoryChanged, invalidateCaps, isBred, isEating, isJumping, isPushable, isSaddled, isStanding, isTamed, modifyTemper, onClimbable, onLeashDistance, onPlayerJump, openCustomInventoryScreen, playGallopSound, playJumpSound, setBred, setEating, setFlag, setIsJumping, setOffspringAttributes, setOwnerUUID, setStanding, setTamed, setTemper, spawnTamingParticles, tameWithName, tick, travel
Methods inherited from class net.minecraft.world.entity.animal.Animal
canFallInLove, checkAnimalSpawnRules, customServerAiStep, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, hurt, isBrightEnoughToSpawn, isInLove, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
Methods inherited from class net.minecraft.world.entity.AgeableMob
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, getSpeedUpSecondsWhenFeeding, isBaby, onSyncedDataUpdated, setAge, setBaby
Methods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, getWalkTargetValue, isPathFinding, shouldStayCloseToLeashHolder, tickLeash
Methods inherited from class net.minecraft.world.entity.Mob
ate, baseTick, canAttackType, canBeLeashed, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getSpawnType, getTarget, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, iteratePathfindingStartNodeCandidatePositions, jumpInFluid, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeFreeWill, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUp
Methods inherited from class net.minecraft.world.entity.LivingEntity
actuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canBreatheUnderwater, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doPush, dropAllDeathLoot, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, verifyEquippedItem, wasExperienceConsumed
Methods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, asChatSender, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkInsideBlocks, checkOutOfWorld, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, createCommandSourceStack, createHoverEvent, dampensVibrations, discard, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, gameEvent, gameEvent, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLevel, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getName, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getPositionCodec, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, lavaHurt, lerpMotion, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playEntityOnFireExtinguishedSound, playerTouch, playSound, playSound, playSwimSound, position, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevelCallback, setNoGravity, setOldPosAndRot, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, wasKilled
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.commands.CommandSource
alwaysAccepts
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit
Methods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid
-
Field Details
-
MAX_STRENGTH
private static final int MAX_STRENGTH- See Also:
-
VARIANTS
private static final int VARIANTS- See Also:
-
FOOD_ITEMS
-
DATA_STRENGTH_ID
-
DATA_SWAG_ID
-
DATA_VARIANT_ID
-
didSpit
boolean didSpit -
caravanHead
-
caravanTail
-
-
Constructor Details
-
Llama
-
-
Method Details
-
isTraderLlama
public boolean isTraderLlama() -
setStrength
private void setStrength(int p_30841_) -
setRandomStrength
-
getStrength
public int getStrength() -
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classAbstractChestedHorse
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveData
in classAbstractChestedHorse
-
registerGoals
protected void registerGoals()- Overrides:
registerGoals
in classAbstractHorse
-
createAttributes
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedData
in classAbstractChestedHorse
-
getVariant
public int getVariant() -
setVariant
public void setVariant(int p_30839_) -
getInventorySize
protected int getInventorySize()- Overrides:
getInventorySize
in classAbstractChestedHorse
-
positionRider
- Overrides:
positionRider
in classAbstractHorse
-
getPassengersRidingOffset
public double getPassengersRidingOffset()- Overrides:
getPassengersRidingOffset
in classAbstractChestedHorse
-
getControllingPassenger
- Overrides:
getControllingPassenger
in classAbstractHorse
-
isFood
- Overrides:
isFood
in classAbstractHorse
-
handleEating
- Overrides:
handleEating
in classAbstractHorse
-
isImmobile
protected boolean isImmobile()- Overrides:
isImmobile
in classAbstractHorse
-
finalizeSpawn
@Nullable public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_30774_, DifficultyInstance p_30775_, MobSpawnType p_30776_, @Nullable SpawnGroupData p_30777_, @Nullable CompoundTag p_30778_) Description copied from class:Mob
Calls to this method should be accompanied by firing the
Additionally, if you override this method, you should ensure you either call super, or manually setSpecialSpawn
event viaForgeEventFactory.doSpecialSpawn(net.minecraft.world.entity.Mob, net.minecraft.world.level.LevelAccessor, float, float, float, net.minecraft.world.level.BaseSpawner, net.minecraft.world.entity.MobSpawnType)
.Mob.spawnType
from your override.- Overrides:
finalizeSpawn
in classAbstractHorse
-
getAngrySound
- Overrides:
getAngrySound
in classAbstractHorse
-
getAmbientSound
- Overrides:
getAmbientSound
in classAbstractHorse
-
getHurtSound
- Overrides:
getHurtSound
in classAbstractHorse
-
getDeathSound
- Overrides:
getDeathSound
in classAbstractHorse
-
getEatingSound
- Overrides:
getEatingSound
in classAbstractHorse
-
playStepSound
- Overrides:
playStepSound
in classAbstractHorse
-
playChestEquipsSound
protected void playChestEquipsSound()- Overrides:
playChestEquipsSound
in classAbstractChestedHorse
-
makeMad
public void makeMad()- Overrides:
makeMad
in classAbstractHorse
-
getInventoryColumns
public int getInventoryColumns()- Overrides:
getInventoryColumns
in classAbstractChestedHorse
-
canWearArmor
public boolean canWearArmor()- Overrides:
canWearArmor
in classAbstractHorse
-
isWearingArmor
public boolean isWearingArmor()- Overrides:
isWearingArmor
in classAbstractHorse
-
isArmor
- Overrides:
isArmor
in classAbstractHorse
-
isSaddleable
public boolean isSaddleable()- Specified by:
isSaddleable
in interfaceSaddleable
- Overrides:
isSaddleable
in classAbstractHorse
-
containerChanged
- Specified by:
containerChanged
in interfaceContainerListener
- Overrides:
containerChanged
in classAbstractHorse
-
updateContainerEquipment
protected void updateContainerEquipment()- Overrides:
updateContainerEquipment
in classAbstractHorse
-
setSwag
-
getDyeColor
-
getSwag
-
getMaxTemper
public int getMaxTemper()- Overrides:
getMaxTemper
in classAbstractHorse
-
canMate
- Overrides:
canMate
in classAbstractHorse
-
getBreedOffspring
- Overrides:
getBreedOffspring
in classAbstractHorse
-
makeBabyLlama
-
spit
-
setDidSpit
void setDidSpit(boolean p_30753_) -
causeFallDamage
- Overrides:
causeFallDamage
in classAbstractHorse
-
leaveCaravan
public void leaveCaravan() -
joinCaravan
-
hasCaravanTail
public boolean hasCaravanTail() -
inCaravan
public boolean inCaravan() -
getCaravanHead
-
followLeashSpeed
protected double followLeashSpeed()- Overrides:
followLeashSpeed
in classPathfinderMob
-
followMommy
protected void followMommy()- Overrides:
followMommy
in classAbstractHorse
-
canEatGrass
public boolean canEatGrass()- Overrides:
canEatGrass
in classAbstractHorse
-
performRangedAttack
- Specified by:
performRangedAttack
in interfaceRangedAttackMob
-
getLeashOffset
- Overrides:
getLeashOffset
in classEntity
-