public abstract class MobEntity extends LivingEntity
Entity.IMoveCallback
修飾子とタイプ | フィールドと説明 |
---|---|
protected int |
experienceValue |
GoalSelector |
goalSelector |
protected float[] |
inventoryArmorDropChances |
protected float[] |
inventoryHandsDropChances |
protected JumpController |
jumpController |
int |
livingSoundTime |
protected LookController |
lookController |
protected MovementController |
moveController |
protected PathNavigator |
navigator |
GoalSelector |
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
修飾子 | コンストラクタと説明 |
---|---|
protected |
MobEntity(EntityType<? extends MobEntity> type,
World worldIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
attackEntityAsMob(Entity entityIn) |
void |
baseTick()
Gets called every tick from main Entity class
|
boolean |
canAttack(EntityType<?> typeIn) |
boolean |
canAttack(LivingEntity target) |
boolean |
canBeLeashedTo(PlayerEntity player) |
boolean |
canBeSteered()
returns true if all the conditions for steering the entity are met.
|
boolean |
canDespawn(double distanceToClosestPlayer) |
protected boolean |
canEquipItem(ItemStack stack) |
boolean |
canPassengerSteer() |
boolean |
canPickUpItem(ItemStack itemstackIn) |
boolean |
canPickUpLoot() |
boolean |
canSpawn(IWorld worldIn,
SpawnReason spawnReasonIn) |
static boolean |
canSpawnOn(EntityType<? extends MobEntity> typeIn,
IWorld worldIn,
SpawnReason reason,
BlockPos pos,
java.util.Random randomIn)
Returns true if entity is spawned from spawner or if entity can spawn on given BlockPos
|
void |
checkDespawn()
Makes the entity despawn if requirements are reached
|
void |
clearLeashed(boolean sendPacket,
boolean dropLead)
Removes the leash from this entity
|
protected BodyController |
createBodyController() |
protected PathNavigator |
createNavigator(World worldIn)
Returns new PathNavigateGround instance
|
boolean |
detachHome() |
protected void |
dropLoot(DamageSource damageSourceIn,
boolean p_213354_2_) |
protected void |
dropSpecialItems(DamageSource source,
int looting,
boolean recentlyHitIn) |
void |
eatGrassBonus()
This function applies the benefits of growing back wool and faster growing up to the acting entity.
|
void |
enablePersistence()
Enable the Entity persistence
|
void |
faceEntity(Entity entityIn,
float maxYawIncrease,
float maxPitchIncrease)
Changes pitch and yaw so that the entity calling the function is facing the entity provided as an argument.
|
protected SoundEvent |
getAmbientSound() |
static Item |
getArmorByChance(EquipmentSlotType slotIn,
int chance) |
java.lang.Iterable<ItemStack> |
getArmorInventoryList() |
LivingEntity |
getAttackTarget()
Gets the active target the Task system uses for tracking
|
protected float |
getDropChance(EquipmentSlotType slotIn) |
EntitySenses |
getEntitySenses()
returns the EntitySenses Object for the EntityLiving
|
protected int |
getExperiencePoints(PlayerEntity player)
Get the experience points the entity currently has.
|
int |
getFaceRotSpeed() |
java.lang.Iterable<ItemStack> |
getHeldEquipment() |
BlockPos |
getHomePosition() |
int |
getHorizontalFaceSpeed() |
ItemStack |
getItemStackFromSlot(EquipmentSlotType slotIn) |
JumpController |
getJumpController() |
boolean |
getLeashed() |
Entity |
getLeashHolder() |
LookController |
getLookController() |
protected LootContext.Builder |
getLootContextBuilder(boolean p_213363_1_,
DamageSource damageSourceIn) |
protected ResourceLocation |
getLootTable() |
ResourceLocation |
getLootTableResourceLocation() |
int |
getMaxFallHeight()
The maximum height from where the entity is alowed to jump (used in pathfinder)
|
float |
getMaximumHomeDistance() |
int |
getMaxSpawnedInChunk()
Will return how many at most can spawn in a chunk at once.
|
MovementController |
getMoveHelper() |
PathNavigator |
getNavigator() |
float |
getPathPriority(PathNodeType nodeType) |
HandSide |
getPrimaryHand() |
static EquipmentSlotType |
getSlotForItemStack(ItemStack stack) |
int |
getTalkInterval()
Get number of ticks, at least during which the living entity will be silent.
|
int |
getVerticalFaceSpeed()
The speed it takes to move the entityliving's rotationPitch through the faceEntity method.
|
protected void |
handleFluidJump(Tag<Fluid> fluidTag) |
void |
handleStatusUpdate(byte id)
|
boolean |
isAggressive() |
boolean |
isAIDisabled()
Get whether this Entity's AI is disabled
|
protected boolean |
isDespawnPeaceful() |
boolean |
isHolding(Item itemIn) |
protected boolean |
isInDaylight() |
static boolean |
isItemStackInSlot(EquipmentSlotType slotIn,
ItemStack stack) |
boolean |
isLeftHanded() |
boolean |
isMaxGroupSize(int sizeIn) |
boolean |
isNoDespawnRequired()
Return the persistenceRequired field (whether this entity is allowed to naturally despawn)
|
boolean |
isNotColliding(IWorldReader worldIn) |
boolean |
isServerWorld()
Returns whether the entity is in a server world
|
boolean |
isWithinHomeDistanceCurrentPosition() |
boolean |
isWithinHomeDistanceFromPosition(BlockPos pos) |
void |
livingTick()
Called frequently so the entity can update its state every tick as required.
|
ILivingEntityData |
onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
void |
playAmbientSound()
Plays living's sound at its position
|
protected void |
playHurtSound(DamageSource source) |
boolean |
preventDespawn() |
boolean |
processInitialInteract(PlayerEntity player,
Hand hand) |
protected boolean |
processInteract(PlayerEntity player,
Hand hand) |
void |
readAdditional(CompoundNBT compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
protected void |
registerAttributes() |
protected void |
registerData() |
protected void |
registerGoals() |
boolean |
replaceItemInInventory(int inventorySlot,
ItemStack itemStackIn) |
protected void |
sendDebugPackets() |
void |
setAggroed(boolean hasAggro) |
void |
setAIMoveSpeed(float speedIn)
set the movespeed used for the new AI system
|
void |
setAttackTarget(LivingEntity entitylivingbaseIn)
Sets the active target the Task system uses for tracking
|
void |
setCanPickUpLoot(boolean canPickup) |
void |
setDropChance(EquipmentSlotType slotIn,
float chance) |
protected void |
setEnchantmentBasedOnDifficulty(DifficultyInstance difficulty)
Enchants Entity's current equipments based on given DifficultyInstance
|
protected void |
setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
Gives armor or weapon for entity based on given DifficultyInstance
|
void |
setHomePosAndDistance(BlockPos pos,
int distance) |
void |
setItemStackToSlot(EquipmentSlotType slotIn,
ItemStack stack) |
void |
setLeashHolder(Entity entityIn,
boolean sendAttachNotification)
Sets the entity to be leashed to.
|
void |
setLeftHanded(boolean leftHanded) |
void |
setMoveForward(float amount) |
void |
setMoveStrafing(float amount) |
void |
setMoveVertical(float amount) |
void |
setNoAI(boolean disable)
Set whether this Entity's AI is disabled
|
void |
setPathPriority(PathNodeType nodeType,
float priority) |
void |
setVehicleEntityId(int leashHolderIDIn) |
protected boolean |
shouldExchangeEquipment(ItemStack candidate,
ItemStack existing,
EquipmentSlotType slotTypeIn) |
void |
spawnExplosionParticle()
Spawns an explosion particle around the Entity's location
|
boolean |
startRiding(Entity entityIn,
boolean force) |
void |
tick()
Called to update the entity's position/logic.
|
protected void |
updateAITasks() |
protected float |
updateDistance(float p_110146_1_,
float p_110146_2_) |
protected void |
updateEntityActionState() |
protected void |
updateEquipmentIfNeeded(ItemEntity itemEntity)
Tests if this entity should pickup a weapon or an armor.
|
protected void |
updateLeashedState()
Applies logic related to leashes, for example dragging the entity or breaking the leash.
|
protected void |
updateMovementGoalFlags()
Sets MOVE, JUMP, LOOK Goal.Flags depending if entity is riding or been controlled
|
void |
writeAdditional(CompoundNBT compound) |
addPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityFrom, attemptTeleport, blockUsingShield, canAttack, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, constructKnockBackVector, createBrain, createSpawnPacket, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, determineNextAir, dropInventory, findAmmo, frostWalk, func_213343_cS, func_225508_e_, 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, getCapability, getCombatTracker, getCreatureAttribute, getDeathSound, getDrinkSound, getEatSound, getEyeHeight, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getHurtSound, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSize, getSoundPitch, getSoundVolume, getStandingEyeHeight, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidSneak, hasItemInSlot, heal, isActiveItemStackBlocking, isActualySwimming, isAlive, isChild, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPotionActive, isPotionApplicable, isSleeping, isSpinAttacking, jump, knockBack, lookAt, markPotionsDirty, markVelocityChanged, notifyDataManagerChange, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onFoodEaten, onItemPickup, onItemUseFinish, onKillCommand, onLivingFall, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, playFallSound, remove, 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, travel, 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, getControllingPassenger, 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, getMountedYOffset, 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, getYOffset, 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, playStepSound, 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, updatePassenger, updatePortal, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability
public int livingSoundTime
protected int experienceValue
protected LookController lookController
protected MovementController moveController
protected JumpController jumpController
protected PathNavigator navigator
public final GoalSelector goalSelector
public final GoalSelector targetSelector
protected final float[] inventoryHandsDropChances
protected final float[] inventoryArmorDropChances
protected MobEntity(EntityType<? extends MobEntity> type, World worldIn)
protected void registerGoals()
protected void registerAttributes()
registerAttributes
クラス内 LivingEntity
protected PathNavigator createNavigator(World worldIn)
public float getPathPriority(PathNodeType nodeType)
public void setPathPriority(PathNodeType nodeType, float priority)
protected BodyController createBodyController()
public LookController getLookController()
public MovementController getMoveHelper()
public JumpController getJumpController()
public PathNavigator getNavigator()
public EntitySenses getEntitySenses()
@Nullable public LivingEntity getAttackTarget()
public void setAttackTarget(@Nullable LivingEntity entitylivingbaseIn)
public boolean canAttack(EntityType<?> typeIn)
canAttack
クラス内 LivingEntity
public void eatGrassBonus()
protected void registerData()
registerData
クラス内 LivingEntity
public int getTalkInterval()
public void playAmbientSound()
public void baseTick()
baseTick
クラス内 LivingEntity
protected void playHurtSound(DamageSource source)
playHurtSound
クラス内 LivingEntity
protected int getExperiencePoints(PlayerEntity player)
getExperiencePoints
クラス内 LivingEntity
public void spawnExplosionParticle()
public void handleStatusUpdate(byte id)
handleStatusUpdate
クラス内 LivingEntity
public void tick()
tick
クラス内 LivingEntity
protected void updateMovementGoalFlags()
protected float updateDistance(float p_110146_1_, float p_110146_2_)
updateDistance
クラス内 LivingEntity
@Nullable protected SoundEvent getAmbientSound()
public void writeAdditional(CompoundNBT compound)
writeAdditional
クラス内 LivingEntity
public void readAdditional(CompoundNBT compound)
readAdditional
クラス内 LivingEntity
protected void dropLoot(DamageSource damageSourceIn, boolean p_213354_2_)
dropLoot
クラス内 LivingEntity
protected LootContext.Builder getLootContextBuilder(boolean p_213363_1_, DamageSource damageSourceIn)
getLootContextBuilder
クラス内 LivingEntity
public final ResourceLocation getLootTableResourceLocation()
getLootTableResourceLocation
クラス内 LivingEntity
protected ResourceLocation getLootTable()
public void setMoveForward(float amount)
public void setMoveVertical(float amount)
public void setMoveStrafing(float amount)
public void setAIMoveSpeed(float speedIn)
setAIMoveSpeed
クラス内 LivingEntity
public void livingTick()
livingTick
クラス内 LivingEntity
protected void updateEquipmentIfNeeded(ItemEntity itemEntity)
protected boolean shouldExchangeEquipment(ItemStack candidate, ItemStack existing, EquipmentSlotType slotTypeIn)
protected boolean canEquipItem(ItemStack stack)
public boolean canDespawn(double distanceToClosestPlayer)
public boolean preventDespawn()
protected boolean isDespawnPeaceful()
public void checkDespawn()
checkDespawn
クラス内 Entity
protected final void updateEntityActionState()
updateEntityActionState
クラス内 LivingEntity
protected void sendDebugPackets()
protected void updateAITasks()
public int getVerticalFaceSpeed()
public int getHorizontalFaceSpeed()
public int getFaceRotSpeed()
public void faceEntity(Entity entityIn, float maxYawIncrease, float maxPitchIncrease)
public static boolean canSpawnOn(EntityType<? extends MobEntity> typeIn, IWorld worldIn, SpawnReason reason, BlockPos pos, java.util.Random randomIn)
public boolean canSpawn(IWorld worldIn, SpawnReason spawnReasonIn)
public boolean isNotColliding(IWorldReader worldIn)
public int getMaxSpawnedInChunk()
public boolean isMaxGroupSize(int sizeIn)
public int getMaxFallHeight()
getMaxFallHeight
クラス内 Entity
public java.lang.Iterable<ItemStack> getHeldEquipment()
getHeldEquipment
クラス内 Entity
public java.lang.Iterable<ItemStack> getArmorInventoryList()
getArmorInventoryList
クラス内 LivingEntity
public ItemStack getItemStackFromSlot(EquipmentSlotType slotIn)
getItemStackFromSlot
クラス内 LivingEntity
public void setItemStackToSlot(EquipmentSlotType slotIn, ItemStack stack)
setItemStackToSlot
クラス内 LivingEntity
protected void dropSpecialItems(DamageSource source, int looting, boolean recentlyHitIn)
dropSpecialItems
クラス内 LivingEntity
protected float getDropChance(EquipmentSlotType slotIn)
protected void setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
public static EquipmentSlotType getSlotForItemStack(ItemStack stack)
@Nullable public static Item getArmorByChance(EquipmentSlotType slotIn, int chance)
protected void setEnchantmentBasedOnDifficulty(DifficultyInstance difficulty)
@Nullable public ILivingEntityData onInitialSpawn(IWorld worldIn, DifficultyInstance difficultyIn, SpawnReason reason, @Nullable ILivingEntityData spawnDataIn, @Nullable CompoundNBT dataTag)
public boolean canBeSteered()
public void enablePersistence()
public void setDropChance(EquipmentSlotType slotIn, float chance)
public boolean canPickUpLoot()
public void setCanPickUpLoot(boolean canPickup)
public boolean canPickUpItem(ItemStack itemstackIn)
canPickUpItem
クラス内 LivingEntity
public boolean isNoDespawnRequired()
public final boolean processInitialInteract(PlayerEntity player, Hand hand)
processInitialInteract
クラス内 Entity
protected boolean processInteract(PlayerEntity player, Hand hand)
public boolean isWithinHomeDistanceCurrentPosition()
public boolean isWithinHomeDistanceFromPosition(BlockPos pos)
public void setHomePosAndDistance(BlockPos pos, int distance)
public BlockPos getHomePosition()
public float getMaximumHomeDistance()
public boolean detachHome()
protected void updateLeashedState()
public void clearLeashed(boolean sendPacket, boolean dropLead)
public boolean canBeLeashedTo(PlayerEntity player)
public boolean getLeashed()
@Nullable public Entity getLeashHolder()
public void setLeashHolder(Entity entityIn, boolean sendAttachNotification)
public void setVehicleEntityId(int leashHolderIDIn)
public boolean startRiding(Entity entityIn, boolean force)
startRiding
クラス内 Entity
public boolean replaceItemInInventory(int inventorySlot, ItemStack itemStackIn)
replaceItemInInventory
クラス内 Entity
public boolean canPassengerSteer()
canPassengerSteer
クラス内 Entity
public static boolean isItemStackInSlot(EquipmentSlotType slotIn, ItemStack stack)
public boolean isServerWorld()
isServerWorld
クラス内 LivingEntity
public void setNoAI(boolean disable)
public void setLeftHanded(boolean leftHanded)
public void setAggroed(boolean hasAggro)
public boolean isAIDisabled()
public boolean isLeftHanded()
public boolean isAggressive()
public HandSide getPrimaryHand()
getPrimaryHand
クラス内 LivingEntity
public boolean canAttack(LivingEntity target)
canAttack
クラス内 LivingEntity
public boolean attackEntityAsMob(Entity entityIn)
attackEntityAsMob
クラス内 LivingEntity
protected boolean isInDaylight()
protected void handleFluidJump(Tag<Fluid> fluidTag)
handleFluidJump
クラス内 LivingEntity
public boolean isHolding(Item itemIn)