类的使用
net.minecraft.entity.LivingEntity
-
-
net.minecraft.block中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.block中的方法 修饰符和类型 方法 说明 voidAbstractBannerBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidAbstractFurnaceBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidAbstractRedstoneGateBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidBarrelBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidBeaconBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidBedBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidBrewingStandBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidChestBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidCommandBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidConduitBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidDispenserBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidDoorBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidEnchantingTableBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidHopperBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidJukeboxBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidPistonBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidPlayerSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidShulkerBoxBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidSmallDripleafBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidStructureBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidTallPlantBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidTripwireHookBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidWallPlayerSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidWallWitherSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)voidWitherSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)private static voidTntBlock. primeTnt(World world, BlockPos pos, @Nullable LivingEntity igniter) -
net.minecraft.block.entity中LivingEntity的使用
声明为LivingEntity的net.minecraft.block.entity中的字段 修饰符和类型 字段 说明 private @Nullable LivingEntityConduitBlockEntity. targetEntity类型参数类型为LivingEntity的net.minecraft.block.entity中的字段 修饰符和类型 字段 说明 private List<LivingEntity>BellBlockEntity. hearingEntities返回LivingEntity的net.minecraft.block.entity中的方法 修饰符和类型 方法 说明 private static @Nullable LivingEntityConduitBlockEntity. findTargetEntity(World world, BlockPos pos, UUID uuid)参数类型为LivingEntity的net.minecraft.block.entity中的方法 修饰符和类型 方法 说明 private static voidBellBlockEntity. applyGlowToEntity(LivingEntity entity)Gives theStatusEffects.GLOWINGstatus effect to the given entity for 3 seconds (60 ticks).private static booleanBellBlockEntity. isRaiderEntity(BlockPos pos, LivingEntity entity)Determines whether the given entity is in theEntityTypeTags.RAIDERSentity type tag and within 48 blocks of the given position.voidStructureBlockBlockEntity. setAuthor(LivingEntity entity)类型变量类型为LivingEntity的net.minecraft.block.entity中的方法参数 修饰符和类型 方法 说明 private static voidBellBlockEntity. applyGlowToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities)private static voidBellBlockEntity. applyParticlesToRaiders(World world, BlockPos pos, List<LivingEntity> hearingEntities)SpawnsParticleTypes.ENTITY_EFFECTparticles around raiders within 48 blocks.private static booleanBellBlockEntity. raidersHearBell(BlockPos pos, List<LivingEntity> hearingEntities)Determines whether at least one of the given entities would be affected by the bell.voidBellBlockEntity.Effect. run(World world, BlockPos pos, List<LivingEntity> hearingEntities) -
net.minecraft.client.gui.hud中LivingEntity的使用
返回LivingEntity的net.minecraft.client.gui.hud中的方法 修饰符和类型 方法 说明 private LivingEntityInGameHud. getRiddenEntity()参数类型为LivingEntity的net.minecraft.client.gui.hud中的方法 修饰符和类型 方法 说明 private intInGameHud. getHeartCount(LivingEntity entity) -
net.minecraft.client.gui.screen.ingame中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.client.gui.screen.ingame中的方法 修饰符和类型 方法 说明 static voidInventoryScreen. drawEntity(int x, int y, int size, float mouseX, float mouseY, LivingEntity entity) -
net.minecraft.client.item中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.client.item中的方法 修饰符和类型 方法 说明 floatModelPredicateProvider. call(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) -
net.minecraft.client.network中LivingEntity的使用
net.minecraft.client.network中LivingEntity的子类 修饰符和类型 类 说明 classAbstractClientPlayerEntityclassClientPlayerEntityRepresents the client's own player entity.classOtherClientPlayerEntityRepresents a player entity that is present on the client but is not the client's own player. -
net.minecraft.client.render中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.client.render中的方法 修饰符和类型 方法 说明 static floatGameRenderer. getNightVisionStrength(LivingEntity entity, float float2) -
net.minecraft.client.render.entity中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.client.render.entity中的类 修饰符和类型 类 说明 classLivingEntityRenderer<T extends LivingEntity,M extends EntityModel<T>>参数类型为LivingEntity的net.minecraft.client.render.entity中的方法 修饰符和类型 方法 说明 private Vec3dGuardianEntityRenderer. fromLerpedPosition(LivingEntity entity, double yOffset, float delta)static intLivingEntityRenderer. getOverlay(LivingEntity entity, float whiteOverlayProgress)Returns the packed overlay color for an entity, determined by its death progress and whether it is flashing. -
net.minecraft.client.render.entity.feature中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.client.render.entity.feature中的方法 修饰符和类型 方法 说明 protected static <T extends LivingEntity>
voidFeatureRenderer. render(EntityModel<T> contextModel, EntityModel<T> model, Identifier texture, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, T entity, float limbAngle, float limbDistance, float age, float headYaw, float headPitch, float tickDelta, float red, float green, float blue)protected static <T extends LivingEntity>
voidFeatureRenderer. renderModel(EntityModel<T> model, Identifier texture, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, T entity, float red, float green, float blue)参数类型为LivingEntity的net.minecraft.client.render.entity.feature中的方法 修饰符和类型 方法 说明 protected voidHeldItemFeatureRenderer. renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)protected voidPlayerHeldItemFeatureRenderer. renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)private voidPlayerHeldItemFeatureRenderer. renderSpyglass(LivingEntity entity, ItemStack stack, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) -
net.minecraft.client.render.entity.model中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.client.render.entity.model中的类 修饰符和类型 类 说明 classBipedEntityModel<T extends LivingEntity>classElytraEntityModel<T extends LivingEntity>classEndermanEntityModel<T extends LivingEntity>classPlayerEntityModel<T extends LivingEntity>参数类型为LivingEntity的net.minecraft.client.render.entity.model中的方法 修饰符和类型 方法 说明 static voidCrossbowPosing. charge(ModelPart holdingArm, ModelPart pullingArm, LivingEntity actor, boolean rightArmed) -
net.minecraft.client.render.item中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.client.render.item中的方法 修饰符和类型 方法 说明 BakedModelItemRenderer. getHeldItemModel(ItemStack itemStack, @Nullable World world, @Nullable LivingEntity entity, int seed)private voidItemRenderer. innerRenderInGui(@Nullable LivingEntity entity, ItemStack itemStack, int x, int y, int int2)voidItemRenderer. renderInGuiWithOverrides(LivingEntity entity, ItemStack stack, int x, int y, int int2)Renders an item in a GUI with an attached entity.voidHeldItemRenderer. renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)voidItemRenderer. renderItem(@Nullable LivingEntity entity, ItemStack item, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable World world, int light, int overlay, int seed) -
net.minecraft.client.render.model.json中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.client.render.model.json中的方法 修饰符和类型 方法 说明 @Nullable BakedModelModelOverrideList. apply(BakedModel model, ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) -
net.minecraft.enchantment中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.enchantment中的方法 修饰符和类型 方法 说明 static Map.Entry<EquipmentSlot,ItemStack>EnchantmentHelper. chooseEquipmentWith(Enchantment enchantment, LivingEntity entity)Returns a pair of an equipment slot and the item stack in the supplied entity's slot, indicating the item stack has the enchantment supplied.static Map.Entry<EquipmentSlot,ItemStack>EnchantmentHelper. chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition)Returns a pair of an equipment slot and the item stack in the supplied entity's slot, indicating the item stack has the enchantment supplied and fulfills the extra condition.static voidFrostWalkerEnchantment. freezeWater(LivingEntity entity, World world, BlockPos blockPos, int level)static intEnchantmentHelper. getDepthStrider(LivingEntity entity)static intEnchantmentHelper. getEfficiency(LivingEntity entity)Map<EquipmentSlot,ItemStack>Enchantment. getEquipment(LivingEntity entity)static intEnchantmentHelper. getEquipmentLevel(Enchantment enchantment, LivingEntity entity)Returns the highest level of the passed enchantment in the enchantment's applicable equipment slots' item stacks.static intEnchantmentHelper. getFireAspect(LivingEntity entity)static intEnchantmentHelper. getKnockback(LivingEntity entity)static intEnchantmentHelper. getLooting(LivingEntity entity)static intEnchantmentHelper. getRespiration(LivingEntity entity)static floatEnchantmentHelper. getSweepingMultiplier(LivingEntity entity)static booleanEnchantmentHelper. hasAquaAffinity(LivingEntity entity)static booleanEnchantmentHelper. hasFrostWalker(LivingEntity entity)static booleanEnchantmentHelper. hasSoulSpeed(LivingEntity entity)voidDamageEnchantment. onTargetDamaged(LivingEntity user, Entity target, int level)voidEnchantment. onTargetDamaged(LivingEntity user, Entity target, int level)static voidEnchantmentHelper. onTargetDamaged(LivingEntity user, Entity target)voidEnchantment. onUserDamaged(LivingEntity user, Entity attacker, int level)static voidEnchantmentHelper. onUserDamaged(LivingEntity user, Entity attacker)voidThornsEnchantment. onUserDamaged(LivingEntity user, Entity attacker, int level)static doubleProtectionEnchantment. transformExplosionKnockback(LivingEntity entity, double velocity)static intProtectionEnchantment. transformFireDuration(LivingEntity entity, int duration) -
net.minecraft.entity中LivingEntity的使用
声明为LivingEntity的net.minecraft.entity中的字段 修饰符和类型 字段 说明 private @Nullable LivingEntityLivingEntity. attackerprivate LivingEntityLivingEntity. attackingprivate @Nullable LivingEntityTntEntity. causingEntityprivate @Nullable LivingEntityAreaEffectCloudEntity. owner类型参数类型为LivingEntity的net.minecraft.entity中的方法 修饰符和类型 方法 说明 static <T extends LivingEntity & Bucketable>
Optional<ActionResult>Bucketable. tryBucket(PlayerEntity player, Hand hand, T entity)返回LivingEntity的net.minecraft.entity中的方法 修饰符和类型 方法 说明 @Nullable LivingEntityLivingEntity. getAttacker()@Nullable LivingEntityLivingEntity. getAttacking()@Nullable LivingEntityTntEntity. getCausingEntity()@Nullable LivingEntityAreaEffectCloudEntity. getOwner()@Nullable LivingEntityLivingEntity. getPrimeAdversary()@Nullable LivingEntityCrossbowUser. getTarget()参数类型为LivingEntity的net.minecraft.entity中的方法 修饰符和类型 方法 说明 private voidLivingEntity. applyFoodEffects(ItemStack stack, World world, LivingEntity targetEntity)protected voidLivingEntity. attackLivingEntity(LivingEntity target)static booleanDismounting. canPlaceEntityAt(CollisionView world, LivingEntity entity, Box targetBox)static booleanDismounting. canPlaceEntityAt(CollisionView world, Vec3d offset, LivingEntity entity, EntityPose pose)booleanLivingEntity. canTarget(LivingEntity target)voidEntity. dealDamage(LivingEntity attacker, Entity target)private static CommandItemSlotLivingEntity. getCommandItemSlot(LivingEntity entity, EquipmentSlot slot)default Vec3fCrossbowUser. getProjectileLaunchVelocity(LivingEntity entity, Vec3d positionDelta, float multishotSpray)booleanLivingEntity. isTarget(LivingEntity entity, TargetPredicate predicate)protected voidLivingEntity. knockback(LivingEntity target)protected voidLivingEntity. onKilledBy(@Nullable LivingEntity adversary)Performs secondary effects after this mob has been killed.voidEntity. onKilledOther(ServerWorld world, LivingEntity other)voidLivingEntity. setAttacker(@Nullable LivingEntity attacker)voidAreaEffectCloudEntity. setOwner(@Nullable LivingEntity owner)default voidCrossbowUser. shoot(LivingEntity entity, float speed)default voidCrossbowUser. shoot(LivingEntity entity, LivingEntity target, ProjectileEntity projectile, float multishotSpray, float speed)voidCrossbowUser. shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)protected voidLivingEntity. takeShieldHit(LivingEntity attacker)voidLivingEntity. updateLimbs(LivingEntity entity, boolean flutter)Vec3dEntity. updatePassengerForDismount(LivingEntity passenger)参数类型为LivingEntity的net.minecraft.entity中的构造器 构造器 说明 TntEntity(World world, double x, double y, double z, @Nullable LivingEntity igniter)类型变量类型为LivingEntity的net.minecraft.entity中的构造器参数 构造器 说明 LivingEntity(EntityType<? extends LivingEntity> type, World world) -
net.minecraft.entity.ai中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.entity.ai中的字段 修饰符和类型 字段 说明 private Predicate<LivingEntity>TargetPredicate. predicate参数类型为LivingEntity的net.minecraft.entity.ai中的方法 修饰符和类型 方法 说明 voidRangedAttackMob. attack(LivingEntity target, float pullProgress)booleanTargetPredicate. test(@Nullable LivingEntity baseEntity, LivingEntity targetEntity)类型变量类型为LivingEntity的net.minecraft.entity.ai中的方法参数 修饰符和类型 方法 说明 TargetPredicateTargetPredicate. setPredicate(@Nullable Predicate<LivingEntity> predicate) -
net.minecraft.entity.ai.brain中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.entity.ai.brain中的类 修饰符和类型 类 说明 classBrain<E extends LivingEntity>static classBrain.Profile<E extends LivingEntity>A simple profile of a brain.类型参数类型为LivingEntity的net.minecraft.entity.ai.brain中的字段 修饰符和类型 字段 说明 static MemoryModuleType<LivingEntity>MemoryModuleType. ATTACK_TARGETstatic MemoryModuleType<LivingEntity>MemoryModuleType. AVOID_TARGETstatic MemoryModuleType<LivingEntity>MemoryModuleType. HURT_BY_ENTITYstatic MemoryModuleType<LivingEntity>MemoryModuleType. INTERACTION_TARGETstatic MemoryModuleType<List<LivingEntity>>MemoryModuleType. MOBSstatic MemoryModuleType<LivingEntity>MemoryModuleType. NEAREST_ATTACKABLEstatic MemoryModuleType<LivingEntity>MemoryModuleType. NEAREST_HOSTILEstatic MemoryModuleType<LivingEntity>MemoryModuleType. NEAREST_VISIBLE_ZOMBIFIEDstatic MemoryModuleType<List<LivingEntity>>MemoryModuleType. VISIBLE_MOBSstatic MemoryModuleType<List<LivingEntity>>MemoryModuleType. VISIBLE_VILLAGER_BABIES类型参数类型为LivingEntity的net.minecraft.entity.ai.brain中的方法 修饰符和类型 方法 说明 static <E extends LivingEntity>
com.mojang.serialization.Codec<Brain<E>>Brain. createBrainCodec(Collection<? extends MemoryModuleType<?>> memoryModules, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors)static <E extends LivingEntity>
Brain.Profile<E>Brain. createProfile(Collection<? extends MemoryModuleType<?>> memoryModules, Collection<? extends SensorType<? extends Sensor<? super E>>> sensors)参数类型为LivingEntity的net.minecraft.entity.ai.brain中的方法 修饰符和类型 方法 说明 booleanBlockPosLookTarget. isSeenBy(LivingEntity entity)booleanEntityLookTarget. isSeenBy(LivingEntity entity)booleanLookTarget. isSeenBy(LivingEntity entity) -
net.minecraft.entity.ai.brain.sensor中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.entity.ai.brain.sensor中的类 修饰符和类型 类 说明 classSensor<E extends LivingEntity>返回变量类型为LivingEntity的类型的net.minecraft.entity.ai.brain.sensor中的方法 修饰符和类型 方法 说明 private Optional<LivingEntity>NearestVisibleLivingEntitySensor. getNearestVisibleLivingEntity(LivingEntity entity)protected MemoryModuleType<LivingEntity>AxolotlAttackablesSensor. getOutputMemoryModule()protected abstract MemoryModuleType<LivingEntity>NearestVisibleLivingEntitySensor. getOutputMemoryModule()protected MemoryModuleType<LivingEntity>VillagerHostilesSensor. getOutputMemoryModule()protected Optional<List<LivingEntity>>NearestVisibleLivingEntitySensor. getVisibleLivingEntities(LivingEntity entity)private List<LivingEntity>VillagerBabiesSensor. getVisibleMobs(LivingEntity entity)private List<LivingEntity>VillagerBabiesSensor. getVisibleVillagerBabies(LivingEntity entities)参数类型为LivingEntity的net.minecraft.entity.ai.brain.sensor中的方法 修饰符和类型 方法 说明 private booleanAxolotlAttackablesSensor. canHunt(LivingEntity axolotl, LivingEntity target)private static Optional<BlockPos>PiglinSpecificSensor. findPiglinRepellent(ServerWorld world, LivingEntity entity)private Optional<LivingEntity>NearestVisibleLivingEntitySensor. getNearestVisibleLivingEntity(LivingEntity entity)protected Optional<List<LivingEntity>>NearestVisibleLivingEntitySensor. getVisibleLivingEntities(LivingEntity entity)private List<LivingEntity>VillagerBabiesSensor. getVisibleMobs(LivingEntity entity)private List<LivingEntity>VillagerBabiesSensor. getVisibleVillagerBabies(LivingEntity entities)private booleanAxolotlAttackablesSensor. isAlwaysHostileTo(LivingEntity axolotl, LivingEntity target)private booleanVillagerHostilesSensor. isCloseEnoughForDanger(LivingEntity villager, LivingEntity target)private booleanVillagerHostilesSensor. isHostile(LivingEntity entity)private booleanAxolotlAttackablesSensor. isInRange(LivingEntity axolotl, LivingEntity target)private booleanVillagerBabiesSensor. isVillagerBaby(LivingEntity entity)protected booleanAxolotlAttackablesSensor. matches(LivingEntity entity, LivingEntity target)protected abstract booleanNearestVisibleLivingEntitySensor. matches(LivingEntity entity, LivingEntity target)protected booleanVillagerHostilesSensor. matches(LivingEntity entity, LivingEntity target)static voidGolemLastSeenSensor. rememberIronGolem(LivingEntity entity)protected voidDummySensor. sense(ServerWorld world, LivingEntity entity)protected voidGolemLastSeenSensor. sense(ServerWorld world, LivingEntity entity)protected voidHurtBySensor. sense(ServerWorld world, LivingEntity entity)protected voidNearestLivingEntitiesSensor. sense(ServerWorld world, LivingEntity entity)protected voidNearestPlayersSensor. sense(ServerWorld world, LivingEntity entity)protected voidNearestVisibleLivingEntitySensor. sense(ServerWorld world, LivingEntity entity)protected voidPiglinBruteSpecificSensor. sense(ServerWorld world, LivingEntity entity)protected voidPiglinSpecificSensor. sense(ServerWorld world, LivingEntity entity)protected voidVillagerBabiesSensor. sense(ServerWorld world, LivingEntity entity)static voidGolemLastSeenSensor. senseIronGolem(LivingEntity entity)protected static booleanSensor. testTargetPredicate(LivingEntity entity, LivingEntity target)类型变量类型为LivingEntity的net.minecraft.entity.ai.brain.sensor中的方法参数 修饰符和类型 方法 说明 private voidNearestVisibleAdultSensor. findNearestVisibleAdult(PassiveEntity entity, List<LivingEntity> visibleMobs) -
net.minecraft.entity.ai.brain.task中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.entity.ai.brain.task中的类 修饰符和类型 类 说明 classCompositeTask<E extends LivingEntity>classConditionalTask<E extends LivingEntity>classCrossbowAttackTask<E extends MobEntity & CrossbowUser,T extends LivingEntity>classFindEntityTask<E extends LivingEntity,T extends LivingEntity>classFindEntityTask<E extends LivingEntity,T extends LivingEntity>classForgetTask<E extends LivingEntity>classRandomTask<E extends LivingEntity>classRidingTask<E extends LivingEntity,T extends Entity>classStartRidingTask<E extends LivingEntity>classTask<E extends LivingEntity>classTimeLimitedTask<E extends LivingEntity>classWalkToNearestVisibleWantedItemTask<E extends LivingEntity>类型参数类型为LivingEntity的net.minecraft.entity.ai.brain.task中的字段 修饰符和类型 字段 说明 private Predicate<LivingEntity>ForgetAttackTargetTask. alternativeConditionprivate BiPredicate<LivingEntity,LivingEntity>DefeatTargetTask. predicateprivate BiPredicate<LivingEntity,LivingEntity>DefeatTargetTask. predicateprivate Predicate<LivingEntity>FindInteractionTargetTask. predicateprivate Predicate<LivingEntity>FollowMobTask. predicateprivate Predicate<LivingEntity>FindInteractionTargetTask. shouldRunPredicateprivate Function<LivingEntity,Float>GoTowardsLookTarget. speedprivate Function<LivingEntity,Float>RangedApproachTask. speedprivate Function<LivingEntity,Float>TemptTask. speedprivate Function<LivingEntity,Float>WalkTowardClosestAdultTask. speedprivate Function<E,Optional<? extends LivingEntity>>UpdateAttackTargetTask. targetGetter类型参数类型为LivingEntity的net.minecraft.entity.ai.brain.task中的方法 修饰符和类型 方法 说明 private static <E extends LivingEntity>
booleanForgetAttackTargetTask. cannotReachTarget(E entity)static <T extends LivingEntity>
FindEntityTask<LivingEntity,T>FindEntityTask. create(EntityType<? extends T> entityType, int maxDistance, MemoryModuleType<T> targetModule, float speed, int completionRange)static <T extends LivingEntity>
FindEntityTask<LivingEntity,T>FindEntityTask. method_35071(EntityType<? extends T> entityType, int int2, Predicate<T> predicate, MemoryModuleType<T> memoryModuleType, float float2, int int3)abstract <E extends LivingEntity>
voidCompositeTask.RunMode. run(Stream<Task<? super E>> stream, ServerWorld world, E entity, long time)返回LivingEntity的net.minecraft.entity.ai.brain.task中的方法 修饰符和类型 方法 说明 private LivingEntityHoldTradeOffersTask. findPotentialCustomer(VillagerEntity villager)private @Nullable LivingEntityPlayWithVillagerBabiesTask. findVisibleVillagerBaby(LivingEntity entity)private LivingEntityAttackTask. getAttackTarget(E entity)private static LivingEntityCrossbowAttackTask. getAttackTarget(LivingEntity entity)private LivingEntityDefeatTargetTask. getAttackTarget(LivingEntity entity)private LivingEntityForgetAttackTargetTask. getAttackTarget(E entity)private LivingEntityMeleeAttackTask. getAttackTarget(MobEntity entity)static LivingEntityLookTargetUtil. getCloserEntity(LivingEntity source, Optional<LivingEntity> first, LivingEntity second)static LivingEntityLookTargetUtil. getCloserEntity(LivingEntity source, LivingEntity first, LivingEntity second)private LivingEntityPlayWithVillagerBabiesTask. getInteractionTarget(LivingEntity entity)返回变量类型为LivingEntity的类型的net.minecraft.entity.ai.brain.task中的方法 修饰符和类型 方法 说明 static <T extends LivingEntity>
FindEntityTask<LivingEntity,T>FindEntityTask. create(EntityType<? extends T> entityType, int maxDistance, MemoryModuleType<T> targetModule, float speed, int completionRange)private static com.mojang.datafixers.util.Pair<Integer,Task<LivingEntity>>VillagerTaskListProvider. createBusyFollowTask()private static com.mojang.datafixers.util.Pair<Integer,Task<LivingEntity>>VillagerTaskListProvider. createFreeFollowTask()private Map<LivingEntity,Integer>PlayWithVillagerBabiesTask. getBabyInteractionTargetCounts(PathAwareEntity entity)static Optional<LivingEntity>LookTargetUtil. getEntity(LivingEntity entity, MemoryModuleType<UUID> uuidMemoryModule)private Optional<LivingEntity>PlayWithVillagerBabiesTask. getLeastPopularBabyInteractionTarget(PathAwareEntity entity)private Optional<LivingEntity>PlayWithVillagerBabiesTask. getVisibleMob(PathAwareEntity entity)private List<LivingEntity>FindInteractionTargetTask. getVisibleMobs(LivingEntity entity)private List<LivingEntity>PlayWithVillagerBabiesTask. getVisibleVillagerBabies(PathAwareEntity entity)static <T extends LivingEntity>
FindEntityTask<LivingEntity,T>FindEntityTask. method_35071(EntityType<? extends T> entityType, int int2, Predicate<T> predicate, MemoryModuleType<T> memoryModuleType, float float2, int int3)参数类型为LivingEntity的net.minecraft.entity.ai.brain.task中的方法 修饰符和类型 方法 说明 private static booleanOpenDoorsTask. cannotReachDoor(ServerWorld world, LivingEntity entity, GlobalPos doorPos)static booleanLookTargetUtil. canSee(Brain<?> brain, LivingEntity target)private @Nullable Vec3dSeekSkyTask. findNearbySky(ServerWorld world, LivingEntity entity)private @Nullable LivingEntityPlayWithVillagerBabiesTask. findVisibleVillagerBaby(LivingEntity entity)protected voidSleepTask. finishRunning(ServerWorld world, LivingEntity entity, long time)protected voidTemptationCooldownTask. finishRunning(ServerWorld world, LivingEntity entity, long time)private voidRangedApproachTask. forgetWalkTarget(LivingEntity entity)private static LivingEntityCrossbowAttackTask. getAttackTarget(LivingEntity entity)private LivingEntityDefeatTargetTask. getAttackTarget(LivingEntity entity)static LivingEntityLookTargetUtil. getCloserEntity(LivingEntity source, Optional<LivingEntity> first, LivingEntity second)static LivingEntityLookTargetUtil. getCloserEntity(LivingEntity source, LivingEntity first, LivingEntity second)static Optional<LivingEntity>LookTargetUtil. getEntity(LivingEntity entity, MemoryModuleType<UUID> uuidMemoryModule)private LivingEntityPlayWithVillagerBabiesTask. getInteractionTarget(LivingEntity entity)private Optional<Integer>TemptationCooldownTask. getTemptationCooldownTicks(LivingEntity entity)private List<LivingEntity>FindInteractionTargetTask. getVisibleMobs(LivingEntity entity)static voidLookTargetUtil. give(LivingEntity entity, ItemStack stack, Vec3d targetLocation)private voidGiveGiftsToHeroTask. giveGifts(VillagerEntity villager, LivingEntity recipient)private static voidGatherItemsVillagerTask. giveHalfOfStack(VillagerEntity villager, Set<Item> validItems, LivingEntity target)private booleanPlayWithVillagerBabiesTask. hasInteractionTarget(LivingEntity entity)private booleanForgetCompletedPointOfInterestTask. isBedOccupiedByOthers(ServerWorld world, BlockPos pos, LivingEntity entity)static booleanPanicTask. isHostileNearby(LivingEntity entity)private booleanPlayWithVillagerBabiesTask. isInteractionTargetOf(LivingEntity entity, LivingEntity other)static booleanLookTargetUtil. isNewTargetTooFar(LivingEntity source, LivingEntity target, double extraDistance)Checks if an entity can be a new attack target for the source entity.static booleanSeekSkyTask. isSkyVisible(ServerWorld world, LivingEntity entity, BlockPos pos)static booleanLookTargetUtil. isTargetWithinAttackRange(MobEntity source, LivingEntity target, int int2)static booleanLookTargetUtil. isTargetWithinMeleeRange(MobEntity source, LivingEntity target)static booleanLookTargetUtil. isVisibleInMemory(LivingEntity source, LivingEntity target)protected voidTemptationCooldownTask. keepRunning(ServerWorld world, LivingEntity entity, long time)static voidLookTargetUtil. lookAt(LivingEntity entity, LivingEntity target)static voidLookTargetUtil. lookAtAndWalkTowardsEachOther(LivingEntity first, LivingEntity second, float speed)private static voidLookTargetUtil. lookAtEachOther(LivingEntity first, LivingEntity second)static voidOpenDoorsTask. method_30760(ServerWorld serverWorld, LivingEntity livingEntity, @Nullable PathNode pathNode, @Nullable PathNode pathNode2)private static booleanOpenDoorsTask. method_30761(ServerWorld serverWorld, LivingEntity livingEntity, BlockPos blockPos)private static booleanOpenDoorsTask. method_30766(ServerWorld serverWorld, LivingEntity livingEntity, BlockPos blockPos)private voidOpenDoorsTask. method_30767(ServerWorld serverWorld, LivingEntity livingEntity, BlockPos blockPos)private voidRangedApproachTask. rememberWalkTarget(LivingEntity entity, LivingEntity target)protected voidDefeatTargetTask. run(ServerWorld world, LivingEntity entity, long time)protected voidEndRaidTask. run(ServerWorld world, LivingEntity entity, long time)voidFindInteractionTargetTask. run(ServerWorld world, LivingEntity entity, long time)protected voidFollowMobTask. run(ServerWorld world, LivingEntity entity, long time)protected voidForgetBellRingTask. run(ServerWorld world, LivingEntity entity, long time)protected voidForgetCompletedPointOfInterestTask. run(ServerWorld world, LivingEntity entity, long time)protected voidGoTowardsLookTarget. run(ServerWorld world, LivingEntity entity, long time)protected voidHideInHomeTask. run(ServerWorld world, LivingEntity entity, long time)protected voidHideWhenBellRingsTask. run(ServerWorld world, LivingEntity entity, long time)protected voidMeetVillagerTask. run(ServerWorld world, LivingEntity entity, long time)protected voidOpenDoorsTask. run(ServerWorld world, LivingEntity entity, long time)protected voidPacifyTask. run(ServerWorld world, LivingEntity entity, long time)protected voidRingBellTask. run(ServerWorld world, LivingEntity entity, long time)protected voidScheduleActivityTask. run(ServerWorld world, LivingEntity entity, long time)protected voidSeekSkyTask. run(ServerWorld world, LivingEntity entity, long time)protected voidSleepTask. run(ServerWorld world, LivingEntity entity, long time)protected voidStartRaidTask. run(ServerWorld world, LivingEntity entity, long time)protected voidWakeUpTask. run(ServerWorld world, LivingEntity entity, long time)protected voidWalkHomeTask. run(ServerWorld world, LivingEntity entity, long time)private voidPlayWithVillagerBabiesTask. setGroundTarget(ServerWorld world, PathAwareEntity entity, LivingEntity unusedBaby)private voidCrossbowAttackTask. setLookTarget(MobEntity entity, LivingEntity target)private static voidPlayWithVillagerBabiesTask. setPlayTarget(PathAwareEntity entity, LivingEntity target)private voidHoldTradeOffersTask. setupOffers(LivingEntity customer, VillagerEntity villager)protected booleanSleepTask. shouldKeepRunning(ServerWorld world, LivingEntity entity, long time)protected booleanTemptationCooldownTask. shouldKeepRunning(ServerWorld world, LivingEntity entity, long time)protected booleanWaitTask. shouldKeepRunning(ServerWorld world, LivingEntity entity, long time)protected booleanDefeatTargetTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanEndRaidTask. shouldRun(ServerWorld world, LivingEntity entity)booleanFindInteractionTargetTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanFollowMobTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanForgetCompletedPointOfInterestTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanHideInHomeDuringRaidTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanHideInHomeTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanMeetVillagerTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanOpenDoorsTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanRingBellTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanSeekSkyAfterRaidWinTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanSeekSkyTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanSleepTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanStartRaidTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanWakeUpTask. shouldRun(ServerWorld world, LivingEntity entity)protected booleanWalkHomeTask. shouldRun(ServerWorld world, LivingEntity entity)private booleanFindInteractionTargetTask. test(LivingEntity entity)private booleanFindEntityTask. testPredicate(LivingEntity entity)private voidCrossbowAttackTask. tickState(E entity, LivingEntity target)private voidUpdateAttackTargetTask. updateAttackTarget(E entity, LivingEntity target)static voidLookTargetUtil. walkTowards(LivingEntity entity, Entity target, float speed, int completionRange)static voidLookTargetUtil. walkTowards(LivingEntity entity, BlockPos target, float speed, int completionRange)private static voidLookTargetUtil. walkTowardsEachOther(LivingEntity first, LivingEntity second, float speed)static booleanPanicTask. wasHurt(LivingEntity entity)类型变量类型为LivingEntity的net.minecraft.entity.ai.brain.task中的方法参数 修饰符和类型 方法 说明 private static booleanLookTargetUtil. canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryType, Predicate<LivingEntity> filter)private static booleanLookTargetUtil. canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryType, Predicate<LivingEntity> filter)static booleanLookTargetUtil. canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryModuleType, EntityType<?> entityType)static LivingEntityLookTargetUtil. getCloserEntity(LivingEntity source, Optional<LivingEntity> first, LivingEntity second) -
net.minecraft.entity.ai.goal中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.entity.ai.goal中的类 修饰符和类型 类 说明 classDisableableFollowTargetGoal<T extends LivingEntity>classFleeEntityGoal<T extends LivingEntity>classFollowTargetGoal<T extends LivingEntity>classFollowTargetIfTamedGoal<T extends LivingEntity>classRaidGoal<T extends LivingEntity>声明为LivingEntity的net.minecraft.entity.ai.goal中的字段 修饰符和类型 字段 说明 private LivingEntityTrackOwnerAttackerGoal. attackerprivate LivingEntityAttackWithOwnerGoal. attackingprivate LivingEntityFollowOwnerGoal. ownerprivate LivingEntityAttackGoal. targetprivate LivingEntityCreeperIgniteGoal. targetprivate LivingEntityPounceAtTargetGoal. targetprivate LivingEntityProjectileAttackGoal. targetprivate LivingEntityTrackIronGolemTargetGoal. targetprotected LivingEntityTrackTargetGoal. targetprivate LivingEntityWanderNearTargetGoal. targetprotected TFleeEntityGoal. targetEntityprotected LivingEntityFollowTargetGoal. targetEntity类型参数类型为LivingEntity的net.minecraft.entity.ai.goal中的字段 修饰符和类型 字段 说明 protected Predicate<LivingEntity>FleeEntityGoal. extraInclusionSelectorprotected Predicate<LivingEntity>FleeEntityGoal. inclusionSelectorprotected Class<? extends LivingEntity>LookAtEntityGoal. targetType参数类型为LivingEntity的net.minecraft.entity.ai.goal中的方法 修饰符和类型 方法 说明 protected voidMeleeAttackGoal. attack(LivingEntity target, double squaredDistance)private booleanTrackTargetGoal. canNavigateToEntity(LivingEntity entity)protected booleanTrackTargetGoal. canTrack(@Nullable LivingEntity target, TargetPredicate targetPredicate)protected doubleMeleeAttackGoal. getSquaredMaxAttackDistance(LivingEntity entity)private booleanTemptGoal. isTemptedBy(LivingEntity entity)protected voidRevengeGoal. setMobEntityTarget(MobEntity mob, LivingEntity target)voidFollowTargetGoal. setTargetEntity(@Nullable LivingEntity targetEntity)类型变量类型为LivingEntity的net.minecraft.entity.ai.goal中的构造器参数 构造器 说明 DisableableFollowTargetGoal(RaiderEntity actor, Class<T> targetEntityClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable Predicate<LivingEntity> targetPredicate)FleeEntityGoal(PathAwareEntity fleeingEntity, Class<T> classToFleeFrom, float fleeDistance, double fleeSlowSpeed, double fleeFastSpeed, Predicate<LivingEntity> inclusionSelector)FleeEntityGoal(PathAwareEntity mob, Class<T> fleeFromType, Predicate<LivingEntity> extraInclusionSelector, float distance, double slowSpeed, double fastSpeed, Predicate<LivingEntity> inclusionSelector)FollowTargetGoal(MobEntity mob, Class<T> targetClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable Predicate<LivingEntity> targetPredicate)FollowTargetIfTamedGoal(TameableEntity tameable, Class<T> targetClass, boolean checkVisibility, @Nullable Predicate<LivingEntity> targetPredicate)LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range)LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance)RaidGoal(RaiderEntity raider, Class<T> targetEntityClass, boolean checkVisibility, @Nullable Predicate<LivingEntity> targetPredicate)StopAndLookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range)StopAndLookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance) -
net.minecraft.entity.attribute中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.entity.attribute中的字段 修饰符和类型 字段 说明 private static Map<EntityType<? extends LivingEntity>,DefaultAttributeContainer>DefaultAttributeRegistry. DEFAULT_ATTRIBUTE_REGISTRY类型变量类型为LivingEntity的net.minecraft.entity.attribute中的方法参数 修饰符和类型 方法 说明 static DefaultAttributeContainerDefaultAttributeRegistry. get(EntityType<? extends LivingEntity> type) -
net.minecraft.entity.boss中LivingEntity的使用
net.minecraft.entity.boss中LivingEntity的子类 修饰符和类型 类 说明 classWitherEntity类型参数类型为LivingEntity的net.minecraft.entity.boss中的字段 修饰符和类型 字段 说明 private static Predicate<LivingEntity>WitherEntity. CAN_ATTACK_PREDICATE参数类型为LivingEntity的net.minecraft.entity.boss中的方法 修饰符和类型 方法 说明 voidWitherEntity. attack(LivingEntity target, float pullProgress)private voidWitherEntity. shootSkullAt(int headIndex, LivingEntity target) -
net.minecraft.entity.boss.dragon中LivingEntity的使用
net.minecraft.entity.boss.dragon中LivingEntity的子类 修饰符和类型 类 说明 classEnderDragonEntity -
net.minecraft.entity.boss.dragon.phase中LivingEntity的使用
声明为LivingEntity的net.minecraft.entity.boss.dragon.phase中的字段 修饰符和类型 字段 说明 private LivingEntityStrafePlayerPhase. target参数类型为LivingEntity的net.minecraft.entity.boss.dragon.phase中的方法 修饰符和类型 方法 说明 voidStrafePlayerPhase. setTargetEntity(LivingEntity targetEntity) -
net.minecraft.entity.damage中LivingEntity的使用
声明为LivingEntity的net.minecraft.entity.damage中的字段 修饰符和类型 字段 说明 private LivingEntityDamageTracker. entity返回LivingEntity的net.minecraft.entity.damage中的方法 修饰符和类型 方法 说明 @Nullable LivingEntityDamageTracker. getBiggestAttacker()LivingEntityDamageTracker. getEntity()参数类型为LivingEntity的net.minecraft.entity.damage中的方法 修饰符和类型 方法 说明 static DamageSourceDamageSource. explosion(@Nullable LivingEntity attacker)TextBadRespawnPointDamageSource. getDeathMessage(LivingEntity entity)TextDamageSource. getDeathMessage(LivingEntity entity)TextEntityDamageSource. getDeathMessage(LivingEntity entity)TextProjectileDamageSource. getDeathMessage(LivingEntity entity)static DamageSourceDamageSource. mob(LivingEntity attacker)static DamageSourceDamageSource. mobProjectile(Entity projectile, @Nullable LivingEntity attacker)static DamageSourceDamageSource. sting(LivingEntity attacker)参数类型为LivingEntity的net.minecraft.entity.damage中的构造器 构造器 说明 DamageTracker(LivingEntity entity) -
net.minecraft.entity.decoration中LivingEntity的使用
net.minecraft.entity.decoration中LivingEntity的子类 修饰符和类型 类 说明 classArmorStandEntity -
net.minecraft.entity.effect中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.entity.effect中的方法 修饰符和类型 方法 说明 voidStatusEffect. applyInstantEffect(@Nullable Entity source, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity)voidStatusEffect. applyUpdateEffect(LivingEntity entity, int amplifier)voidStatusEffectInstance. applyUpdateEffect(LivingEntity entity)static intStatusEffectUtil. getHasteAmplifier(LivingEntity entity)static booleanStatusEffectUtil. hasHaste(LivingEntity entity)static booleanStatusEffectUtil. hasWaterBreathing(LivingEntity entity)voidAbsorptionStatusEffect. onApplied(LivingEntity entity, AttributeContainer attributes, int amplifier)voidStatusEffect. onApplied(LivingEntity entity, AttributeContainer attributes, int amplifier)voidAbsorptionStatusEffect. onRemoved(LivingEntity entity, AttributeContainer attributes, int amplifier)voidHealthBoostStatusEffect. onRemoved(LivingEntity entity, AttributeContainer attributes, int amplifier)voidStatusEffect. onRemoved(LivingEntity entity, AttributeContainer attributes, int amplifier)booleanStatusEffectInstance. update(LivingEntity entity, Runnable overwriteCallback) -
net.minecraft.entity.mob中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.entity.mob中的类 修饰符和类型 类 说明 (专用程序包) static classSpiderEntity.FollowTargetGoal<T extends LivingEntity>声明为LivingEntity的net.minecraft.entity.mob中的字段 修饰符和类型 字段 说明 private LivingEntityGuardianEntity. cachedBeamTargetprivate @Nullable LivingEntityEvokerFangsEntity. ownerprivate LivingEntityEndermanEntity.ChasePlayerGoal. targetprivate LivingEntityMobEntity. target返回LivingEntity的net.minecraft.entity.mob中的方法 修饰符和类型 方法 说明 @Nullable LivingEntityAngerable. getAttacker()@Nullable LivingEntityGuardianEntity. getBeamTarget()@Nullable LivingEntityEvokerFangsEntity. getOwner()@Nullable LivingEntityAbstractPiglinEntity. getTarget()@Nullable LivingEntityAngerable. getTarget()@Nullable LivingEntityMobEntity. getTarget()返回变量类型为LivingEntity的类型的net.minecraft.entity.mob中的方法 修饰符和类型 方法 说明 private static Optional<LivingEntity>PiglinBrain. getAngryAt(AbstractPiglinEntity piglin)static Optional<LivingEntity>PiglinBrain. getAvoiding(PiglinEntity piglin)private Optional<? extends LivingEntity>ZoglinEntity. getHoglinTarget()private static Optional<? extends LivingEntity>HoglinBrain. getNearestVisibleTargetablePlayer(HoglinEntity hoglin)private static Optional<? extends LivingEntity>PiglinBrain. getPreferredTarget(PiglinEntity piglin)private static MemoryTransferTask<PiglinEntity,LivingEntity>PiglinBrain. goToNemesisTask()private static MemoryTransferTask<PiglinEntity,LivingEntity>PiglinBrain. makeGoToZombifiedPiglinTask()private static Optional<? extends LivingEntity>PiglinBruteBrain. method_30247(AbstractPiglinEntity piglin)private static Optional<? extends LivingEntity>PiglinBruteBrain. method_30249(AbstractPiglinEntity piglin, MemoryModuleType<? extends LivingEntity> memoryModuleType)参数类型为LivingEntity的net.minecraft.entity.mob中的方法 修饰符和类型 方法 说明 protected static voidPiglinBrain. angerAtCloserTargets(AbstractPiglinEntity piglin, LivingEntity target)private static voidPiglinBrain. angerAtIfCloser(AbstractPiglinEntity piglin, LivingEntity target)private static voidHoglinBrain. askAdultsForHelp(HoglinEntity hoglin, LivingEntity target)private static voidHoglinBrain. askAdultsToAvoid(HoglinEntity hoglin, LivingEntity target)voidAbstractSkeletonEntity. attack(LivingEntity target, float pullProgress)voidDrownedEntity. attack(LivingEntity target, float pullProgress)voidIllusionerEntity. attack(LivingEntity target, float pullProgress)voidPiglinEntity. attack(LivingEntity target, float pullProgress)voidPillagerEntity. attack(LivingEntity target, float pullProgress)voidWitchEntity. attack(LivingEntity target, float pullProgress)private static voidHoglinBrain. avoid(HoglinEntity hoglin, LivingEntity target)private static voidHoglinBrain. avoidEnemy(HoglinEntity hoglin, LivingEntity target)protected static voidPiglinBrain. becomeAngryWith(AbstractPiglinEntity piglin, LivingEntity target)private static voidPiglinBrain. becomeAngryWithPlayer(AbstractPiglinEntity piglin, LivingEntity player)booleanDrownedEntity. canDrownedAttackTarget(@Nullable LivingEntity target)booleanMobEntity. canTarget(LivingEntity target)private static booleanPiglinBrain. canWander(LivingEntity piglin)private voidEvokerFangsEntity. damage(LivingEntity target)protected voidSlimeEntity. damage(LivingEntity target)protected doubleRavagerEntity.AttackGoal. getSquaredMaxAttackDistance(LivingEntity entity)protected doubleSpiderEntity.AttackGoal. getSquaredMaxAttackDistance(LivingEntity entity)protected doubleVindicatorEntity.AttackGoal. getSquaredMaxAttackDistance(LivingEntity entity)private static voidPiglinBrain. groupRunAwayFrom(PiglinEntity piglin, LivingEntity target)private static booleanPiglinBrain. hasBeenHurt(LivingEntity piglin)private static booleanPiglinBrain. hasPlayerHoldingWantedItemNearby(LivingEntity entity)static booleanPiglinBrain. isGoldHoldingPlayer(LivingEntity target)private static booleanPiglinBrain. isHoldingCrossbow(LivingEntity piglin)private static booleanPiglinBrain. isHuntingTarget(LivingEntity piglin, LivingEntity target)private static booleanPiglinBruteBrain. isNotCreativeSpectatorOrPeaceful(LivingEntity entity)private static booleanPiglinBrain. isPreferredAttackTarget(PiglinEntity piglin, LivingEntity target)static voidHoglin. knockback(LivingEntity attacker, LivingEntity target)protected voidHoglinEntity. knockback(LivingEntity target)protected voidRavagerEntity. knockback(LivingEntity target)protected voidZoglinEntity. knockback(LivingEntity target)private static booleanPiglinBruteBrain. method_30248(AbstractPiglinEntity piglin, LivingEntity livingEntity)protected static voidPiglinBruteBrain. method_35198(PiglinBruteEntity piglinBruteEntity, LivingEntity livingEntity)protected static voidHoglinBrain. onAttacked(HoglinEntity hoglin, LivingEntity attacker)protected static voidPiglinBrain. onAttacked(PiglinEntity piglin, LivingEntity attacker)protected static voidHoglinBrain. onAttacking(HoglinEntity hoglin, LivingEntity target)voidZombieEntity. onKilledOther(ServerWorld world, LivingEntity other)private static voidPiglinBrain. runAwayFrom(PiglinEntity piglin, LivingEntity target)private static voidPiglinBrain. runAwayFromClosestTarget(PiglinEntity piglin, LivingEntity target)private static voidPiglinBrain. setAdmiringItem(LivingEntity entity)voidAngerable. setAttacker(@Nullable LivingEntity attacker)private static voidHoglinBrain. setAttackTarget(HoglinEntity hoglin, LivingEntity target)private voidZoglinEntity. setAttackTarget(LivingEntity entity)private static voidHoglinBrain. setAttackTargetIfCloser(HoglinEntity hoglin, LivingEntity targetCandidate)voidEvokerFangsEntity. setOwner(@Nullable LivingEntity owner)voidAngerable. setTarget(@Nullable LivingEntity target)voidEndermanEntity. setTarget(@Nullable LivingEntity target)voidMobEntity. setTarget(@Nullable LivingEntity target)voidZombifiedPiglinEntity. setTarget(@Nullable LivingEntity target)voidPiglinEntity. shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)voidPillagerEntity. shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)default booleanAngerable. shouldAngerAt(LivingEntity entity)private static booleanPiglinBrain. shouldAttack(LivingEntity target)private static booleanZoglinEntity. shouldAttack(LivingEntity entity)doubleMobEntity. squaredAttackRange(LivingEntity target)private static voidHoglinBrain. targetEnemy(HoglinEntity hoglin, LivingEntity target)booleanGuardianEntity.GuardianTargetPredicate. test(@Nullable LivingEntity livingEntity)static booleanHoglin. tryAttack(LivingEntity attacker, LivingEntity target)protected static voidPiglinBrain. tryRevenge(AbstractPiglinEntity piglin, LivingEntity target)protected static voidPiglinBruteBrain. tryRevenge(PiglinBruteEntity piglinBrute, LivingEntity target)static booleanPiglinBrain. wearsGoldArmor(LivingEntity entity)类型变量类型为LivingEntity的net.minecraft.entity.mob中的方法参数 修饰符和类型 方法 说明 static booleanWaterCreatureEntity. canSpawnUnderground(EntityType<? extends LivingEntity> entityType, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)private static Optional<? extends LivingEntity>PiglinBruteBrain. method_30249(AbstractPiglinEntity piglin, MemoryModuleType<? extends LivingEntity> memoryModuleType)参数类型为LivingEntity的net.minecraft.entity.mob中的构造器 构造器 说明 EvokerFangsEntity(World world, double x, double y, double z, float yaw, int warmup, LivingEntity owner)类型变量类型为LivingEntity的net.minecraft.entity.mob中的构造器参数 构造器 说明 TeleportTowardsPlayerGoal(EndermanEntity enderman, @Nullable Predicate<LivingEntity> predicate) -
net.minecraft.entity.passive中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.entity.passive中的类 修饰符和类型 类 说明 (专用程序包) static classCatEntity.CatFleeGoal<T extends LivingEntity>(专用程序包) static classOcelotEntity.FleeGoal<T extends LivingEntity>(专用程序包) static classPandaEntity.PandaFleeGoal<T extends LivingEntity>(专用程序包) static classRabbitEntity.FleeGoal<T extends LivingEntity>(专用程序包) classWolfEntity.AvoidLlamaGoal<T extends LivingEntity>net.minecraft.entity.passive中LivingEntity的子类 修饰符和类型 类 说明 classAbstractDonkeyEntityclassAnimalEntityclassAxolotlEntityclassBatEntityclassBeeEntityclassCatEntityMeow.classChickenEntityclassCodEntityclassCowEntityclassDolphinEntityclassDonkeyEntityclassFishEntityclassFoxEntityclassGlowSquidEntityclassGoatEntityclassGolemEntityclassHorseBaseEntityclassHorseEntityclassIronGolemEntityclassLlamaEntityclassMerchantEntityclassMooshroomEntityclassMuleEntityclassOcelotEntityclassPandaEntityclassParrotEntityclassPassiveEntityclassPigEntityclassPolarBearEntityclassPufferfishEntityclassRabbitEntityclassSalmonEntityclassSchoolingFishEntityclassSheepEntityclassSnowGolemEntityclassSquidEntityclassStriderEntityclassTameableEntityclassTameableShoulderEntityclassTraderLlamaEntityclassTropicalFishEntityclassTurtleEntityclassVillagerEntityclassWanderingTraderEntityclassWolfEntity声明为LivingEntity的net.minecraft.entity.passive中的字段 修饰符和类型 字段 说明 private LivingEntityFoxEntity.DefendFriendGoal. friendprivate @Nullable LivingEntityFoxEntity.DefendFriendGoal. offenderprivate LivingEntityTraderLlamaEntity.DefendTraderGoal. offender类型参数类型为LivingEntity的net.minecraft.entity.passive中的字段 修饰符和类型 字段 说明 static Predicate<LivingEntity>AxolotlEntity. AXOLOTL_NOT_PLAYING_DEADstatic Predicate<LivingEntity>TurtleEntity. BABY_TURTLE_ON_LAND_FILTERprivate static Predicate<LivingEntity>PufferfishEntity. BLOW_UP_FILTERstatic Predicate<LivingEntity>WolfEntity. FOLLOW_TAMED_PREDICATEprivate static Predicate<LivingEntity>HorseBaseEntity. IS_BRED_HORSE返回LivingEntity的net.minecraft.entity.passive中的方法 修饰符和类型 方法 说明 @Nullable LivingEntityTameableEntity. getOwner()返回变量类型为LivingEntity的类型的net.minecraft.entity.passive中的方法 修饰符和类型 方法 说明 private static Optional<? extends LivingEntity>AxolotlBrain. getAttackTarget(AxolotlEntity axolotl)参数类型为LivingEntity的net.minecraft.entity.passive中的方法 修饰符和类型 方法 说明 protected voidFoxEntity.AttackGoal. attack(LivingEntity target, double squaredDistance)voidLlamaEntity. attack(LivingEntity target, float pullProgress)protected voidPolarBearEntity.AttackGoal. attack(LivingEntity target, double squaredDistance)voidSnowGolemEntity. attack(LivingEntity target, float pullProgress)booleanTameableEntity. canAttackWithOwner(LivingEntity target, LivingEntity owner)booleanWolfEntity. canAttackWithOwner(LivingEntity target, LivingEntity owner)static booleanFoxEntity. canJumpChase(FoxEntity fox, LivingEntity chasedEntity)booleanTameableEntity. canTarget(LivingEntity target)protected doublePolarBearEntity.AttackGoal. getSquaredMaxAttackDistance(LivingEntity entity)protected doubleRabbitEntity.RabbitAttackGoal. getSquaredMaxAttackDistance(LivingEntity entity)booleanTameableEntity. isOwner(LivingEntity entity)private @Nullable Vec3dHorseBaseEntity. method_27930(Vec3d vec3d, LivingEntity livingEntity)private static floatAxolotlBrain. method_33242(LivingEntity entity)private static floatAxolotlBrain. method_33245(LivingEntity entity)private static floatAxolotlBrain. method_33248(LivingEntity entity)voidVillagerEntity. setAttacker(@Nullable LivingEntity attacker)protected voidBeeEntity.BeeRevengeGoal. setMobEntityTarget(MobEntity mob, LivingEntity target)protected voidPandaEntity.PandaRevengeGoal. setMobEntityTarget(MobEntity mob, LivingEntity target)protected voidPolarBearEntity.PolarBearRevengeGoal. setMobEntityTarget(MobEntity mob, LivingEntity target)voidFoxEntity. setTarget(@Nullable LivingEntity target)voidPandaEntity.LookAtEntityGoal. setTarget(LivingEntity target)private voidLlamaEntity. spitAt(LivingEntity target)doubleAxolotlEntity. squaredAttackRange(LivingEntity target)booleanFoxEntity.WorriableEntityFilter. test(LivingEntity livingEntity)Vec3dHorseBaseEntity. updatePassengerForDismount(LivingEntity passenger)Vec3dPigEntity. updatePassengerForDismount(LivingEntity passenger)Vec3dStriderEntity. updatePassengerForDismount(LivingEntity passenger)类型变量类型为LivingEntity的net.minecraft.entity.passive中的构造器参数 构造器 说明 DefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, Predicate<LivingEntity> targetPredicate)DefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, Predicate<LivingEntity> targetPredicate)LookAtEntityGoal(MobEntity fox, Class<? extends LivingEntity> targetType, float range)LookAtEntityGoal(PandaEntity panda, Class<? extends LivingEntity> targetType, float range) -
net.minecraft.entity.player中LivingEntity的使用
net.minecraft.entity.player中LivingEntity的子类 修饰符和类型 类 说明 classPlayerEntity参数类型为LivingEntity的net.minecraft.entity.player中的方法 修饰符和类型 方法 说明 protected voidPlayerEntity. attackLivingEntity(LivingEntity target)voidPlayerEntity. onKilledOther(ServerWorld world, LivingEntity other)protected voidPlayerEntity. takeShieldHit(LivingEntity attacker) -
net.minecraft.entity.projectile中LivingEntity的使用
声明为LivingEntity的net.minecraft.entity.projectile中的字段 修饰符和类型 字段 说明 private @Nullable LivingEntityFireworkRocketEntity. shooter参数类型为LivingEntity的net.minecraft.entity.projectile中的方法 修饰符和类型 方法 说明 voidPersistentProjectileEntity. applyEnchantmentEffects(LivingEntity entity, float damageModifier)static PersistentProjectileEntityProjectileUtil. createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier)static HandProjectileUtil. getHandPossiblyHolding(LivingEntity entity, Item item)protected voidArrowEntity. onHit(LivingEntity target)protected voidPersistentProjectileEntity. onHit(LivingEntity target)protected voidSpectralArrowEntity. onHit(LivingEntity target)参数类型为LivingEntity的net.minecraft.entity.projectile中的构造器 构造器 说明 AbstractFireballEntity(EntityType<? extends AbstractFireballEntity> type, LivingEntity owner, double directionX, double directionY, double directionZ, World world)ArrowEntity(World world, LivingEntity owner)DragonFireballEntity(World world, LivingEntity owner, double directionX, double directionY, double directionZ)ExplosiveProjectileEntity(EntityType<? extends ExplosiveProjectileEntity> type, LivingEntity owner, double directionX, double directionY, double directionZ, World world)FireballEntity(World world, LivingEntity owner, double velocityX, double velocityY, double velocityZ)FireworkRocketEntity(World world, ItemStack stack, LivingEntity shooter)PersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, LivingEntity owner, World world)ShulkerBulletEntity(World world, LivingEntity owner, Entity target, Direction.Axis axis)SmallFireballEntity(World world, LivingEntity owner, double velocityX, double velocityY, double velocityZ)SpectralArrowEntity(World world, LivingEntity owner)TridentEntity(World world, LivingEntity owner, ItemStack stack)WitherSkullEntity(World world, LivingEntity owner, double directionX, double directionY, double directionZ) -
net.minecraft.entity.projectile.thrown中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.entity.projectile.thrown中的字段 修饰符和类型 字段 说明 static Predicate<LivingEntity>PotionEntity. WATER_HURTS参数类型为LivingEntity的net.minecraft.entity.projectile.thrown中的构造器 构造器 说明 EggEntity(World world, LivingEntity owner)EnderPearlEntity(World world, LivingEntity owner)ExperienceBottleEntity(World world, LivingEntity owner)PotionEntity(World world, LivingEntity owner)SnowballEntity(World world, LivingEntity owner)ThrownEntity(EntityType<? extends ThrownEntity> type, LivingEntity owner, World world)ThrownItemEntity(EntityType<? extends ThrownItemEntity> type, LivingEntity owner, World world) -
net.minecraft.entity.raid中LivingEntity的使用
net.minecraft.entity.raid中LivingEntity的子类 修饰符和类型 类 说明 classRaiderEntity -
net.minecraft.entity.vehicle中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.entity.vehicle中的方法 修饰符和类型 方法 说明 Vec3dAbstractMinecartEntity. updatePassengerForDismount(LivingEntity passenger)Vec3dBoatEntity. updatePassengerForDismount(LivingEntity passenger) -
net.minecraft.inventory中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.inventory中的方法 修饰符和类型 方法 说明 static CommandItemSlotCommandItemSlot. of(LivingEntity entity, EquipmentSlot equipmentSlot)Creates a slot backed by an equipment slot of an living entity.static CommandItemSlotCommandItemSlot. of(LivingEntity entity, EquipmentSlot equipmentSlot, Predicate<ItemStack> stackFilter)Creates a slot backed by an equipment slot of an living entity and guarded by a condition for setting stacks into the inventory. -
net.minecraft.item中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.item中的方法 修饰符和类型 方法 说明 <T extends LivingEntity>
voidItemStack. damage(int amount, T entity, Consumer<T> breakCallback)参数类型为LivingEntity的net.minecraft.item中的方法 修饰符和类型 方法 说明 PersistentProjectileEntityArrowItem. createArrow(World world, ItemStack stack, LivingEntity shooter)private static PersistentProjectileEntityCrossbowItem. createArrow(World world, LivingEntity entity, ItemStack crossbow, ItemStack arrow)PersistentProjectileEntitySpectralArrowItem. createArrow(World world, ItemStack stack, LivingEntity shooter)ItemStackChorusFruitItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackHoneyBottleItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackItemStack. finishUsing(World world, LivingEntity user)ItemStackMilkBucketItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackMushroomStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackPotionItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackSpyglassItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackSuspiciousStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)static ItemStackRangedWeaponItem. getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)private static booleanCrossbowItem. loadProjectile(LivingEntity shooter, ItemStack crossbow, ItemStack projectile, boolean simulated, boolean creative)private static booleanCrossbowItem. loadProjectiles(LivingEntity shooter, ItemStack projectile)voidBowItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)voidCrossbowItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)voidItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)voidItemStack. onStoppedUsing(World world, LivingEntity user, int remainingUseTicks)voidSpyglassItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)voidTridentItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)private voidSpyglassItem. playStopUsingSound(LivingEntity user)booleanItem. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)voidItemStack. postHit(LivingEntity target, PlayerEntity attacker)booleanMiningToolItem. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)booleanSwordItem. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)booleanTridentItem. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)booleanItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)booleanMiningToolItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)booleanShearsItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)booleanSwordItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)booleanTridentItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)private static voidCrossbowItem. postShoot(World world, LivingEntity entity, ItemStack stack)private static voidCrossbowItem. shoot(World world, LivingEntity shooter, Hand hand, ItemStack crossbow, ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated)static voidCrossbowItem. shootAll(World world, LivingEntity entity, Hand hand, ItemStack stack, float speed, float divergence)voidCrossbowItem. usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks)voidItem. usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks)voidItemStack. usageTick(World world, LivingEntity user, int remainingUseTicks)ActionResultDyeItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultItemStack. useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand)ActionResultNameTagItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultSaddleItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) -
net.minecraft.network.packet.s2c.play中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.network.packet.s2c.play中的构造器 构造器 说明 MobSpawnS2CPacket(LivingEntity entity) -
net.minecraft.predicate.entity中LivingEntity的使用
参数类型为LivingEntity的net.minecraft.predicate.entity中的方法 修饰符和类型 方法 说明 booleanEntityEffectPredicate. test(LivingEntity livingEntity) -
net.minecraft.server.command中LivingEntity的使用
返回LivingEntity的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 private static LivingEntityAttributeCommand. getLivingEntity(Entity entity)private static LivingEntityAttributeCommand. getLivingEntityWithAttribute(Entity entity, EntityAttribute attribute) -
net.minecraft.server.network中LivingEntity的使用
net.minecraft.server.network中LivingEntity的子类 修饰符和类型 类 说明 classServerPlayerEntity参数类型为LivingEntity的net.minecraft.server.network中的方法 修饰符和类型 方法 说明 private static List<String>DebugInfoSender. method_36157(LivingEntity livingEntity, long long2)private static voidDebugInfoSender. method_36158(LivingEntity livingEntity, PacketByteBuf packetByteBuf)static voidDebugInfoSender. sendBrainDebugData(LivingEntity living) -
net.minecraft.test中LivingEntity的使用
返回LivingEntity的net.minecraft.test中的方法 修饰符和类型 方法 说明 LivingEntityTestContext. method_35966(LivingEntity entity)参数类型为LivingEntity的net.minecraft.test中的方法 修饰符和类型 方法 说明 LivingEntityTestContext. method_35966(LivingEntity entity) -
net.minecraft.world中LivingEntity的使用
类型参数类型为LivingEntity的net.minecraft.world中的方法 修饰符和类型 方法 说明 default <T extends LivingEntity>
TEntityView. getClosestEntity(Class<? extends T> entityClass, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z, Box box)default <T extends LivingEntity>
TEntityView. getClosestEntity(List<? extends T> entityList, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z)default <T extends LivingEntity>
List<T>EntityView. getTargets(Class<T> entityClass, TargetPredicate targetPredicate, LivingEntity targetingEntity, Box box)参数类型为LivingEntity的net.minecraft.world中的方法 修饰符和类型 方法 说明 default <T extends LivingEntity>
TEntityView. getClosestEntity(Class<? extends T> entityClass, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z, Box box)default <T extends LivingEntity>
TEntityView. getClosestEntity(List<? extends T> entityList, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z)default @Nullable PlayerEntityEntityView. getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity)default @Nullable PlayerEntityEntityView. getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z)default List<PlayerEntity>EntityView. getPlayers(TargetPredicate targetPredicate, LivingEntity entity, Box box)default <T extends LivingEntity>
List<T>EntityView. getTargets(Class<T> entityClass, TargetPredicate targetPredicate, LivingEntity targetingEntity, Box box) -
net.minecraft.world.explosion中LivingEntity的使用
返回LivingEntity的net.minecraft.world.explosion中的方法 修饰符和类型 方法 说明 @Nullable LivingEntityExplosion. getCausingEntity()
-