Uses of Class
net.minecraft.entity.LivingEntity
Packages that use LivingEntity
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
The basic AI system for Minecraft living entities.
-
Uses of LivingEntity in net.minecraft.block
Methods in net.minecraft.block with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanBarrierBlock.canFillWithFluid(@Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanFluidFillable.canFillWithFluid(@Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanKelpBlock.canFillWithFluid(@Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanKelpPlantBlock.canFillWithFluid(@Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanSeagrassBlock.canFillWithFluid(@Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanSlabBlock.canFillWithFluid(@Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) booleanTallSeagrassBlock.canFillWithFluid(@Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) default booleanWaterloggable.canFillWithFluid(@Nullable LivingEntity filler, BlockView world, BlockPos pos, BlockState state, Fluid fluid) voidAbstractRedstoneGateBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidBedBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidCommandBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidCrafterBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidDoorBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidJukeboxBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidPaleMossCarpetBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidPistonBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidPitcherCropBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidSmallDripleafBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidStructureBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidTallPlantBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidTripwireHookBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidWallWitherSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidWitherSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.private static booleanTntBlock.primeTnt(World world, BlockPos pos, @Nullable LivingEntity igniter) private static voidLecternBlock.putBook(@Nullable LivingEntity user, World world, BlockPos pos, BlockState state, ItemStack stack) static booleanLecternBlock.putBookIfAbsent(@Nullable LivingEntity user, World world, BlockPos pos, BlockState state, ItemStack stack) BarrierBlock.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) BubbleColumnBlock.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) FluidBlock.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) FluidDrainable.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) PowderSnowBlock.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) default ItemStackWaterloggable.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) -
Uses of LivingEntity in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as LivingEntityFields in net.minecraft.block.entity with type parameters of type LivingEntityMethods in net.minecraft.block.entity that return LivingEntityModifier and TypeMethodDescriptionprivate static @Nullable LivingEntityConduitBlockEntity.findTargetEntity(World world, BlockPos pos, UUID uuid) Methods in net.minecraft.block.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanCampfireBlockEntity.addItem(ServerWorld world, @Nullable LivingEntity entity, ItemStack stack) private static voidBellBlockEntity.applyGlowToEntity(LivingEntity entity) Gives theStatusEffects.GLOWINGstatus effect to the given entity for 3 seconds (60 ticks).booleanBrushableBlockEntity.brush(long worldTime, ServerWorld world, LivingEntity brusher, Direction hitDirection, ItemStack brush) private voidBrushableBlockEntity.finishBrushing(ServerWorld world, LivingEntity brusher, ItemStack brush) private voidBrushableBlockEntity.generateItem(ServerWorld world, LivingEntity brusher, ItemStack brush) 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) private voidBrushableBlockEntity.spawnItem(ServerWorld world, LivingEntity brusher, ItemStack brush) private voidSculkCatalystBlockEntity.Listener.triggerCriteria(World world, LivingEntity deadEntity) Method parameters in net.minecraft.block.entity with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate 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) -
Uses of LivingEntity in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate voidDrawContext.drawItem(@Nullable LivingEntity entity, @Nullable World world, ItemStack stack, int x, int y, int seed) private voidDrawContext.drawItem(@Nullable LivingEntity entity, @Nullable World world, ItemStack stack, int x, int y, int seed, int z) voidDrawContext.drawItem(LivingEntity entity, ItemStack stack, int x, int y, int seed) -
Uses of LivingEntity in net.minecraft.client.gui.hud
Methods in net.minecraft.client.gui.hud that return LivingEntityMethods in net.minecraft.client.gui.hud with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate intInGameHud.getHeartCount(@Nullable LivingEntity entity) -
Uses of LivingEntity in net.minecraft.client.gui.screen.ingame
Methods in net.minecraft.client.gui.screen.ingame with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidInventoryScreen.drawEntity(DrawContext context, float x, float y, float size, Vector3f vector3f, Quaternionf quaternionf, @Nullable Quaternionf quaternionf2, LivingEntity entity) static voidInventoryScreen.drawEntity(DrawContext context, int x1, int y1, int x2, int y2, int size, float float2, float mouseX, float mouseY, LivingEntity entity) -
Uses of LivingEntity in net.minecraft.client.item
Methods in net.minecraft.client.item with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidItemModelManager.clearAndUpdate(ItemRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, @Nullable World world, @Nullable LivingEntity entity, int seed) voidItemModelManager.update(ItemRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, @Nullable World world, @Nullable LivingEntity entity, int seed) voidItemModelManager.updateForLivingEntity(ItemRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, LivingEntity entity) -
Uses of LivingEntity in net.minecraft.client.network
Subclasses of LivingEntity in net.minecraft.client.networkModifier and TypeClassDescriptionclassclassRepresents the client's own player entity.classRepresents a player entity that is present on the client but is not the client's own player. -
Uses of LivingEntity in net.minecraft.client.render
Methods in net.minecraft.client.render with parameters of type LivingEntityModifier and TypeMethodDescriptionfloatBackgroundRenderer.DarknessFogModifier.applyColorModifier(LivingEntity entity, StatusEffectInstance effect, float defaultModifier, float tickProgress) default floatBackgroundRenderer.StatusEffectFogModifier.applyColorModifier(LivingEntity entity, StatusEffectInstance effect, float defaultModifier, float tickProgress) voidBackgroundRenderer.BlindnessFogModifier.applyStartEndModifier(BackgroundRenderer.FogData fogData, LivingEntity entity, StatusEffectInstance effect, float viewDistance, float tickProgress) voidBackgroundRenderer.DarknessFogModifier.applyStartEndModifier(BackgroundRenderer.FogData fogData, LivingEntity entity, StatusEffectInstance effect, float viewDistance, float tickProgress) voidBackgroundRenderer.StatusEffectFogModifier.applyStartEndModifier(BackgroundRenderer.FogData fogData, LivingEntity entity, StatusEffectInstance effect, float viewDistance, float tickProgress) private floatLightmapTextureManager.getDarkness(LivingEntity entity, float factor, float tickProgress) static floatGameRenderer.getNightVisionStrength(LivingEntity entity, float tickProgress) default booleanBackgroundRenderer.StatusEffectFogModifier.shouldApply(LivingEntity entity, float tickProgress) -
Uses of LivingEntity in net.minecraft.client.render.entity
Classes in net.minecraft.client.render.entity with type parameters of type LivingEntityModifier and TypeClassDescriptionclassLivingEntityRenderer<T extends LivingEntity,S extends LivingEntityRenderState, M extends EntityModel<? super S>> Methods in net.minecraft.client.render.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate static floatLivingEntityRenderer.clampBodyYaw(LivingEntity entity, float degrees, float tickProgress) private Vec3dGuardianEntityRenderer.fromLerpedPosition(LivingEntity entity, double yOffset, float delta) private static ItemStackBipedEntityRenderer.getEquippedStack(LivingEntity entity, EquipmentSlot slot) private static ArmBipedEntityRenderer.getPreferredArm(LivingEntity entity) static booleanLivingEntityRenderer.shouldFlipUpsideDown(LivingEntity entity) static voidBipedEntityRenderer.updateBipedRenderState(LivingEntity entity, BipedEntityRenderState state, float tickProgress, ItemModelManager itemModelResolver) -
Uses of LivingEntity in net.minecraft.client.render.entity.state
Methods in net.minecraft.client.render.entity.state with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidItemHolderEntityRenderState.update(LivingEntity entity, ItemHolderEntityRenderState state, ItemModelManager itemModelManager) static voidArmedEntityRenderState.updateRenderState(LivingEntity entity, ArmedEntityRenderState state, ItemModelManager itemModelManager) -
Uses of LivingEntity in net.minecraft.client.render.item
Methods in net.minecraft.client.render.item with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidHeldItemRenderer.renderItem(LivingEntity entity, ItemStack stack, ItemDisplayContext renderMode, MatrixStack matrices, VertexConsumerProvider vertexConsumer, int light) voidItemRenderer.renderItem(@Nullable LivingEntity entity, ItemStack stack, ItemDisplayContext displayContext, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable World world, int light, int overlay, int seed) -
Uses of LivingEntity in net.minecraft.client.render.item.model
Methods in net.minecraft.client.render.item.model with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidBasicItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidBundleSelectedItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidCompositeItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidConditionItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidEmptyItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidMissingItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidRangeDispatchItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidSelectItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidSpecialItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) -
Uses of LivingEntity in net.minecraft.client.render.item.property
Methods in net.minecraft.client.render.item.property with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanPropertyTester.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) -
Uses of LivingEntity in net.minecraft.client.render.item.property.bool
Methods in net.minecraft.client.render.item.property.bool with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanBrokenProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanBundleHasSelectedItemProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanCarriedProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanComponentBooleanProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanCustomModelDataFlagProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanDamagedProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanExtendedViewProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanFishingRodCastProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanHasComponentProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanKeybindDownProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanSelectedProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanUsingItemProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanViewEntityProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) -
Uses of LivingEntity in net.minecraft.client.render.item.property.numeric
Methods in net.minecraft.client.render.item.property.numeric with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic intUseDurationProperty.getTicksUsedSoFar(ItemStack stack, LivingEntity user) floatBundleFullnessProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatCompassProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatCooldownProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatCountProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatCrossbowPullProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatCustomModelDataFloatProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatDamageProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatNeedleAngleState.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) floatNumericProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatUseCycleProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatUseDurationProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) -
Uses of LivingEntity in net.minecraft.client.render.item.property.select
Methods in net.minecraft.client.render.item.property.select with parameters of type LivingEntityModifier and TypeMethodDescriptionChargeTypeProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) ComponentSelectProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed, ItemDisplayContext displayContext) ContextDimensionProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) ContextEntityTypeProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) CustomModelDataStringProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) DisplayContextProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) ItemBlockStateProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) LocalTimeProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) MainHandProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) SelectProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed, ItemDisplayContext displayContext) TrimMaterialProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) -
Uses of LivingEntity in net.minecraft.client.render.item.tint
Methods in net.minecraft.client.render.item.tint with parameters of type LivingEntityModifier and TypeMethodDescriptionintConstantTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intCustomModelDataTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intDyeTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intFireworkTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intGrassTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intMapColorTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intPotionTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intTeamTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) -
Uses of LivingEntity in net.minecraft.component.type
Methods in net.minecraft.component.type with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidPotionContentsComponent.apply(LivingEntity user, float durationMultiplier) voidDeathProtectionComponent.applyDeathEffects(ItemStack stack, LivingEntity entity) voidBlocksAttacksComponent.applyShieldCooldown(ServerWorld world, LivingEntity affectedEntity, float cooldownSeconds, ItemStack stack) booleanConsumableComponent.canConsume(LivingEntity user, ItemStack stack) ConsumableComponent.consume(LivingEntity user, ItemStack stack, Hand hand) EquippableComponent.equipOnInteract(PlayerEntity player, LivingEntity entity, ItemStack stack) ConsumableComponent.finishConsumption(World world, LivingEntity user, ItemStack stack) voidConsumable.onConsume(World world, LivingEntity user, ItemStack stack, ConsumableComponent consumable) voidFoodComponent.onConsume(World world, LivingEntity user, ItemStack stack, ConsumableComponent consumable) voidOminousBottleAmplifierComponent.onConsume(World world, LivingEntity user, ItemStack stack, ConsumableComponent consumable) voidPotionContentsComponent.onConsume(World world, LivingEntity user, ItemStack stack, ConsumableComponent consumable) voidSuspiciousStewEffectsComponent.onConsume(World world, LivingEntity user, ItemStack stack, ConsumableComponent consumable) voidBlocksAttacksComponent.onShieldHit(World world, ItemStack stack, LivingEntity entity, Hand hand, float itemDamage) voidBlocksAttacksComponent.playBlockSound(ServerWorld world, LivingEntity from) voidUseCooldownComponent.set(ItemStack stack, LivingEntity user) voidConsumableComponent.spawnParticlesAndPlaySound(Random random, LivingEntity user, ItemStack stack, int particleCount) -
Uses of LivingEntity in net.minecraft.enchantment
Fields in net.minecraft.enchantment declared as LivingEntityModifier and TypeFieldDescriptionprivate final @Nullable LivingEntityEnchantmentEffectContext.ownerThe field for theownerrecord component.Methods in net.minecraft.enchantment that return LivingEntityModifier and TypeMethodDescriptionEnchantmentEffectContext.owner()Returns the value of theownerrecord component.Methods in net.minecraft.enchantment with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidEnchantment.applyLocationBasedEffects(ServerWorld world, int level, EnchantmentEffectContext context, LivingEntity user) static voidEnchantmentHelper.applyLocationBasedEffects(ServerWorld world, LivingEntity user) static voidEnchantmentHelper.applyLocationBasedEffects(ServerWorld world, ItemStack stack, LivingEntity user, EquipmentSlot slot) static Optional<EnchantmentEffectContext> EnchantmentHelper.chooseEquipmentWith(ComponentType<?> componentType, LivingEntity entity, Predicate<ItemStack> stackPredicate) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.private static voidEnchantmentHelper.forEachEnchantment(LivingEntity entity, EnchantmentHelper.ContextAwareConsumer contextAwareConsumer) private static voidEnchantmentHelper.forEachEnchantment(ItemStack stack, EquipmentSlot slot, LivingEntity entity, EnchantmentHelper.ContextAwareConsumer contextAwareConsumer) static floatEnchantmentHelper.getCrossbowChargeTime(ItemStack stack, LivingEntity user, float baseCrossbowChargeTime) Enchantment.getEquipment(LivingEntity entity) static floatEnchantmentHelper.getEquipmentDropChance(ServerWorld world, LivingEntity attacker, DamageSource damageSource, float baseEquipmentDropChance) static intEnchantmentHelper.getEquipmentLevel(RegistryEntry<Enchantment> enchantment, LivingEntity entity) Returns the highest level of the passed enchantment in the enchantment's applicable equipment slots' item stacks.static floatEnchantmentHelper.getProtectionAmount(ServerWorld world, LivingEntity user, DamageSource damageSource) static floatEnchantmentHelper.getTridentSpinAttackStrength(ItemStack stack, LivingEntity user) static booleanEnchantmentHelper.isInvulnerableTo(ServerWorld world, LivingEntity user, DamageSource damageSource) static voidEnchantmentHelper.onHitBlock(ServerWorld world, ItemStack stack, @Nullable LivingEntity user, Entity enchantedEntity, @Nullable EquipmentSlot slot, Vec3d pos, BlockState state, Consumer<Item> onBreak) static voidEnchantmentHelper.onTick(ServerWorld world, LivingEntity user) voidEnchantment.removeLocationBasedEffects(int level, EnchantmentEffectContext context, LivingEntity user) static voidEnchantmentHelper.removeLocationBasedEffects(LivingEntity user) static voidEnchantmentHelper.removeLocationBasedEffects(ItemStack stack, LivingEntity user, EquipmentSlot slot) Constructors in net.minecraft.enchantment with parameters of type LivingEntityModifierConstructorDescriptionEnchantmentEffectContext(ItemStack itemStack, @Nullable EquipmentSlot equipmentSlot, @Nullable LivingEntity livingEntity, Consumer<Item> consumer) EnchantmentEffectContext(ItemStack stack, EquipmentSlot slot, LivingEntity owner) -
Uses of LivingEntity in net.minecraft.entity
Fields in net.minecraft.entity declared as LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LivingEntityLivingEntity.attackingprivate @Nullable LivingEntityTntEntity.causingEntityprivate @Nullable LivingEntityAreaEffectCloudEntity.ownerFields in net.minecraft.entity with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LazyEntityReference<LivingEntity> LivingEntity.attackerReferencestatic final Predicate<LivingEntity> LivingEntity.NOT_WEARING_GAZE_DISGUISE_PREDICATEMethods in net.minecraft.entity with type parameters of type LivingEntityModifier and TypeMethodDescriptionstatic <T extends LivingEntity & Bucketable>
Optional<ActionResult> Bucketable.tryBucket(PlayerEntity player, Hand hand, T entity) Methods in net.minecraft.entity that return LivingEntityModifier and TypeMethodDescriptionLivingEntity.getAttacker()LivingEntity.getAttacking()Entity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.Attackable.getLastAttacker()LivingEntity.getLastAttacker()AreaEffectCloudEntity.getOwner()default @Nullable LivingEntityTameable.getOwner()TntEntity.getOwner()LivingEntity.getPrimeAdversary()CrossbowUser.getTarget()Targeter.getTarget()default @Nullable LivingEntityTameable.getTopLevelOwner()Methods in net.minecraft.entity that return types with arguments of type LivingEntityMethods in net.minecraft.entity with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected 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) EntityType.copier(Consumer<T> chained, World world, ItemStack stack, @Nullable LivingEntity spawner) EntityType.copier(World world, ItemStack stack, @Nullable LivingEntity spawner) voidEntityEquipment.dropAll(LivingEntity entity) static floatDamageUtil.getDamageLeft(LivingEntity armorWearer, float damageAmount, DamageSource damageSource, float armor, float armorToughness) private static StackReferenceLivingEntity.getStackReference(LivingEntity entity, EquipmentSlot slot) booleanLivingEntity.isEntityLookingAtMe(LivingEntity entity, double double2, boolean bool, boolean visualShape, double[] checkedYs) protected voidLivingEntity.knockback(LivingEntity target) static voidEntityType.loadFromEntityNbt(World world, @Nullable LivingEntity spawner, @Nullable Entity entity, NbtComponent nbt) EntityType.nbtCopier(Consumer<T> chained, World world, ItemStack stack, @Nullable LivingEntity spawner) protected voidLivingEntity.onKilledBy(@Nullable LivingEntity adversary) Performs secondary effects after this mob has been killed.booleanEntity.onKilledOther(ServerWorld world, LivingEntity other) Called when this entity killsother.voidLivingEntity.setAttacker(@Nullable LivingEntity attacker) voidAreaEffectCloudEntity.setOwner(@Nullable LivingEntity owner) default voidCrossbowUser.shoot(LivingEntity entity, float speed) EntityType.spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable LivingEntity spawner, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) protected voidLivingEntity.takeShieldHit(ServerWorld world, LivingEntity attacker) Entity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.Constructors in net.minecraft.entity with parameters of type LivingEntityModifierConstructorDescriptionTntEntity(World world, double x, double y, double z, @Nullable LivingEntity igniter) Constructor parameters in net.minecraft.entity with type arguments of type LivingEntityModifierConstructorDescriptionprotectedLivingEntity(EntityType<? extends LivingEntity> type, World world) -
Uses of LivingEntity in net.minecraft.entity.ai
Methods in net.minecraft.entity.ai that return types with arguments of type LivingEntityMethods in net.minecraft.entity.ai with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidRangedAttackMob.shootAt(LivingEntity target, float pullProgress) booleanTargetPredicate.EntityPredicate.test(LivingEntity target, ServerWorld world) booleanTargetPredicate.test(ServerWorld world, @Nullable LivingEntity tester, LivingEntity target) -
Uses of LivingEntity in net.minecraft.entity.ai.brain
Classes in net.minecraft.entity.ai.brain with type parameters of type LivingEntityModifier and TypeClassDescriptionclassBrain<E extends LivingEntity>A brain is associated with each living entity.static final classBrain.Profile<E extends LivingEntity>A simple profile of a brain.Fields in net.minecraft.entity.ai.brain with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final MemoryModuleType<LivingEntity> MemoryModuleType.ATTACK_TARGETstatic final MemoryModuleType<LivingEntity> MemoryModuleType.AVOID_TARGETprivate final List<LivingEntity> LivingTargetCache.entitiesstatic final MemoryModuleType<LivingEntity> MemoryModuleType.HURT_BY_ENTITYstatic final MemoryModuleType<LivingEntity> MemoryModuleType.INTERACTION_TARGETstatic final MemoryModuleType<List<LivingEntity>> MemoryModuleType.MOBSstatic final MemoryModuleType<LivingEntity> MemoryModuleType.NEAREST_ATTACKABLEstatic final MemoryModuleType<LivingEntity> MemoryModuleType.NEAREST_HOSTILEstatic final MemoryModuleType<LivingEntity> MemoryModuleType.NEAREST_VISIBLE_ZOMBIFIEDstatic final MemoryModuleType<LivingEntity> MemoryModuleType.ROAR_TARGETprivate final Predicate<LivingEntity> LivingTargetCache.targetPredicatestatic final MemoryModuleType<List<LivingEntity>> MemoryModuleType.VISIBLE_VILLAGER_BABIESMethods in net.minecraft.entity.ai.brain with type parameters of type LivingEntityModifier and TypeMethodDescriptionstatic <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) Methods in net.minecraft.entity.ai.brain that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionLivingTargetCache.findFirst(Predicate<LivingEntity> predicate) LivingTargetCache.iterate(Predicate<LivingEntity> predicate) LivingTargetCache.stream(Predicate<LivingEntity> predicate) Methods in net.minecraft.entity.ai.brain with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanLivingTargetCache.contains(LivingEntity entity) booleanBlockPosLookTarget.isSeenBy(LivingEntity entity) booleanEntityLookTarget.isSeenBy(LivingEntity entity) booleanLookTarget.isSeenBy(LivingEntity entity) Method parameters in net.minecraft.entity.ai.brain with type arguments of type LivingEntityModifier and TypeMethodDescriptionbooleanLivingTargetCache.anyMatch(Predicate<LivingEntity> predicate) LivingTargetCache.findFirst(Predicate<LivingEntity> predicate) LivingTargetCache.iterate(Predicate<LivingEntity> predicate) LivingTargetCache.stream(Predicate<LivingEntity> predicate) Constructors in net.minecraft.entity.ai.brain with parameters of type LivingEntityModifierConstructorDescriptionLivingTargetCache(ServerWorld world, LivingEntity owner, List<LivingEntity> entities) Constructor parameters in net.minecraft.entity.ai.brain with type arguments of type LivingEntityModifierConstructorDescriptionLivingTargetCache(ServerWorld world, LivingEntity owner, List<LivingEntity> entities) -
Uses of LivingEntity in net.minecraft.entity.ai.brain.sensor
Classes in net.minecraft.entity.ai.brain.sensor with type parameters of type LivingEntityModifier and TypeClassDescriptionclassArmadilloScareDetectedSensor<T extends LivingEntity>classNearestLivingEntitiesSensor<T extends LivingEntity>classSensor<E extends LivingEntity>A sensor can update memories over time in a brain.Fields in net.minecraft.entity.ai.brain.sensor with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final SensorType<NearestLivingEntitiesSensor<LivingEntity>> SensorType.NEAREST_LIVING_ENTITIESprivate final BiPredicate<T, LivingEntity> ArmadilloScareDetectedSensor.threateningEntityPredicateMethods in net.minecraft.entity.ai.brain.sensor that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<LivingEntity> WardenAttackablesSensor.findNearestTarget(WardenEntity warden, Predicate<LivingEntity> targetPredicate) private Optional<LivingEntity> NearestVisibleLivingEntitySensor.getNearestVisibleLivingEntity(ServerWorld world, LivingEntity entity) protected MemoryModuleType<LivingEntity> AxolotlAttackablesSensor.getOutputMemoryModule()protected MemoryModuleType<LivingEntity> FrogAttackablesSensor.getOutputMemoryModule()protected abstract MemoryModuleType<LivingEntity> NearestVisibleLivingEntitySensor.getOutputMemoryModule()protected MemoryModuleType<LivingEntity> VillagerHostilesSensor.getOutputMemoryModule()private List<LivingEntity> VillagerBabiesSensor.getVisibleVillagerBabies(LivingEntity entities) static BiPredicate<ServerWorld, LivingEntity> Sensor.hasTargetBeenAttackableRecently(LivingEntity entity, int ticks) Methods in net.minecraft.entity.ai.brain.sensor with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate booleanAxolotlAttackablesSensor.canHunt(LivingEntity axolotl, LivingEntity target) PiglinSpecificSensor.findPiglinRepellent(ServerWorld world, LivingEntity entity) protected doubleNearestPlayersSensor.getFollowRange(LivingEntity entity) private Optional<LivingEntity> NearestVisibleLivingEntitySensor.getNearestVisibleLivingEntity(ServerWorld world, LivingEntity entity) protected Optional<LivingTargetCache> NearestVisibleLivingEntitySensor.getVisibleLivingEntities(LivingEntity entity) private LivingTargetCacheVillagerBabiesSensor.getVisibleMobs(LivingEntity entity) private List<LivingEntity> VillagerBabiesSensor.getVisibleVillagerBabies(LivingEntity entities) static BiPredicate<ServerWorld, LivingEntity> Sensor.hasTargetBeenAttackableRecently(LivingEntity entity, int ticks) private booleanAxolotlAttackablesSensor.isAlwaysHostileTo(LivingEntity axolotl) private booleanVillagerHostilesSensor.isCloseEnoughForDanger(LivingEntity villager, LivingEntity target) private booleanVillagerHostilesSensor.isHostile(LivingEntity entity) private booleanAxolotlAttackablesSensor.isInRange(LivingEntity axolotl, LivingEntity target) private booleanFrogAttackablesSensor.isTargetUnreachable(LivingEntity entity, LivingEntity target) private booleanVillagerBabiesSensor.isVillagerBaby(LivingEntity entity) protected booleanAxolotlAttackablesSensor.matches(ServerWorld world, LivingEntity entity, LivingEntity target) protected booleanFrogAttackablesSensor.matches(ServerWorld world, LivingEntity entity, LivingEntity target) protected abstract booleanNearestVisibleLivingEntitySensor.matches(ServerWorld world, LivingEntity entity, LivingEntity target) protected booleanVillagerHostilesSensor.matches(ServerWorld world, 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 voidIsInWaterSensor.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) static booleanSensor.testAttackableTargetPredicate(ServerWorld world, LivingEntity entity, LivingEntity target) static booleanSensor.testAttackableTargetPredicateIgnoreVisibility(ServerWorld world, LivingEntity entity, LivingEntity target) static booleanSensor.testTargetPredicate(ServerWorld world, LivingEntity entity, LivingEntity target) Method parameters in net.minecraft.entity.ai.brain.sensor with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<LivingEntity> WardenAttackablesSensor.findNearestTarget(WardenEntity warden, Predicate<LivingEntity> targetPredicate) Constructor parameters in net.minecraft.entity.ai.brain.sensor with type arguments of type LivingEntityModifierConstructorDescriptionArmadilloScareDetectedSensor(int senseInterval, BiPredicate<T, LivingEntity> threateningEntityPredicate, Predicate<T> canRollUpPredicate, MemoryModuleType<Boolean> memoryModuleType, int expiry) -
Uses of LivingEntity in net.minecraft.entity.ai.brain.task
Classes in net.minecraft.entity.ai.brain.task with type parameters of type LivingEntityModifier and TypeClassDescriptionclassCompositeTask<E extends LivingEntity>classCrossbowAttackTask<E extends MobEntity & CrossbowUser,T extends LivingEntity> classGiveInventoryToLookTargetTask<E extends LivingEntity & InventoryOwner>classMultiTickTask<E extends LivingEntity>classRandomTask<E extends LivingEntity>classSingleTickTask<E extends LivingEntity>interfaceTask<E extends LivingEntity>interfaceTaskRunnable<E extends LivingEntity>A functional interface that represents a task.classTaskTriggerer<E extends LivingEntity,M> A lambda-based alternative to subclassingTask.static final classTaskTriggerer.K1<E extends LivingEntity>private static final classTaskTriggerer.QueryMemory<E extends LivingEntity,F extends com.mojang.datafixers.kinds.K1, Value> private static final classTaskTriggerer.Supply<E extends LivingEntity,A> static final classTaskTriggerer.TaskContext<E extends LivingEntity>private static final classTaskTriggerer.TaskContext.Mu<E extends LivingEntity>private static interfaceTaskTriggerer.TaskFunction<E extends LivingEntity,R> private static final classTaskTriggerer.Trigger<E extends LivingEntity>Fields in net.minecraft.entity.ai.brain.task declared as LivingEntityFields in net.minecraft.entity.ai.brain.task with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate final Function<LivingEntity, Optional<LookTarget>> GiveInventoryToLookTargetTask.lookTargetFunctionprivate final Function<LivingEntity, Float> TemptTask.speedprivate final Function<LivingEntity, Double> TemptTask.stopDistanceGetterMethods in net.minecraft.entity.ai.brain.task with type parameters of type LivingEntityModifier and TypeMethodDescriptionstatic <E extends LivingEntity,M>
TaskTriggerer<E, M> TaskTriggerer.cast(com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>, M> app) static <E extends LivingEntity,T extends LivingEntity>
Task<E> FindEntityTask.create(EntityType<? extends T> type, int maxDistance, Predicate<E> entityPredicate, Predicate<T> targetPredicate, MemoryModuleType<T> targetModule, float speed, int completionRange) static <E extends LivingEntity,T extends LivingEntity>
Task<E> FindEntityTask.create(EntityType<? extends T> type, int maxDistance, Predicate<E> entityPredicate, Predicate<T> targetPredicate, MemoryModuleType<T> targetModule, float speed, int completionRange) static <T extends LivingEntity>
Task<LivingEntity> FindEntityTask.create(EntityType<? extends T> type, int maxDistance, MemoryModuleType<T> targetModule, float speed, int completionRange) static <E extends LivingEntity>
Task<E> ForgetTask.create(Predicate<E> condition, MemoryModuleType<?> memory) static <E extends LivingEntity,T>
Task<E> MemoryTransferTask.create(Predicate<E> runPredicate, MemoryModuleType<? extends T> sourceType, MemoryModuleType<T> targetType, UniformIntProvider expiry) static <E extends LivingEntity>
Task<E> RidingTask.create(int range, BiPredicate<E, Entity> alternativeRideCondition) static <E extends LivingEntity>
Task<E> WalkTowardsNearestVisibleWantedItemTask.create(Predicate<E> startCondition, float speed, boolean requiresWalkTarget, int radius) (package private) static <E extends LivingEntity,M>
TaskTriggerer.TaskFunction<E, M> TaskTriggerer.getFunction(com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>, M> app) static <E extends LivingEntity>
TaskTriggerer.TaskContext<E> TaskTriggerer.newContext()(package private) static <E extends LivingEntity,M>
TaskTriggerer<E, M> TaskTriggerer.of(TaskTriggerer.TaskFunction<E, M> function) static <E extends LivingEntity>
SingleTickTask<E> Tasks.pickRandomly(List<com.mojang.datafixers.util.Pair<? extends TaskRunnable<? super E>, Integer>> weightedTasks) Returns a task that picks and runs a task fromweightedTasksrandomly.static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.predicate(BiPredicate<ServerWorld, E> predicate) static <E extends LivingEntity>
SingleTickTask<E> abstract <E extends LivingEntity>
voidCompositeTask.RunMode.run(Stream<Task<? super E>> tasks, ServerWorld world, E entity, long time) static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.runIf(Predicate<E> predicate, SingleTickTask<? super E> task) static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.runIf(TaskRunnable<? super E> predicate, TaskRunnable<? super E> task) static <E extends LivingEntity>
SingleTickTask<E> TaskTriggerer.task(Function<TaskTriggerer.TaskContext<E>, ? extends com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>, TaskRunnable<E>>> creator) static <E extends LivingEntity>
SingleTickTask<E> Tasks.weighted(List<com.mojang.datafixers.util.Pair<? extends TaskRunnable<? super E>, Integer>> weightedTasks, CompositeTask.Order order, CompositeTask.RunMode runMode) Returns a task that runs task(s) fromweightedTasks.Methods in net.minecraft.entity.ai.brain.task that return LivingEntityModifier and TypeMethodDescriptionprivate LivingEntityHoldTradeOffersTask.findPotentialCustomer(VillagerEntity villager) private static LivingEntityCrossbowAttackTask.getAttackTarget(LivingEntity entity) static LivingEntityTargetUtil.getCloserEntity(LivingEntity source, Optional<LivingEntity> first, LivingEntity second) static LivingEntityTargetUtil.getCloserEntity(LivingEntity source, LivingEntity first, LivingEntity second) PrepareRamTask.Ram.getEntity()private static LivingEntityPlayWithVillagerBabiesTask.getInteractionTarget(LivingEntity baby) Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionstatic Task<LivingEntity> AdmireItemTask.create(int duration) static Task<LivingEntity> AdmireItemTimeLimitTask.create(int cooldown, int timeLimit) static Task<LivingEntity> DefeatTargetTask.create(int celebrationDuration, BiPredicate<LivingEntity, LivingEntity> predicate) static Task<LivingEntity> EndRaidTask.create()static <T extends LivingEntity>
Task<LivingEntity> FindEntityTask.create(EntityType<? extends T> type, int maxDistance, MemoryModuleType<T> targetModule, float speed, int completionRange) static Task<LivingEntity> FindInteractionTargetTask.create(EntityType<?> type, int maxDistance) static Task<LivingEntity> ForgetAngryAtTargetTask.create()static Task<LivingEntity> ForgetBellRingTask.create(int maxHiddenSeconds, int distance) static Task<LivingEntity> ForgetCompletedPointOfInterestTask.create(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> poiPosModule) static SingleTickTask<LivingEntity> GoToLookTargetTask.create(float speed, int completionRange) static SingleTickTask<LivingEntity> GoToLookTargetTask.create(Predicate<LivingEntity> predicate, Function<LivingEntity, Float> speed, int completionRange) static SingleTickTask<LivingEntity> HideInHomeTask.create(int maxDistance, float walkSpeed, int preferredDistance) static Task<LivingEntity> HideWhenBellRingsTask.create()static Task<LivingEntity> HuntFinishTask.create()static Task<LivingEntity> static Task<LivingEntity> LookAtDisturbanceTask.create()static SingleTickTask<LivingEntity> LookAtMobTask.create(float maxDistance) static SingleTickTask<LivingEntity> LookAtMobTask.create(Predicate<LivingEntity> predicate, float maxDistance) static SingleTickTask<LivingEntity> LookAtMobTask.create(EntityType<?> type, float maxDistance) static Task<LivingEntity> LookAtMobTask.create(SpawnGroup spawnGroup, float maxDistance) static SingleTickTask<LivingEntity> MeetVillagerTask.create()static Task<LivingEntity> OpenDoorsTask.create()static Task<LivingEntity> PacifyTask.create(MemoryModuleType<?> requiredMemory, int duration) static Task<LivingEntity> PlayDeadTimerTask.create()static Task<LivingEntity> RingBellTask.create()static Task<LivingEntity> ScheduleActivityTask.create()static SingleTickTask<LivingEntity> SeekSkyTask.create(float speed) static Task<LivingEntity> StartRaidTask.create()static Task<LivingEntity> StartRidingTask.create(float speed) static Task<LivingEntity> StartSniffingTask.create()static Task<LivingEntity> StopPanickingTask.create()static Task<LivingEntity> WakeUpTask.create()static Task<LivingEntity> WalkTowardsLookTargetTask.create(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, Predicate<LivingEntity> predicate, int completionRange, int searchRange, float speed) static Task<LivingEntity> WalkTowardsNearestVisibleWantedItemTask.create(float speed, boolean requiresWalkTarget, int radius) static Task<LivingEntity> WantNewItemTask.create(int range) private static com.mojang.datafixers.util.Pair<Integer, Task<LivingEntity>> VillagerTaskListProvider.createBusyFollowTask()private static com.mojang.datafixers.util.Pair<Integer, Task<LivingEntity>> VillagerTaskListProvider.createFreeFollowTask()static Task<LivingEntity> LookAtMobWithIntervalTask.follow(float maxDistance, UniformIntProvider interval) Deprecated.private static Task<LivingEntity> LookAtMobWithIntervalTask.follow(float maxDistance, UniformIntProvider interval, Predicate<LivingEntity> predicate) Deprecated.static Task<LivingEntity> LookAtMobWithIntervalTask.follow(EntityType<?> type, float maxDistance, UniformIntProvider interval) Deprecated.Optional<? extends LivingEntity> UpdateAttackTargetTask.TargetGetter.get(ServerWorld world, E entity) private static Map<LivingEntity, Integer> PlayWithVillagerBabiesTask.getBabyInteractionTargetCounts(List<LivingEntity> babies) static Optional<LivingEntity> TargetUtil.getEntity(LivingEntity entity, MemoryModuleType<UUID> uuidMemoryModule) private static Optional<LivingEntity> PlayWithVillagerBabiesTask.getLeastPopularBabyInteractionTarget(List<LivingEntity> babies) Methods in net.minecraft.entity.ai.brain.task with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidForgetAttackTargetTask.ForgetCallback.accept(ServerWorld world, E entity, LivingEntity target) private static booleanOpenDoorsTask.cannotReachDoor(ServerWorld world, LivingEntity entity, GlobalPos doorPos) private static booleanForgetAttackTargetTask.cannotReachTarget(LivingEntity target, Optional<Long> lastReachTime) private static booleanRidingTask.canRideTarget(LivingEntity entity, Entity vehicle, int range) static booleanTargetUtil.canSee(Brain<?> brain, LivingEntity target) static voidSonicBoomTask.cooldown(LivingEntity warden, int cooldown) SeekSkyTask.findNearbySky(ServerWorld world, LivingEntity entity) private voidPrepareRamTask.findRam(PathAwareEntity entity, LivingEntity target) PrepareRamTask.findRamStart(PathAwareEntity entity, LivingEntity target) protected voidSleepTask.finishRunning(ServerWorld world, LivingEntity entity, long time) protected voidTickCooldownTask.finishRunning(ServerWorld world, LivingEntity entity, long time) private static LivingEntityCrossbowAttackTask.getAttackTarget(LivingEntity entity) static LivingEntityTargetUtil.getCloserEntity(LivingEntity source, Optional<LivingEntity> first, LivingEntity second) static LivingEntityTargetUtil.getCloserEntity(LivingEntity source, LivingEntity first, LivingEntity second) static Optional<LivingEntity> TargetUtil.getEntity(LivingEntity entity, MemoryModuleType<UUID> uuidMemoryModule) private static LivingEntityPlayWithVillagerBabiesTask.getInteractionTarget(LivingEntity baby) BreezeJumpTask.getPosToJumpTo(LivingEntity breeze, Vec3d pos) static Vec3dBreezeMovementUtil.getRandomPosBehindTarget(LivingEntity target, Random random) private static Vec3dBreezeSlideTowardsTargetTask.getRandomPosInMediumRange(BreezeEntity breeze, LivingEntity target) TickCooldownTask.getRemainingCooldownTicks(LivingEntity entity) static voidTargetUtil.give(LivingEntity entity, ItemStack stack, Vec3d targetLocation) static voidTargetUtil.give(LivingEntity entity, ItemStack stack, Vec3d targetLocation, Vec3d velocityFactor, float yOffset) private voidGiveGiftsToHeroTask.giveGifts(ServerWorld world, VillagerEntity villager, LivingEntity recipient) private static voidGatherItemsVillagerTask.giveHalfOfStack(VillagerEntity villager, Set<Item> validItems, LivingEntity target) private static booleanVillagerTaskListProvider.hasActiveRaid(ServerWorld world, LivingEntity entity) static booleanTargetUtil.hasBreedTarget(LivingEntity entity) private static booleanPlayWithVillagerBabiesTask.hasInteractionTarget(LivingEntity baby) private static booleanOpenDoorsTask.hasOtherMobReachedDoor(LivingEntity entity, BlockPos pos, Optional<List<LivingEntity>> otherMobs) private static booleanForgetCompletedPointOfInterestTask.isBedOccupiedByOthers(ServerWorld world, BlockPos pos, LivingEntity entity) static booleanPanicTask.isHostileNearby(LivingEntity entity) private static booleanPlayWithVillagerBabiesTask.isInteractionTargetOf(LivingEntity entity, LivingEntity baby) static booleanTargetUtil.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) private static booleanBreezeJumpTask.isTargetOutOfRange(BreezeEntity breeze, LivingEntity target) private booleanFrogEatEntityTask.isTargetReachable(FrogEntity entity, LivingEntity target) private static booleanBreezeJumpTask.isTargetTooClose(BreezeEntity breeze, LivingEntity target) static booleanTargetUtil.isTargetWithinAttackRange(MobEntity mob, LivingEntity target, int rangedWeaponReachReduction) private static booleanBreezeShootTask.isTargetWithinRange(BreezeEntity breeze, LivingEntity target) static booleanTargetUtil.isVisibleInMemory(LivingEntity source, LivingEntity target) protected voidTickCooldownTask.keepRunning(ServerWorld world, LivingEntity entity, long time) static voidTargetUtil.lookAt(LivingEntity entity, LivingEntity target) static voidTargetUtil.lookAtAndWalkTowardsEachOther(LivingEntity first, LivingEntity second, float speed, int walkCompletionRange) private static voidTargetUtil.lookAtEachOther(LivingEntity first, LivingEntity second) private voidFrogEatEntityTask.markTargetAsUnreachable(FrogEntity entity, LivingEntity target) static voidOpenDoorsTask.pathToDoor(ServerWorld world, LivingEntity entity, @Nullable PathNode lastNode, @Nullable PathNode currentNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> otherMobs) static voidGiveInventoryToLookTargetTask.playThrowSound(LivingEntity entity, ItemStack stack, Vec3d target) protected voidDismountVehicleTask.run(ServerWorld world, LivingEntity entity, long time) protected voidSleepTask.run(ServerWorld world, LivingEntity entity, long time) private voidCrossbowAttackTask.setLookTarget(MobEntity entity, LivingEntity target) private static voidPlayWithVillagerBabiesTask.setPlayTarget(MemoryQueryResult<?, LivingEntity> interactionTarget, MemoryQueryResult<?, LookTarget> lookTarget, MemoryQueryResult<?, WalkTarget> walkTarget, LivingEntity baby) private voidHoldTradeOffersTask.setupOffers(LivingEntity customer, VillagerEntity villager) protected booleanSleepTask.shouldKeepRunning(ServerWorld world, LivingEntity entity, long time) protected booleanTickCooldownTask.shouldKeepRunning(ServerWorld world, LivingEntity entity, long time) protected booleanDismountVehicleTask.shouldRun(ServerWorld world, LivingEntity entity) protected booleanSleepTask.shouldRun(ServerWorld world, LivingEntity entity) final voidWaitTask.stop(ServerWorld world, LivingEntity entity, long time) booleanForgetAttackTargetTask.AlternativeCondition.test(ServerWorld world, LivingEntity target) final voidWaitTask.tick(ServerWorld world, LivingEntity entity, long time) private voidCrossbowAttackTask.tickState(E entity, LivingEntity target) final booleanWaitTask.tryStarting(ServerWorld world, LivingEntity entity, long time) static voidTargetUtil.walkTowards(LivingEntity entity, LookTarget target, float speed, int completionRange) static voidTargetUtil.walkTowards(LivingEntity entity, Entity target, float speed, int completionRange) static voidTargetUtil.walkTowards(LivingEntity entity, BlockPos target, float speed, int completionRange) private static voidTargetUtil.walkTowardsEachOther(LivingEntity first, LivingEntity second, float speed, int completionRange) static booleanPanicTask.wasHurt(LivingEntity entity) private static booleanVillagerTaskListProvider.wonRaid(ServerWorld world, LivingEntity entity) Method parameters in net.minecraft.entity.ai.brain.task with type arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static booleanTargetUtil.canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryType, Predicate<LivingEntity> filter) private static booleanTargetUtil.canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryType, Predicate<LivingEntity> filter) static booleanTargetUtil.canSee(Brain<?> brain, MemoryModuleType<? extends LivingEntity> memoryModuleType, EntityType<?> entityType) static Task<LivingEntity> DefeatTargetTask.create(int celebrationDuration, BiPredicate<LivingEntity, LivingEntity> predicate) static Task<LivingEntity> DefeatTargetTask.create(int celebrationDuration, BiPredicate<LivingEntity, LivingEntity> predicate) static <E extends WardenEntity>
Task<E> FindRoarTargetTask.create(Function<E, Optional<? extends LivingEntity>> targetFinder) static SingleTickTask<LivingEntity> GoToLookTargetTask.create(Predicate<LivingEntity> predicate, Function<LivingEntity, Float> speed, int completionRange) static SingleTickTask<LivingEntity> GoToLookTargetTask.create(Predicate<LivingEntity> predicate, Function<LivingEntity, Float> speed, int completionRange) static SingleTickTask<LivingEntity> LookAtMobTask.create(Predicate<LivingEntity> predicate, float maxDistance) RangedApproachTask.create(Function<LivingEntity, Float> speed) static SingleTickTask<PassiveEntity> WalkTowardsClosestAdultTask.create(UniformIntProvider executionRange, Function<LivingEntity, Float> speed) static Task<LivingEntity> WalkTowardsLookTargetTask.create(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, Predicate<LivingEntity> predicate, int completionRange, int searchRange, float speed) static Task<LivingEntity> WalkTowardsLookTargetTask.create(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, Predicate<LivingEntity> predicate, int completionRange, int searchRange, float speed) private static Task<LivingEntity> LookAtMobWithIntervalTask.follow(float maxDistance, UniformIntProvider interval, Predicate<LivingEntity> predicate) Deprecated.private static Map<LivingEntity, Integer> PlayWithVillagerBabiesTask.getBabyInteractionTargetCounts(List<LivingEntity> babies) static LivingEntityTargetUtil.getCloserEntity(LivingEntity source, Optional<LivingEntity> first, LivingEntity second) private static Optional<LivingEntity> PlayWithVillagerBabiesTask.getLeastPopularBabyInteractionTarget(List<LivingEntity> babies) private static booleanOpenDoorsTask.hasOtherMobReachedDoor(LivingEntity entity, BlockPos pos, Optional<List<LivingEntity>> otherMobs) static voidOpenDoorsTask.pathToDoor(ServerWorld world, LivingEntity entity, @Nullable PathNode lastNode, @Nullable PathNode currentNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> otherMobs) private static voidPlayWithVillagerBabiesTask.setPlayTarget(MemoryQueryResult<?, LivingEntity> interactionTarget, MemoryQueryResult<?, LookTarget> lookTarget, MemoryQueryResult<?, WalkTarget> walkTarget, LivingEntity baby) Constructors in net.minecraft.entity.ai.brain.task with parameters of type LivingEntityConstructor parameters in net.minecraft.entity.ai.brain.task with type arguments of type LivingEntityModifierConstructorDescriptionGiveInventoryToLookTargetTask(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, float speed, int runTime) TemptTask(Function<LivingEntity, Float> speed) TemptTask(Function<LivingEntity, Float> speed, Function<LivingEntity, Double> stopDistanceGetter) -
Uses of LivingEntity in net.minecraft.entity.ai.goal
Classes in net.minecraft.entity.ai.goal with type parameters of type LivingEntityModifier and TypeClassDescriptionclassActiveTargetGoal<T extends LivingEntity>A target goal that finds a target by entity class when the goal starts.classDisableableFollowTargetGoal<T extends LivingEntity>An active target goal that can be disabled so that it cannot start.classFleeEntityGoal<T extends LivingEntity>classRaidGoal<T extends LivingEntity>classUntamedActiveTargetGoal<T extends LivingEntity>An active target goal that only starts for untamed tameable animals.Fields in net.minecraft.entity.ai.goal declared as LivingEntityModifier and TypeFieldDescriptionprivate LivingEntityTrackOwnerAttackerGoal.attackerprivate LivingEntityAttackWithOwnerGoal.attackingprivate @Nullable LivingEntityFollowOwnerGoal.ownerprivate LivingEntityAttackGoal.targetprivate @Nullable LivingEntityCreeperIgniteGoal.targetprivate LivingEntityPounceAtTargetGoal.targetprivate @Nullable LivingEntityProjectileAttackGoal.targetprivate @Nullable LivingEntityTrackIronGolemTargetGoal.targetprotected @Nullable LivingEntityTrackTargetGoal.targetprivate @Nullable LivingEntityWanderNearTargetGoal.targetprotected @Nullable LivingEntityActiveTargetGoal.targetEntityprotected TFleeEntityGoal.targetEntityFields in net.minecraft.entity.ai.goal with type parameters of type LivingEntityModifier and TypeFieldDescriptionprotected final Predicate<LivingEntity> FleeEntityGoal.extraInclusionSelectorprotected final Predicate<LivingEntity> FleeEntityGoal.inclusionSelectorprotected final Class<? extends LivingEntity> LookAtEntityGoal.targetTypeMethods in net.minecraft.entity.ai.goal with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidMeleeAttackGoal.attack(LivingEntity target) protected booleanMeleeAttackGoal.canAttack(LivingEntity target) private booleanTrackTargetGoal.canNavigateToEntity(LivingEntity entity) protected booleanTrackTargetGoal.canTrack(@Nullable LivingEntity target, TargetPredicate targetPredicate) private booleanTemptGoal.isTemptedBy(LivingEntity entity) protected voidRevengeGoal.setMobEntityTarget(MobEntity mob, LivingEntity target) voidActiveTargetGoal.setTargetEntity(@Nullable LivingEntity targetEntity) Constructor parameters in net.minecraft.entity.ai.goal with type arguments of type LivingEntityModifierConstructorDescriptionFleeEntityGoal(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) LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range) LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance) LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance, boolean lookForward) StopAndLookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range) StopAndLookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance) -
Uses of LivingEntity in net.minecraft.entity.attribute
Fields in net.minecraft.entity.attribute with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Map<EntityType<? extends LivingEntity>, DefaultAttributeContainer> DefaultAttributeRegistry.DEFAULT_ATTRIBUTE_REGISTRYMethod parameters in net.minecraft.entity.attribute with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic DefaultAttributeContainerDefaultAttributeRegistry.get(EntityType<? extends LivingEntity> type) -
Uses of LivingEntity in net.minecraft.entity.boss
Subclasses of LivingEntity in net.minecraft.entity.bossMethods in net.minecraft.entity.boss with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidWitherEntity.shootAt(LivingEntity target, float pullProgress) private voidWitherEntity.shootSkullAt(int headIndex, LivingEntity target) -
Uses of LivingEntity in net.minecraft.entity.boss.dragon
Subclasses of LivingEntity in net.minecraft.entity.boss.dragonMethods in net.minecraft.entity.boss.dragon with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.entity.boss.dragon.phase
Fields in net.minecraft.entity.boss.dragon.phase declared as LivingEntityMethods in net.minecraft.entity.boss.dragon.phase with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidStrafePlayerPhase.setTargetEntity(LivingEntity targetEntity) -
Uses of LivingEntity in net.minecraft.entity.damage
Fields in net.minecraft.entity.damage declared as LivingEntityMethods in net.minecraft.entity.damage with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic @Nullable FallLocationFallLocation.fromEntity(LivingEntity entity) DamageSource.getDeathMessage(LivingEntity killed) DamageSources.mobAttack(LivingEntity attacker) DamageSources.mobAttackNoAggro(LivingEntity attacker) DamageSources.mobProjectile(Entity source, @Nullable LivingEntity attacker) DamageSources.spit(Entity source, @Nullable LivingEntity attacker) DamageSources.sting(LivingEntity attacker) DamageSources.windCharge(Entity source, @Nullable LivingEntity attacker) Constructors in net.minecraft.entity.damage with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.entity.data
Fields in net.minecraft.entity.data with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final TrackedDataHandler<Optional<LazyEntityReference<LivingEntity>>> TrackedDataHandlerRegistry.LAZY_ENTITY_REFERENCE -
Uses of LivingEntity in net.minecraft.entity.decoration
Subclasses of LivingEntity in net.minecraft.entity.decorationMethods in net.minecraft.entity.decoration that return LivingEntityModifier and TypeMethodDescriptionInteractionEntity.getLastAttacker()InteractionEntity.getTarget() -
Uses of LivingEntity in net.minecraft.entity.effect
Methods in net.minecraft.entity.effect with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidInstantHealthOrDamageStatusEffect.applyInstantEffect(ServerWorld world, @Nullable Entity effectEntity, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity) voidStatusEffect.applyInstantEffect(ServerWorld world, @Nullable Entity effectEntity, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity) booleanAbsorptionStatusEffect.applyUpdateEffect(ServerWorld world, LivingEntity entity, int amplifier) booleanBadOmenStatusEffect.applyUpdateEffect(ServerWorld world, LivingEntity entity, int amplifier) booleanHungerStatusEffect.applyUpdateEffect(ServerWorld world, LivingEntity entity, int amplifier) booleanInstantHealthOrDamageStatusEffect.applyUpdateEffect(ServerWorld world, LivingEntity entity, int amplifier) booleanPoisonStatusEffect.applyUpdateEffect(ServerWorld world, LivingEntity entity, int amplifier) booleanRaidOmenStatusEffect.applyUpdateEffect(ServerWorld world, LivingEntity entity, int amplifier) booleanRegenerationStatusEffect.applyUpdateEffect(ServerWorld world, LivingEntity entity, int amplifier) booleanSaturationStatusEffect.applyUpdateEffect(ServerWorld world, LivingEntity entity, int amplifier) booleanStatusEffect.applyUpdateEffect(ServerWorld world, LivingEntity entity, int amplifier) booleanWitherStatusEffect.applyUpdateEffect(ServerWorld world, LivingEntity entity, int amplifier) OozingStatusEffect.SlimeCounter.around(LivingEntity entity) floatStatusEffectInstance.Fading.calculate(LivingEntity entity, float tickProgress) floatStatusEffectInstance.getFadeFactor(LivingEntity entity, float tickProgress) Returns the factor (multiplier) for effect fade-in and fade-out.static intStatusEffectUtil.getHasteAmplifier(LivingEntity entity) static booleanStatusEffectUtil.hasHaste(LivingEntity entity) static booleanStatusEffectUtil.hasWaterBreathing(LivingEntity entity) voidAbsorptionStatusEffect.onApplied(LivingEntity entity, int amplifier) voidStatusEffect.onApplied(LivingEntity entity, int amplifier) voidStatusEffectInstance.onApplied(LivingEntity entity) voidInfestedStatusEffect.onEntityDamage(ServerWorld world, LivingEntity entity, int amplifier, DamageSource source, float amount) voidStatusEffect.onEntityDamage(ServerWorld world, LivingEntity entity, int amplifier, DamageSource source, float amount) voidStatusEffectInstance.onEntityDamage(ServerWorld world, LivingEntity entity, DamageSource source, float amount) voidOozingStatusEffect.onEntityRemoval(ServerWorld world, LivingEntity entity, int amplifier, Entity.RemovalReason reason) voidStatusEffect.onEntityRemoval(ServerWorld world, LivingEntity entity, int amplifier, Entity.RemovalReason reason) voidStatusEffectInstance.onEntityRemoval(ServerWorld world, LivingEntity entity, Entity.RemovalReason reason) voidWeavingStatusEffect.onEntityRemoval(ServerWorld world, LivingEntity entity, int amplifier, Entity.RemovalReason reason) voidWindChargedStatusEffect.onEntityRemoval(ServerWorld world, LivingEntity entity, int amplifier, Entity.RemovalReason reason) voidStatusEffect.playApplySound(LivingEntity entity, int amplifier) voidStatusEffectInstance.playApplySound(LivingEntity entity) private voidInfestedStatusEffect.spawnSilverfish(ServerWorld world, LivingEntity entity, double x, double y, double z) booleanStatusEffectInstance.update(ServerWorld world, LivingEntity entity, Runnable hiddenEffectCallback) -
Uses of LivingEntity in net.minecraft.entity.mob
Classes in net.minecraft.entity.mob with type parameters of type LivingEntityModifier and TypeClassDescriptionprivate static classSpiderEntity.TargetGoal<T extends LivingEntity>Subclasses of LivingEntity in net.minecraft.entity.mobModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.entity.mob declared as LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LivingEntityGuardianEntity.cachedBeamTargetprivate final LivingEntityElytraFlightController.entityprivate @Nullable LivingEntityEvokerFangsEntity.ownerprivate @Nullable LivingEntityEndermanEntity.ChasePlayerGoal.targetprivate @Nullable LivingEntityMobEntity.targetFields in net.minecraft.entity.mob with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final Predicate<LivingEntity> RavagerEntity.CAN_KNOCK_BACK_WITH_ROAR_ON_CLIENTMethods in net.minecraft.entity.mob that return LivingEntityModifier and TypeMethodDescriptionAngerable.getAttacker()GuardianEntity.getBeamTarget()MobEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.EvokerFangsEntity.getOwner()AbstractPiglinEntity.getTarget()Angerable.getTarget()BreezeEntity.getTarget()CreakingEntity.getTarget()HoglinEntity.getTarget()MobEntity.getTarget()WardenEntity.getTarget()ZoglinEntity.getTarget()protected final @Nullable LivingEntityMobEntity.getTargetInBrain()Methods in net.minecraft.entity.mob that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<LivingEntity> PiglinBrain.getAngryAt(AbstractPiglinEntity piglin) static Optional<LivingEntity> PiglinBrain.getAvoiding(PiglinEntity piglin) private Optional<? extends LivingEntity> ZoglinEntity.getHoglinTarget(ServerWorld world) BreezeEntity.getHurtBy()private static Optional<? extends LivingEntity> HoglinBrain.getNearestVisibleTargetablePlayer(ServerWorld world, HoglinEntity hoglin) private static Optional<? extends LivingEntity> PiglinBrain.getPreferredTarget(ServerWorld world, PiglinEntity piglin) WardenEntity.getPrimeSuspect()private static Optional<? extends LivingEntity> PiglinBruteBrain.getTarget(ServerWorld world, AbstractPiglinEntity piglin) private static ImmutableList<com.mojang.datafixers.util.Pair<SingleTickTask<LivingEntity>, Integer>> PiglinBrain.makeFollowTasks()private static RandomTask<LivingEntity> PiglinBrain.makeRandomFollowTask()private static Task<LivingEntity> PiglinBrain.makeRememberRideableHoglinTask()Methods in net.minecraft.entity.mob with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected static voidPiglinBrain.angerAtCloserTargets(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) private static voidPiglinBrain.angerAtIfCloser(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) private static voidHoglinBrain.askAdultsForHelp(HoglinEntity hoglin, LivingEntity target) private static voidHoglinBrain.askAdultsToAvoid(HoglinEntity hoglin, LivingEntity target) private static voidHoglinBrain.avoid(HoglinEntity hoglin, LivingEntity target) private static voidHoglinBrain.avoidEnemy(HoglinEntity hoglin, LivingEntity target) protected static voidPiglinBrain.becomeAngryWith(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) private static voidPiglinBrain.becomeAngryWithPlayer(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) booleanDrownedEntity.canDrownedAttackTarget(@Nullable LivingEntity target) booleanAngerable.canTarget(LivingEntity target) private static booleanCreakingBrain.canTarget(CreakingEntity creaking, LivingEntity target) booleanIllagerEntity.canTarget(LivingEntity target) private static booleanPiglinBrain.canWander(LivingEntity piglin) private voidEvokerFangsEntity.damage(LivingEntity target) protected voidSlimeEntity.damage(LivingEntity target) 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) booleanMobEntity.isInAttackRange(LivingEntity entity) private static booleanPiglinBrain.isPreferredAttackTarget(ServerWorld world, PiglinEntity piglin, LivingEntity target) private static booleanPiglinBruteBrain.isTarget(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) private static booleanWardenBrain.isTargeting(WardenEntity warden, LivingEntity entity) static booleanPiglinBrain.isWearingPiglinSafeArmor(LivingEntity entity) static voidHoglin.knockback(LivingEntity attacker, LivingEntity target) protected voidHoglinEntity.knockback(LivingEntity target) protected voidRavagerEntity.knockback(LivingEntity target) protected voidZoglinEntity.knockback(LivingEntity target) protected static voidHoglinBrain.onAttacked(ServerWorld world, HoglinEntity hoglin, LivingEntity attacker) protected static voidPiglinBrain.onAttacked(ServerWorld world, PiglinEntity piglin, LivingEntity attacker) protected static voidHoglinBrain.onAttacking(HoglinEntity hoglin, LivingEntity target) booleanZombieEntity.onKilledOther(ServerWorld world, LivingEntity other) Called when this entity killsother.private static voidWardenBrain.removeDeadSuspect(ServerWorld world, WardenEntity warden, LivingEntity target) static voidWardenBrain.resetDigCooldown(LivingEntity warden) 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) voidCreeperEntity.setTarget(@Nullable LivingEntity target) voidEndermanEntity.setTarget(@Nullable LivingEntity target) voidMobEntity.setTarget(@Nullable LivingEntity target) protected static voidPiglinBruteBrain.setTarget(PiglinBruteEntity piglinBrute, LivingEntity target) voidZombifiedPiglinEntity.setTarget(@Nullable LivingEntity target) voidAbstractSkeletonEntity.shootAt(LivingEntity target, float pullProgress) voidDrownedEntity.shootAt(LivingEntity target, float pullProgress) voidIllusionerEntity.shootAt(LivingEntity target, float pullProgress) voidPiglinEntity.shootAt(LivingEntity target, float pullProgress) voidPillagerEntity.shootAt(LivingEntity target, float pullProgress) voidWitchEntity.shootAt(LivingEntity target, float pullProgress) default booleanAngerable.shouldAngerAt(LivingEntity entity, ServerWorld world) private booleanZoglinEntity.shouldAttack(ServerWorld world, LivingEntity target) private static voidHoglinBrain.targetEnemy(ServerWorld world, HoglinEntity hoglin, LivingEntity target) booleanGuardianEntity.GuardianTargetPredicate.test(@Nullable LivingEntity target, ServerWorld world) (package private) booleanPhantomEntity.testTargetPredicate(ServerWorld world, LivingEntity target, TargetPredicate predicate) static booleanHoglin.tryAttack(ServerWorld world, LivingEntity attacker, LivingEntity target) protected static voidPiglinBrain.tryRevenge(ServerWorld world, AbstractPiglinEntity piglin, LivingEntity target) protected static voidPiglinBruteBrain.tryRevenge(ServerWorld world, PiglinBruteEntity piglinBrute, LivingEntity target) voidWardenEntity.updateAttackTarget(LivingEntity target) Constructors in net.minecraft.entity.mob with parameters of type LivingEntityModifierConstructorDescriptionElytraFlightController(LivingEntity entity) EvokerFangsEntity(World world, double x, double y, double z, float yaw, int warmup, LivingEntity owner) -
Uses of LivingEntity in net.minecraft.entity.passive
Classes in net.minecraft.entity.passive with type parameters of type LivingEntityModifier and TypeClassDescriptionprivate static classCatEntity.CatFleeGoal<T extends LivingEntity>private static classOcelotEntity.FleeGoal<T extends LivingEntity>private static classPandaEntity.PandaFleeGoal<T extends LivingEntity>private static classRabbitEntity.FleeGoal<T extends LivingEntity>private classWolfEntity.AvoidLlamaGoal<T extends LivingEntity>Subclasses of LivingEntity in net.minecraft.entity.passiveModifier and TypeClassDescriptionclassclassclassclassclassclassclassRepresents an axolotl, the cutest predator.classclassclassclassMeow.classclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.entity.passive declared as LivingEntityModifier and TypeFieldDescriptionprivate @Nullable LivingEntityFoxEntity.DefendFriendGoal.friendprivate @Nullable LivingEntityFoxEntity.DefendFriendGoal.offenderprivate LivingEntityTraderLlamaEntity.DefendTraderGoal.offenderFields in net.minecraft.entity.passive with type parameters of type LivingEntityModifier and TypeFieldDescriptionprivate static final TrackedData<Optional<LazyEntityReference<LivingEntity>>> FoxEntity.OTHER_TRUSTEDprivate static final TrackedData<Optional<LazyEntityReference<LivingEntity>>> FoxEntity.OWNERprotected static final TrackedData<Optional<LazyEntityReference<LivingEntity>>> TameableEntity.OWNER_UUIDprivate @Nullable LazyEntityReference<LivingEntity> AbstractHorseEntity.ownerReferenceprivate static final com.mojang.serialization.Codec<List<LazyEntityReference<LivingEntity>>> FoxEntity.TRUSTED_ENTITIES_CODECMethods in net.minecraft.entity.passive that return LivingEntityModifier and TypeMethodDescriptionAbstractHorseEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.PigEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.StriderEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.AxolotlEntity.getTarget()FrogEntity.getTarget()Methods in net.minecraft.entity.passive that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Optional<? extends LivingEntity> AxolotlBrain.getAttackTarget(ServerWorld world, AxolotlEntity axolotl) AbstractHorseEntity.getOwnerReference()TameableEntity.getOwnerReference()(package private) Stream<LazyEntityReference<LivingEntity>> FoxEntity.getTrustedEntities()Methods in net.minecraft.entity.passive with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic voidAxolotlEntity.appreciatePlayer(ServerWorld world, AxolotlEntity axolotl, LivingEntity target) protected voidFoxEntity.AttackGoal.attack(LivingEntity target) protected voidPolarBearEntity.AttackGoal.attack(LivingEntity target) booleanTameableEntity.canAttackWithOwner(LivingEntity target, LivingEntity owner) booleanWolfEntity.canAttackWithOwner(LivingEntity target, LivingEntity owner) private static booleanAxolotlBrain.canGoToLookTarget(LivingEntity entity) static booleanFoxEntity.canJumpChase(FoxEntity fox, LivingEntity chasedEntity) booleanDolphinEntity.canTarget(LivingEntity target) booleanTameableEntity.canTarget(LivingEntity target) (package private) booleanFoxEntity.canTrust(LivingEntity entity) private static floatAxolotlBrain.getAdultFollowingSpeed(LivingEntity entity) Returns the axolotl's speed when a baby axolotl is following an adult.protected Vec2fAbstractHorseEntity.getControlledRotation(LivingEntity controllingPassenger) protected Vec2fCamelEntity.getControlledRotation(LivingEntity controllingPassenger) private static Optional<LookTarget> AllayBrain.getLikedLookTarget(LivingEntity allay) static Optional<ServerPlayerEntity> AllayBrain.getLikedPlayer(LivingEntity allay) private static Optional<LookTarget> AllayBrain.getLookTarget(LivingEntity allay) private static floatAxolotlBrain.getTargetApproachingSpeed(LivingEntity entity) Returns the axolotl's speed when approaching the attack target.private static floatAxolotlBrain.getTemptedSpeed(LivingEntity entity) Returns the axolotl's speed when the axolotl is being tempted.private static booleanAllayBrain.hasNearestVisibleWantedItem(LivingEntity entity) booleanArmadilloEntity.isEntityThreatening(LivingEntity entity) booleanTameableEntity.isOwner(LivingEntity entity) static booleanFrogEntity.isValidFrogFood(LivingEntity entity) AbstractHorseEntity.locateSafeDismountingPos(Vec3d offset, LivingEntity passenger) static voidAllayBrain.rememberNoteBlock(LivingEntity allay, BlockPos pos) 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) voidAbstractHorseEntity.setOwner(@Nullable LivingEntity entity) voidTameableEntity.setOwner(@Nullable LivingEntity owner) voidFoxEntity.setTarget(@Nullable LivingEntity target) voidPandaEntity.LookAtEntityGoal.setTarget(LivingEntity target) voidLlamaEntity.shootAt(LivingEntity target, float pullProgress) voidSnowGolemEntity.shootAt(LivingEntity target, float pullProgress) private static booleanAllayBrain.shouldGoTowardsNoteBlock(LivingEntity allay, Brain<?> brain, GlobalPos pos) private voidLlamaEntity.spitAt(LivingEntity target) booleanFoxEntity.WorriableEntityFilter.test(LivingEntity target, ServerWorld world) (package private) voidFoxEntity.trust(LivingEntity entity) AbstractHorseEntity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.PigEntity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.StriderEntity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.Method parameters in net.minecraft.entity.passive with type arguments of type LivingEntityModifier and TypeMethodDescriptionstatic booleanAxolotlEntity.canSpawn(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random) static booleanGlowSquidEntity.canSpawn(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random) voidTameableEntity.setOwner(@Nullable LazyEntityReference<LivingEntity> owner) private voidFoxEntity.trust(LazyEntityReference<LivingEntity> entity) Constructor parameters in net.minecraft.entity.passive with type arguments of type LivingEntityModifierConstructorDescriptionDefendFriendGoal(Class<LivingEntity> targetEntityClass, boolean checkVisibility, boolean checkCanNavigate, TargetPredicate.EntityPredicate targetPredicate) LookAtEntityGoal(MobEntity fox, Class<? extends LivingEntity> targetType, float range) LookAtEntityGoal(PandaEntity panda, Class<? extends LivingEntity> targetType, float range) -
Uses of LivingEntity in net.minecraft.entity.player
Subclasses of LivingEntity in net.minecraft.entity.playerMethods in net.minecraft.entity.player with parameters of type LivingEntityModifier and TypeMethodDescriptionprotected voidPlayerEntity.attackLivingEntity(LivingEntity target) booleanPlayerEntity.onKilledOther(ServerWorld world, LivingEntity other) Called when this entity killsother.protected voidPlayerEntity.takeShieldHit(ServerWorld world, LivingEntity attacker) -
Uses of LivingEntity in net.minecraft.entity.projectile
Fields in net.minecraft.entity.projectile declared as LivingEntityMethods in net.minecraft.entity.projectile with parameters of type LivingEntityModifier and TypeMethodDescriptionProjectileEntity.ProjectileCreator.create(ServerWorld world, LivingEntity shooter, ItemStack stack) static PersistentProjectileEntityProjectileUtil.createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier, @Nullable ItemStack bow) static HandProjectileUtil.getHandPossiblyHolding(LivingEntity entity, Item item) FireworkRocketEntity.getKnockback(LivingEntity target, DamageSource source) ProjectileEntity.getKnockback(LivingEntity target, DamageSource source) protected voidPersistentProjectileEntity.knockback(LivingEntity target, DamageSource source) protected voidArrowEntity.onHit(LivingEntity target) protected voidPersistentProjectileEntity.onHit(LivingEntity target) protected voidSpectralArrowEntity.onHit(LivingEntity target) static <T extends ProjectileEntity>
TProjectileEntity.spawnWithVelocity(ProjectileEntity.ProjectileCreator<T> creator, ServerWorld world, ItemStack projectileStack, LivingEntity shooter, double velocityX, double velocityY, double velocityZ, float power, float divergence) static <T extends ProjectileEntity>
TProjectileEntity.spawnWithVelocity(ProjectileEntity.ProjectileCreator<T> creator, ServerWorld world, ItemStack projectileStack, LivingEntity shooter, float roll, float power, float divergence) Constructors in net.minecraft.entity.projectile with parameters of type LivingEntityModifierConstructorDescriptionAbstractFireballEntity(EntityType<? extends AbstractFireballEntity> type, LivingEntity owner, Vec3d velocity, World world) ArrowEntity(World world, LivingEntity owner, ItemStack stack, @Nullable ItemStack shotFrom) DragonFireballEntity(World world, LivingEntity owner, Vec3d velocity) ExplosiveProjectileEntity(EntityType<? extends ExplosiveProjectileEntity> type, LivingEntity owner, Vec3d velocity, World world) FireballEntity(World world, LivingEntity owner, Vec3d velocity, int explosionPower) FireworkRocketEntity(World world, ItemStack stack, LivingEntity shooter) protectedPersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, LivingEntity owner, World world, ItemStack stack, @Nullable ItemStack shotFrom) ShulkerBulletEntity(World world, LivingEntity owner, Entity target, Direction.Axis axis) SmallFireballEntity(World world, LivingEntity owner, Vec3d velocity) SpectralArrowEntity(World world, LivingEntity owner, ItemStack stack, @Nullable ItemStack shotFrom) TridentEntity(World world, LivingEntity owner, ItemStack stack) WitherSkullEntity(World world, LivingEntity owner, Vec3d velocity) -
Uses of LivingEntity in net.minecraft.entity.projectile.thrown
Fields in net.minecraft.entity.projectile.thrown with type parameters of type LivingEntityModifier and TypeFieldDescriptionstatic final Predicate<LivingEntity> PotionEntity.AFFECTED_BY_WATERMethods in net.minecraft.entity.projectile.thrown with parameters of type LivingEntityModifier and TypeMethodDescriptionPotionEntity.getKnockback(LivingEntity target, DamageSource source) Constructors in net.minecraft.entity.projectile.thrown with parameters of type LivingEntityModifierConstructorDescriptionEggEntity(World world, LivingEntity owner, ItemStack stack) EnderPearlEntity(World world, LivingEntity owner, ItemStack stack) ExperienceBottleEntity(World world, LivingEntity owner, ItemStack stack) LingeringPotionEntity(World world, LivingEntity owner, ItemStack stack) PotionEntity(EntityType<? extends PotionEntity> type, World world, LivingEntity owner, ItemStack stack) SnowballEntity(World world, LivingEntity owner, ItemStack stack) SplashPotionEntity(World world, LivingEntity owner, ItemStack stack) ThrownItemEntity(EntityType<? extends ThrownItemEntity> type, LivingEntity owner, World world, ItemStack stack) -
Uses of LivingEntity in net.minecraft.entity.raid
Subclasses of LivingEntity in net.minecraft.entity.raid -
Uses of LivingEntity in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle that return LivingEntityModifier and TypeMethodDescriptionAbstractBoatEntity.getControllingPassenger()Returns the passenger in control of this entity, ornullif there is none.Methods in net.minecraft.entity.vehicle with parameters of type LivingEntityModifier and TypeMethodDescriptionAbstractBoatEntity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.AbstractMinecartEntity.updatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger. -
Uses of LivingEntity in net.minecraft.inventory
Methods in net.minecraft.inventory with parameters of type LivingEntityModifier and TypeMethodDescriptionstatic StackReferenceStackReference.of(LivingEntity entity, EquipmentSlot slot) Creates a stack reference backed by an equipment slot of a living entity with no filter, allowing direct manipulation of the equipment slot.static StackReferenceStackReference.of(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> filter) Creates a stack reference backed by an equipment slot of a living entity and guarded by a condition for setting stacks into the inventory. -
Uses of LivingEntity in net.minecraft.item
Methods in net.minecraft.item that return types with arguments of type LivingEntityModifier and TypeMethodDescriptionprivate static Predicate<LivingEntity> MaceItem.getKnockbackPredicate(Entity attacker, Entity attacked) Methods in net.minecraft.item with parameters of type LivingEntityModifier and TypeMethodDescriptionprivate ItemStackItemStack.applyRemainderAndCooldown(LivingEntity user, ItemStack stack) private static Vector3fCrossbowItem.calcVelocity(LivingEntity shooter, Vec3d direction, float yaw) booleanDebugStickItem.canMine(ItemStack stack, BlockState state, World world, BlockPos pos, LivingEntity user) Returns whether a player can break a block while holding the item.booleanItem.canMine(ItemStack stack, BlockState state, World world, BlockPos pos, LivingEntity user) Returns whether a player can break a block while holding the item.ArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter, @Nullable ItemStack shotFrom) SpectralArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter, @Nullable ItemStack shotFrom) protected ProjectileEntityCrossbowItem.createArrowEntity(World world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical) protected ProjectileEntityRangedWeaponItem.createArrowEntity(World world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical) protected PotionEntityLingeringPotionItem.createEntity(ServerWorld world, LivingEntity user, ItemStack stack) protected PotionEntitySplashPotionItem.createEntity(ServerWorld world, LivingEntity user, ItemStack stack) protected abstract PotionEntityThrowablePotionItem.createEntity(ServerWorld world, LivingEntity user, ItemStack stack) voidItemStack.damage(int amount, LivingEntity entity, EquipmentSlot slot) Damages this item stack.ItemStack.damage(int amount, ItemConvertible itemAfterBreaking, LivingEntity entity, EquipmentSlot slot) voidItemStack.decrementUnlessCreative(int amount, @Nullable LivingEntity entity) Decrements the count of items in this item stack, unlessentityis a creative mode player.Item.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.ItemStack.finishUsing(World world, LivingEntity user) SpyglassItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.Item.getDamageSource(LivingEntity user) MaceItem.getDamageSource(LivingEntity user) static ItemStackRangedWeaponItem.getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate) private static doubleMaceItem.getKnockback(Entity attacker, LivingEntity attacked, Vec3d distance) intBowItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intBrushItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intBundleItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intCrossbowItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intEnderEyeItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intGoatHornItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intItemStack.getMaxUseTime(LivingEntity user) intSpyglassItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intTridentItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.protected static ItemStackRangedWeaponItem.getProjectile(ItemStack stack, ItemStack projectileStack, LivingEntity shooter, boolean multishot) private static floatCrossbowItem.getPullProgress(int useTicks, ItemStack stack, LivingEntity user) static intCrossbowItem.getPullTime(ItemStack stack, LivingEntity user) RangedWeaponItem.load(ItemStack stack, ItemStack projectileStack, LivingEntity shooter) private static booleanCrossbowItem.loadProjectiles(LivingEntity shooter, ItemStack crossbow) voidvoiddefault voidFluidModificationItem.onEmptied(@Nullable LivingEntity user, World world, ItemStack stack, BlockPos pos) booleanBowItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.booleanCrossbowItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.booleanItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.voidItemStack.onStoppedUsing(World world, LivingEntity user, int remainingUseTicks) booleanSpyglassItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.booleanTridentItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.booleanBucketItem.placeFluid(@Nullable LivingEntity user, World world, BlockPos pos, @Nullable BlockHitResult hitResult) booleanFluidModificationItem.placeFluid(@Nullable LivingEntity user, World world, BlockPos pos, @Nullable BlockHitResult hitResult) booleanPowderSnowBucketItem.placeFluid(@Nullable LivingEntity user, World world, BlockPos pos, @Nullable BlockHitResult hitResult) protected voidBucketItem.playEmptyingSound(@Nullable LivingEntity user, WorldAccess world, BlockPos pos) protected voidEntityBucketItem.playEmptyingSound(@Nullable LivingEntity user, WorldAccess world, BlockPos pos) private voidSpyglassItem.playStopUsingSound(LivingEntity user) voidItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidItemStack.postDamageEntity(LivingEntity target, LivingEntity user) voidMaceItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanItemStack.postHit(LivingEntity target, LivingEntity user) voidMaceItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.booleanShearsItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.protected voidBowItem.shoot(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, @Nullable LivingEntity target) protected voidCrossbowItem.shoot(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, @Nullable LivingEntity target) protected abstract voidRangedWeaponItem.shoot(LivingEntity shooter, ProjectileEntity projectile, int index, float speed, float divergence, float yaw, @Nullable LivingEntity target) voidCrossbowItem.shootAll(World world, LivingEntity shooter, Hand hand, ItemStack stack, float speed, float divergence, @Nullable LivingEntity target) protected voidRangedWeaponItem.shootAll(ServerWorld world, LivingEntity shooter, Hand hand, ItemStack stack, List<ItemStack> projectiles, float speed, float divergence, boolean critical, @Nullable LivingEntity target) static booleanMaceItem.shouldDealAdditionalDamage(LivingEntity attacker) ItemStack.splitUnlessCreative(int amount, @Nullable LivingEntity entity) voidBrushItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) Called on both the server and the client every tick while an entity uses the item.voidBundleItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) Called on both the server and the client every tick while an entity uses the item.voidCrossbowItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) Called on both the server and the client every tick while an entity uses the item.voidItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) Called on both the server and the client every tick while an entity uses the item.voidItemStack.usageTick(World world, LivingEntity user, int remainingUseTicks) DyeItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.Item.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.ItemStack.useOnEntity(PlayerEntity user, LivingEntity entity, Hand hand) NameTagItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity. -
Uses of LivingEntity in net.minecraft.item.consume
Methods in net.minecraft.item.consume with parameters of type LivingEntityModifier and TypeMethodDescriptionbooleanApplyEffectsConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) booleanClearAllEffectsConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) booleanConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) booleanPlaySoundConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) booleanRemoveEffectsConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) booleanTeleportRandomlyConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) -
Uses of LivingEntity in net.minecraft.network.packet.s2c.play
Constructors in net.minecraft.network.packet.s2c.play with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.predicate.entity
Methods in net.minecraft.predicate.entity with parameters of type LivingEntity -
Uses of LivingEntity in net.minecraft.screen.slot
Fields in net.minecraft.screen.slot declared as LivingEntityConstructors in net.minecraft.screen.slot with parameters of type LivingEntityModifierConstructorDescriptionArmorSlot(Inventory inventory, LivingEntity entity, EquipmentSlot equipmentSlot, int index, int x, int y, @Nullable Identifier backgroundSprite) -
Uses of LivingEntity in net.minecraft.server
Methods in net.minecraft.server with parameters of type LivingEntityModifier and TypeMethodDescriptionvoidPlayerManager.sendStatusEffects(LivingEntity entity, ServerPlayNetworkHandler networkHandler) -
Uses of LivingEntity in net.minecraft.server.command
Methods in net.minecraft.server.command that return LivingEntityModifier and TypeMethodDescriptionprivate static LivingEntityAttributeCommand.getLivingEntity(Entity entity) private static LivingEntityAttributeCommand.getLivingEntityWithAttribute(Entity entity, RegistryEntry<EntityAttribute> attribute) -
Uses of LivingEntity in net.minecraft.server.network
Subclasses of LivingEntity in net.minecraft.server.networkMethods in net.minecraft.server.network with parameters of type LivingEntityModifier and TypeMethodDescriptionDebugInfoSender.listMemories(LivingEntity entity, long currentTime) static voidDebugInfoSender.sendBrainDebugData(LivingEntity living) -
Uses of LivingEntity in net.minecraft.test
Methods in net.minecraft.test with type parameters of type LivingEntityModifier and TypeMethodDescription<E extends LivingEntity>
voidTestContext.expectEntityHoldingItem(BlockPos pos, EntityType<E> entityType, Item item) Methods in net.minecraft.test that return LivingEntityModifier and TypeMethodDescriptionTestContext.drown(LivingEntity entity) TestContext.setHealthLow(LivingEntity entity) Methods in net.minecraft.test with parameters of type LivingEntityModifier and TypeMethodDescriptionTestContext.drown(LivingEntity entity) voidTestContext.expectEntityHasEffect(LivingEntity entity, RegistryEntry<StatusEffect> effect, int amplifier) TestContext.setHealthLow(LivingEntity entity) -
Uses of LivingEntity in net.minecraft.world
Methods in net.minecraft.world with type parameters of type LivingEntityModifier and TypeMethodDescriptiondefault <T extends LivingEntity>
TEntityLookupView.getClosestEntity(Class<? extends T> clazz, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z, Box box) default <T extends LivingEntity>
TEntityLookupView.getClosestEntity(List<? extends T> entities, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z) default <T extends LivingEntity>
List<T> EntityLookupView.getTargets(Class<T> clazz, TargetPredicate targetPredicate, LivingEntity entity, Box box) Methods in net.minecraft.world with parameters of type LivingEntityModifier and TypeMethodDescriptiondefault <T extends LivingEntity>
TEntityLookupView.getClosestEntity(Class<? extends T> clazz, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z, Box box) default <T extends LivingEntity>
TEntityLookupView.getClosestEntity(List<? extends T> entities, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z) default @Nullable PlayerEntityEntityLookupView.getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity) default @Nullable PlayerEntityEntityLookupView.getClosestPlayer(TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z) default List<PlayerEntity> EntityLookupView.getPlayers(TargetPredicate targetPredicate, LivingEntity entity, Box box) default <T extends LivingEntity>
List<T> EntityLookupView.getTargets(Class<T> clazz, TargetPredicate targetPredicate, LivingEntity entity, Box box) -
Uses of LivingEntity in net.minecraft.world.explosion
Methods in net.minecraft.world.explosion that return LivingEntityModifier and TypeMethodDescriptionExplosion.getCausingEntity()static @Nullable LivingEntityExplosion.getCausingEntity(@Nullable Entity entity) ExplosionImpl.getCausingEntity()