Uses of Class
net.minecraft.world.entity.Entity
Packages that use Entity
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of Entity in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon with type parameters of type EntityModifier and TypeFieldDescriptionEntitySubPredicates.EntityHolderVariantPredicateType.getter
EntitySubPredicates.EntityVariantPredicateType.getter
Methods in net.minecraft.advancements.critereon with parameters of type EntityModifier and TypeMethodDescriptionstatic LootContext
EntityPredicate.createContext
(ServerPlayer player, Entity entity) static CompoundTag
NbtPredicate.getEntityTagToCompare
(Entity entity) boolean
boolean
boolean
EntityPredicate.matches
(ServerLevel level, Vec3 position, Entity entity) boolean
EntityPredicate.matches
(ServerPlayer player, Entity entity) boolean
EntitySubPredicate.matches
(Entity entity, ServerLevel level, Vec3 position) boolean
EntitySubPredicates.EntityHolderVariantPredicateType.Instance.matches
(Entity entity, ServerLevel level, Vec3 position) boolean
EntitySubPredicates.EntityVariantPredicateType.Instance.matches
(Entity entity, ServerLevel level, Vec3 position) boolean
FishingHookPredicate.matches
(Entity entity, ServerLevel level, Vec3 position) boolean
LightningBoltPredicate.matches
(Entity entity, ServerLevel level, Vec3 position) boolean
boolean
boolean
PlayerPredicate.matches
(Entity p_entity, ServerLevel level, Vec3 position) boolean
RaiderPredicate.matches
(Entity entity, ServerLevel level, Vec3 position) boolean
SlimePredicate.matches
(Entity entity, ServerLevel level, Vec3 position) boolean
private static boolean
SlotsPredicate.matchSlots
(Entity entity, ItemPredicate predicate, it.unimi.dsi.fastutil.ints.IntList slots) void
EffectsChangedTrigger.trigger
(ServerPlayer player, Entity source) void
FallAfterExplosionTrigger.trigger
(ServerPlayer player, Vec3 pos, Entity entity) void
KilledTrigger.trigger
(ServerPlayer player, Entity entity, DamageSource source) void
PickedUpItemTrigger.trigger
(ServerPlayer player, ItemStack stack, Entity entity) void
PlayerHurtEntityTrigger.trigger
(ServerPlayer player, Entity entity, DamageSource source, float amountDealt, float amountTaken, boolean blocked) void
PlayerInteractTrigger.trigger
(ServerPlayer player, ItemStack item, Entity entity) void
SummonedEntityTrigger.trigger
(ServerPlayer player, Entity entity) void
TargetBlockTrigger.trigger
(ServerPlayer player, Entity projectile, Vec3 vector, int signalStrength) Method parameters in net.minecraft.advancements.critereon with type arguments of type EntityModifier and TypeMethodDescriptionstatic <V> EntitySubPredicates.EntityHolderVariantPredicateType
<V> EntitySubPredicates.EntityHolderVariantPredicateType.create
(ResourceKey<? extends Registry<V>> registryKey, Function<Entity, Optional<Holder<V>>> getter) static <V> EntitySubPredicates.EntityVariantPredicateType
<V> EntitySubPredicates.EntityVariantPredicateType.create
(com.mojang.serialization.Codec<V> codec, Function<Entity, Optional<V>> getter) static <V> EntitySubPredicates.EntityVariantPredicateType
<V> EntitySubPredicates.EntityVariantPredicateType.create
(Registry<V> variantRegistry, Function<Entity, Optional<V>> getter) void
ChanneledLightningTrigger.trigger
(ServerPlayer player, Collection<? extends Entity> entityTriggered) void
KilledByCrossbowTrigger.trigger
(ServerPlayer player, Collection<Entity> entities) void
LightningStrikeTrigger.trigger
(ServerPlayer player, LightningBolt lightning, List<Entity> nearbyEntities) Constructor parameters in net.minecraft.advancements.critereon with type arguments of type EntityModifierConstructorDescriptionEntityHolderVariantPredicateType
(ResourceKey<? extends Registry<V>> registryKey, Function<Entity, Optional<Holder<V>>> getter) EntityVariantPredicateType
(com.mojang.serialization.Codec<V> codec, Function<Entity, Optional<V>> getter) -
Uses of Entity in net.minecraft.client
Fields in net.minecraft.client declared as EntityModifier and TypeFieldDescriptionMinecraft.cameraEntity
Minecraft.crosshairPickEntity
private Entity
Camera.entity
Methods in net.minecraft.client that return EntityMethods in net.minecraft.client with parameters of type EntityModifier and TypeMethodDescriptionvoid
Minecraft.setCameraEntity
(Entity viewingEntity) void
Camera.setup
(BlockGetter level, Entity entity, boolean detached, boolean thirdPersonReverse, float partialTick) boolean
Minecraft.shouldEntityAppearGlowing
(Entity entity) -
Uses of Entity in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type EntityModifier and TypeMethodDescriptionprivate void
Gui.renderVignette
(GuiGraphics guiGraphics, Entity entity) Renders the vignette effect on the screen based on the distance to the world border and the entity's position.private void
Gui.updateVignetteBrightness
(Entity entity) Updates the brightness of the vignette effect based on the brightness of the given entity's position. -
Uses of Entity in net.minecraft.client.model
Classes in net.minecraft.client.model with type parameters of type EntityModifier and TypeClassDescriptionclass
AgeableHierarchicalModel<E extends Entity>
class
AgeableListModel<E extends Entity>
class
BlazeModel<T extends Entity>
class
ChickenModel<T extends Entity>
class
class
ColorableAgeableListModel<E extends Entity>
class
ColorableHierarchicalModel<E extends Entity>
class
class
CreeperModel<T extends Entity>
class
DolphinModel<T extends Entity>
class
EndermiteModel<T extends Entity>
class
EntityModel<T extends Entity>
class
EvokerFangsModel<T extends Entity>
class
GhastModel<T extends Entity>
class
HierarchicalModel<E extends Entity>
class
LeashKnotModel<T extends Entity>
class
class
LlamaSpitModel<T extends Entity>
class
MinecartModel<T extends Entity>
class
OcelotModel<T extends Entity>
class
class
PufferfishBigModel<T extends Entity>
class
PufferfishMidModel<T extends Entity>
class
PufferfishSmallModel<T extends Entity>
class
QuadrupedModel<T extends Entity>
class
SalmonModel<T extends Entity>
class
ShulkerBulletModel<T extends Entity>
class
SilverfishModel<T extends Entity>
class
SlimeModel<T extends Entity>
class
SnowGolemModel<T extends Entity>
class
SpiderModel<T extends Entity>
class
SquidModel<T extends Entity>
class
TropicalFishModelA<T extends Entity>
class
TropicalFishModelB<T extends Entity>
class
VillagerModel<T extends Entity>
class
WitchModel<T extends Entity>
-
Uses of Entity in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer with type parameters of type EntityModifier and TypeFieldDescriptionprivate final TransientEntitySectionManager
<Entity> ClientLevel.entityStorage
Methods in net.minecraft.client.multiplayer that return EntityModifier and TypeMethodDescriptionprivate Entity
ClientPacketListener.createEntityFromPacket
(ClientboundAddEntityPacket packet) ClientLevel.getEntity
(int id) Returns the Entity with the given ID, or null if it doesn't exist in this World.Methods in net.minecraft.client.multiplayer that return types with arguments of type EntityModifier and TypeMethodDescriptionClientLevel.entitiesForRendering()
protected LevelEntityGetter
<Entity> ClientLevel.getEntities()
Methods in net.minecraft.client.multiplayer with parameters of type EntityModifier and TypeMethodDescriptionvoid
void
Attacks an entityMultiPlayerGameMode.interact
(Player player, Entity target, InteractionHand hand) Handles right-clicking an entity, sends a packet to the server.MultiPlayerGameMode.interactAt
(Player player, Entity target, EntityHitResult ray, InteractionHand hand) Handles right-clicking an entity from the entities side, sends a packet to the server.void
void
ClientLevel.EntityCallbacks.onDestroyed
(Entity p_171700_) void
ClientLevel.EntityCallbacks.onSectionChange
(Entity p_233660_) void
ClientLevel.EntityCallbacks.onTickingEnd
(Entity p_171708_) void
ClientLevel.EntityCallbacks.onTickingStart
(Entity p_171704_) void
ClientLevel.EntityCallbacks.onTrackingEnd
(Entity p_171716_) void
ClientLevel.EntityCallbacks.onTrackingStart
(Entity p_171712_) void
ClientLevel.playLocalSound
(Entity entity, SoundEvent sound, SoundSource category, float volume, float pitch) void
ClientLevel.playSeededSound
(Player player, Entity entity, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) private void
ClientPacketListener.postAddEntitySoundInstance
(Entity entity) boolean
ClientLevel.shouldTickDeath
(Entity entity) void
ClientLevel.tickNonPassenger
(Entity p_entity) private void
ClientLevel.tickPassenger
(Entity mount, Entity rider) -
Uses of Entity in net.minecraft.client.particle
Fields in net.minecraft.client.particle declared as EntityModifier and TypeFieldDescriptionprivate final Entity
TrackingEmitter.entity
private final Entity
ItemPickupParticle.itemEntity
private final Entity
ItemPickupParticle.target
Methods in net.minecraft.client.particle that return EntityMethods in net.minecraft.client.particle with parameters of type EntityModifier and TypeMethodDescriptionvoid
ParticleEngine.createTrackingEmitter
(Entity entity, ParticleOptions particleData) void
ParticleEngine.createTrackingEmitter
(Entity entity, ParticleOptions data, int lifetime) private Entity
ItemPickupParticle.getSafeCopy
(Entity entity) Constructors in net.minecraft.client.particle with parameters of type EntityModifierConstructorDescriptionItemPickupParticle
(EntityRenderDispatcher entityRenderDispatcher, RenderBuffers buffers, ClientLevel level, Entity itemEntity, Entity target) private
ItemPickupParticle
(EntityRenderDispatcher entityRenderDispatcher, RenderBuffers buffers, ClientLevel level, Entity itemEntity, Entity target, Vec3 speedVector) TrackingEmitter
(ClientLevel level, Entity entity, ParticleOptions particleType) TrackingEmitter
(ClientLevel level, Entity entity, ParticleOptions particleType, int lifetime) private
TrackingEmitter
(ClientLevel level, Entity entity, ParticleOptions particleType, int lifetime, Vec3 speedVector) -
Uses of Entity in net.minecraft.client.player
Subclasses of Entity in net.minecraft.client.playerMethods in net.minecraft.client.player with parameters of type EntityModifier and TypeMethodDescriptionvoid
Called when the entity is dealt a critical hit.void
Called when the entity hit is dealt extra melee damage due to an enchantment.boolean
LocalPlayer.startRiding
(Entity entity, boolean force) private boolean
LocalPlayer.vehicleCanSprint
(Entity vehicle) -
Uses of Entity in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type EntityModifier and TypeMethodDescriptionvoid
GameRenderer.checkEntityPostEffect
(Entity entity) What shader to use when spectating this entityprivate static FogRenderer.MobEffectFogFunction
FogRenderer.getPriorityFogFunction
(Entity entity, float partialTick) private HitResult
GameRenderer.pick
(Entity entity, double blockInteractionRange, double entityInteractionRange, float partialTick) private void
LevelRenderer.renderEntity
(Entity entity, double camX, double camY, double camZ, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource) private void
LevelRenderer.renderHitOutline
(PoseStack poseStack, VertexConsumer consumer, Entity entity, double camX, double camY, double camZ, BlockPos pos, BlockState state) -
Uses of Entity in net.minecraft.client.renderer.blockentity
Methods in net.minecraft.client.renderer.blockentity with parameters of type EntityModifier and TypeMethodDescriptionstatic void
SpawnerRenderer.renderEntityInSpawner
(float partialTick, PoseStack poseStack, MultiBufferSource buffer, int packedLight, Entity entity, EntityRenderDispatcher entityRenderer, double oSpin, double spin) -
Uses of Entity in net.minecraft.client.renderer.debug
Fields in net.minecraft.client.renderer.debug with type parameters of type EntityMethods in net.minecraft.client.renderer.debug that return types with arguments of type EntityMethods in net.minecraft.client.renderer.debug with parameters of type EntityModifier and TypeMethodDescriptionprivate void
SupportBlockRenderer.drawHighlights
(PoseStack poseStack, MultiBufferSource buffer, double camX, double camY, double camZ, Entity entity, DoubleSupplier biasGetter, float red, float green, float blue) private double
DebugRenderer.getTargetedEntity
(Entity entity, int distance) -
Uses of Entity in net.minecraft.client.renderer.entity
Classes in net.minecraft.client.renderer.entity with type parameters of type EntityModifier and TypeClassDescriptionclass
EntityRenderer<T extends Entity>
interface
EntityRendererProvider<T extends Entity>
class
NoopRenderer<T extends Entity>
interface
RenderLayerParent<T extends Entity,
M extends EntityModel<T>> class
ThrownItemRenderer<T extends Entity & ItemSupplier>
Fields in net.minecraft.client.renderer.entity declared as EntityMethods in net.minecraft.client.renderer.entity with type parameters of type EntityModifier and TypeMethodDescription<E extends Entity>
intEntityRenderDispatcher.getPackedLightCoords
(E entity, float partialTicks) <T extends Entity>
EntityRenderer<? super T> EntityRenderDispatcher.getRenderer
(T entity) static <T extends Entity>
voidEntityRenderers.register
(EntityType<? extends T> entityType, EntityRendererProvider<T> provider) <E extends Entity>
voidEntityRenderDispatcher.render
(E entity, double x, double y, double z, float rotationYaw, float partialTicks, PoseStack poseStack, MultiBufferSource buffer, int packedLight) private <E extends Entity>
voidEntityRenderer.renderLeash
(T entity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, E leashHolder) <E extends Entity>
booleanEntityRenderDispatcher.shouldRender
(E entity, Frustum frustum, double camX, double camY, double camZ) Methods in net.minecraft.client.renderer.entity that return EntityModifier and TypeMethodDescriptionprivate static Entity
EntityRenderDispatcher.getServerSideEntity
(Entity entity) Methods in net.minecraft.client.renderer.entity with parameters of type EntityModifier and TypeMethodDescriptiondouble
EntityRenderDispatcher.distanceToSqr
(Entity entity) private static Entity
EntityRenderDispatcher.getServerSideEntity
(Entity entity) ThrownItemRenderer.getTextureLocation
(Entity entity) Returns the location of an entity's texture.void
private void
EntityRenderDispatcher.renderFlame
(PoseStack poseStack, MultiBufferSource buffer, Entity entity, org.joml.Quaternionf quaternion) private static void
EntityRenderDispatcher.renderHitbox
(PoseStack poseStack, VertexConsumer buffer, Entity p_entity, float red, float green, float blue, float alpha) private static void
EntityRenderDispatcher.renderServerSideHitbox
(PoseStack poseStack, Entity p_entity, MultiBufferSource bufferSource) private static void
EntityRenderDispatcher.renderShadow
(PoseStack poseStack, MultiBufferSource buffer, Entity entity, float weight, float partialTicks, LevelReader level, float size) -
Uses of Entity in net.minecraft.client.renderer.entity.layers
Classes in net.minecraft.client.renderer.entity.layers with type parameters of type EntityModifier and TypeClassDescriptionclass
EnergySwirlLayer<T extends Entity & PowerableMob,
M extends EntityModel<T>> class
EyesLayer<T extends Entity,
M extends EntityModel<T>> class
RenderLayer<T extends Entity,
M extends EntityModel<T>> class
SaddleLayer<T extends Entity & Saddleable,
M extends EntityModel<T>> class
SpiderEyesLayer<T extends Entity,
M extends SpiderModel<T>> Methods in net.minecraft.client.renderer.entity.layers with parameters of type EntityModifier and TypeMethodDescriptionprotected void
ArrowLayer.renderStuckItem
(PoseStack poseStack, MultiBufferSource buffer, int packedLight, Entity entity, float x, float y, float z, float partialTick) protected void
BeeStingerLayer.renderStuckItem
(PoseStack poseStack, MultiBufferSource buffer, int packedLight, Entity entity, float x, float y, float z, float partialTick) protected abstract void
StuckInBodyLayer.renderStuckItem
(PoseStack poseStack, MultiBufferSource buffer, int packedLight, Entity entity, float x, float y, float z, float partialTick) -
Uses of Entity in net.minecraft.client.renderer.item
Methods in net.minecraft.client.renderer.item with parameters of type EntityModifier and TypeMethodDescriptionprivate double
CompassItemPropertyFunction.getAngleFromEntityToPos
(Entity entity, BlockPos pos) private float
CompassItemPropertyFunction.getCompassRotation
(ItemStack stack, ClientLevel level, int seed, Entity entity) CompassItemPropertyFunction.CompassTarget.getPos
(ClientLevel level, ItemStack stack, Entity entity) private float
CompassItemPropertyFunction.getRotationTowardsCompassTarget
(Entity entity, long ticks, BlockPos pos) private double
CompassItemPropertyFunction.getWrappedVisualRotationY
(Entity entity) private boolean
CompassItemPropertyFunction.isValidCompassTargetPos
(Entity entity, GlobalPos pos) private ClientLevel
CompassItemPropertyFunction.tryFetchLevelIfMissing
(Entity entity, ClientLevel level) -
Uses of Entity in net.minecraft.client.resources.sounds
Fields in net.minecraft.client.resources.sounds declared as EntityConstructors in net.minecraft.client.resources.sounds with parameters of type EntityModifierConstructorDescriptionEntityBoundSoundInstance
(SoundEvent soundEvent, SoundSource source, float volume, float pitch, Entity entity, long seed) -
Uses of Entity in net.minecraft.commands
Fields in net.minecraft.commands declared as EntityMethods in net.minecraft.commands that return EntityModifier and TypeMethodDescriptionCommandSourceStack.getEntity()
CommandSourceStack.getEntityOrException()
Methods in net.minecraft.commands with parameters of type EntityModifier and TypeMethodDescriptionCommandSourceStack.facing
(Entity entity, EntityAnchorArgument.Anchor anchor) CommandSourceStack.withEntity
(Entity entity) Constructors in net.minecraft.commands with parameters of type EntityModifierConstructorDescriptionCommandSourceStack
(CommandSource source, Vec3 worldPosition, Vec2 rotation, ServerLevel level, int permissionLevel, String textName, Component displayName, MinecraftServer server, Entity entity) protected
CommandSourceStack
(CommandSource source, Vec3 worldPosition, Vec2 rotation, ServerLevel level, int permissionLevel, String textName, Component displayName, MinecraftServer server, Entity entity, boolean silent, CommandResultCallback resultCallback, EntityAnchorArgument.Anchor anchor, CommandSigningContext signingContext, TaskChainer chatMessageChainer) -
Uses of Entity in net.minecraft.commands.arguments
Fields in net.minecraft.commands.arguments with type parameters of type EntityModifier and TypeFieldDescriptionprivate final BiFunction
<Vec3, Entity, Vec3> EntityAnchorArgument.Anchor.transform
Methods in net.minecraft.commands.arguments that return EntityModifier and TypeMethodDescriptionstatic Entity
EntityArgument.getEntity
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) Methods in net.minecraft.commands.arguments that return types with arguments of type EntityModifier and TypeMethodDescriptionstatic Collection
<? extends Entity> EntityArgument.getEntities
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) static Collection
<? extends Entity> EntityArgument.getOptionalEntities
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) Methods in net.minecraft.commands.arguments with parameters of type EntityModifier and TypeMethodDescriptionGets the coordinate based on the given entity's position.Constructor parameters in net.minecraft.commands.arguments with type arguments of type Entity -
Uses of Entity in net.minecraft.commands.arguments.selector
Fields in net.minecraft.commands.arguments.selector with type parameters of type EntityModifier and TypeFieldDescriptionprivate static final EntityTypeTest
<Entity, ?> EntitySelector.ANY_TYPE
EntitySelector.contextFreePredicates
private final BiConsumer
<Vec3, List<? extends Entity>> EntitySelector.order
private BiConsumer
<Vec3, List<? extends Entity>> EntitySelectorParser.order
static final BiConsumer
<Vec3, List<? extends Entity>> EntitySelector.ORDER_ARBITRARY
static final BiConsumer
<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_FURTHEST
static final BiConsumer
<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_NEAREST
static final BiConsumer
<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_RANDOM
EntitySelectorParser.predicates
private final EntityTypeTest
<Entity, ?> EntitySelector.type
Methods in net.minecraft.commands.arguments.selector with type parameters of type EntityMethods in net.minecraft.commands.arguments.selector that return EntityMethods in net.minecraft.commands.arguments.selector that return types with arguments of type EntityModifier and TypeMethodDescriptionEntitySelectorParser.createRotationPredicate
(WrappedMinMaxBounds angleBounds, ToDoubleFunction<Entity> angleFunction) EntitySelector.findEntities
(CommandSourceStack source) BiConsumer
<Vec3, List<? extends Entity>> EntitySelectorParser.getOrder()
EntitySelector.getPredicate
(Vec3 pos, AABB box, FeatureFlagSet enabledFeatures) Method parameters in net.minecraft.commands.arguments.selector with type arguments of type EntityModifier and TypeMethodDescriptionprivate void
EntitySelector.addEntities
(List<Entity> entities, ServerLevel level, AABB box, Predicate<Entity> predicate) private void
EntitySelector.addEntities
(List<Entity> entities, ServerLevel level, AABB box, Predicate<Entity> predicate) void
EntitySelectorParser.addPredicate
(Predicate<Entity> predicate) EntitySelectorParser.createRotationPredicate
(WrappedMinMaxBounds angleBounds, ToDoubleFunction<Entity> angleFunction) static Component
void
EntitySelectorParser.setOrder
(BiConsumer<Vec3, List<? extends Entity>> order) Constructor parameters in net.minecraft.commands.arguments.selector with type arguments of type EntityModifierConstructorDescriptionEntitySelector
(int maxResults, boolean includesEntities, boolean worldLimited, List<Predicate<Entity>> contextFreePredicates, MinMaxBounds.Doubles range, Function<Vec3, Vec3> position, AABB aabb, BiConsumer<Vec3, List<? extends Entity>> order, boolean currentEntity, String playerName, UUID entityUUID, EntityType<?> type, boolean usesSelector) EntitySelector
(int maxResults, boolean includesEntities, boolean worldLimited, List<Predicate<Entity>> contextFreePredicates, MinMaxBounds.Doubles range, Function<Vec3, Vec3> position, AABB aabb, BiConsumer<Vec3, List<? extends Entity>> order, boolean currentEntity, String playerName, UUID entityUUID, EntityType<?> type, boolean usesSelector) -
Uses of Entity in net.minecraft.core
Methods in net.minecraft.core with parameters of type EntityModifier and TypeMethodDescriptionstatic Direction
Direction.getFacingAxis
(Entity entity, Direction.Axis axis) static Direction[]
Direction.orderedByNearest
(Entity entity) Gets theDirection
values for the provided entity's looking direction. -
Uses of Entity in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with type parameters of type EntityModifier and TypeMethodDescription<E extends Entity,
T>
voidGameTestHelper.assertEntityData
(BlockPos pos, EntityType<E> type, Function<? super E, T> entityDataGetter, T testEntityData) <E extends Entity & InventoryCarrier>
voidGameTestHelper.assertEntityInventoryContains
(BlockPos pos, EntityType<E> entityType, Item item) <E extends Entity,
T>
voidGameTestHelper.assertEntityProperty
(E entity, Function<E, T> entityPropertyGetter, String valueName, T testEntityProperty) <E extends Entity>
voidGameTestHelper.assertEntityProperty
(E entity, Predicate<E> predicate, String name) <E extends Entity>
EGameTestHelper.findClosestEntity
(EntityType<E> type, int x, int y, int z, double radius) GameTestHelper.findEntities
(EntityType<E> type, int x, int y, int z, double radius) GameTestHelper.findEntities
(EntityType<E> type, Vec3 pos, double radius) <E extends Entity>
EGameTestHelper.findOneEntity
(EntityType<E> type) GameTestHelper.getEntities
(EntityType<T> entityType) GameTestHelper.getEntities
(EntityType<T> entityType, BlockPos pos, double radius) <E extends Entity>
EGameTestHelper.spawn
(EntityType<E> type, float x, float y, float z) <E extends Entity>
EGameTestHelper.spawn
(EntityType<E> type, int x, int y, int z) <E extends Entity>
EGameTestHelper.spawn
(EntityType<E> type, BlockPos pos) <E extends Entity>
EGameTestHelper.spawn
(EntityType<E> type, Vec3 pos) <E extends Entity,
T>
voidGameTestHelper.succeedWhenEntityData
(BlockPos pos, EntityType<E> type, Function<E, T> entityDataGetter, T testEntityData) Methods in net.minecraft.gametest.framework with parameters of type EntityModifier and TypeMethodDescriptionvoid
GameTestHelper.assertEntityInstancePresent
(Entity entity, int x, int y, int z) void
GameTestHelper.assertEntityInstancePresent
(Entity entity, BlockPos pos) void
GameTestHelper.assertEntityPosition
(Entity entity, AABB box, String exceptionMessage) void
StructureUtils.lookedAtStructureBlockPos
(BlockPos pos, Entity entity, ServerLevel level) -
Uses of Entity in net.minecraft.network.chat
Methods in net.minecraft.network.chat with parameters of type EntityModifier and TypeMethodDescriptionstatic ChatType.Bound
ChatType.bind
(ResourceKey<ChatType> chatTypeKey, Entity entity) default MutableComponent
ComponentContents.resolve
(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) private static Style
ComponentUtils.resolveStyle
(CommandSourceStack commandSourceStack, Style style, Entity entity, int recursionDepth) static Optional
<MutableComponent> ComponentUtils.updateForEntity
(CommandSourceStack commandSourceStack, Optional<Component> optionalComponent, Entity entity, int recursionDepth) static MutableComponent
ComponentUtils.updateForEntity
(CommandSourceStack commandSourceStack, Component p_component, Entity entity, int recursionDepth) -
Uses of Entity in net.minecraft.network.chat.contents
Methods in net.minecraft.network.chat.contents with parameters of type EntityModifier and TypeMethodDescriptionNbtContents.resolve
(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) ScoreContents.resolve
(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) SelectorContents.resolve
(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) TranslatableContents.resolve
(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) -
Uses of Entity in net.minecraft.network.protocol.game
Methods in net.minecraft.network.protocol.game that return EntityModifier and TypeMethodDescriptionServerboundTeleportToEntityPacket.getEntity
(ServerLevel level) ServerboundInteractPacket.getTarget
(ServerLevel level) Methods in net.minecraft.network.protocol.game with parameters of type EntityModifier and TypeMethodDescriptionstatic ServerboundInteractPacket
ServerboundInteractPacket.createAttackPacket
(Entity entity, boolean usingSecondaryAction) static ServerboundInteractPacket
ServerboundInteractPacket.createInteractionPacket
(Entity entity, boolean usingSecondaryAction, InteractionHand hand) static ServerboundInteractPacket
ServerboundInteractPacket.createInteractionPacket
(Entity entity, boolean usingSecondaryAction, InteractionHand hand, Vec3 interactionLocation) static String
DebugEntityNameGenerator.getEntityName
(Entity entity) Constructors in net.minecraft.network.protocol.game with parameters of type EntityModifierConstructorDescriptionClientboundAddEntityPacket
(Entity entity, int data, BlockPos pos) ClientboundAddEntityPacket
(Entity entity, ServerEntity serverEntity) ClientboundAddEntityPacket
(Entity entity, ServerEntity serverEntity, int data) ClientboundAnimatePacket
(Entity entity, int action) ClientboundDamageEventPacket
(Entity p_270474_, DamageSource p_270781_) ClientboundEntityEventPacket
(Entity entity, byte eventId) ClientboundMoveVehiclePacket
(Entity vehicle) ClientboundPlayerLookAtPacket
(EntityAnchorArgument.Anchor fromAnchor, Entity entity, EntityAnchorArgument.Anchor toAnchor) ClientboundRotateHeadPacket
(Entity entity, byte yHeadRot) ClientboundSetCameraPacket
(Entity cameraEntity) ClientboundSetEntityLinkPacket
(Entity source, Entity destination) ClientboundSetPassengersPacket
(Entity vehicle) ClientboundSoundEntityPacket
(Holder<SoundEvent> sound, SoundSource source, Entity entity, float volume, float pitch, long seed) ServerboundMoveVehiclePacket
(Entity vehicle) ServerboundPlayerCommandPacket
(Entity entity, ServerboundPlayerCommandPacket.Action action, int data) -
Uses of Entity in net.minecraft.server.commands
Fields in net.minecraft.server.commands declared as EntityModifier and TypeFieldDescriptionprivate final Entity
TeleportCommand.LookAtEntity.entity
The field for theentity
record component.Methods in net.minecraft.server.commands that return EntityModifier and TypeMethodDescriptionstatic Entity
SummonCommand.createEntity
(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag tag, boolean randomizeProperties) TeleportCommand.LookAtEntity.entity()
Returns the value of theentity
record component.Methods in net.minecraft.server.commands with parameters of type EntityModifier and TypeMethodDescriptionprivate static int
AttributeCommand.addModifier
(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, ResourceLocation id, double amount, AttributeModifier.Operation operation) private static int
DamageCommand.damage
(CommandSourceStack source, Entity target, float amount, DamageSource damageType) private static int
RideCommand.dismount
(CommandSourceStack source, Entity target) private static int
LootCommand.dropKillLoot
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Entity p_entity, LootCommand.DropConsumer dropConsumer) private static int
ItemCommands.entityToBlock
(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot) private static int
ItemCommands.entityToBlock
(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, Holder<LootItemFunction> modifier) private static int
ItemCommands.entityToEntities
(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) private static int
ItemCommands.entityToEntities
(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, Holder<LootItemFunction> modifier) private static int
AttributeCommand.getAttributeBase
(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, double scale) private static AttributeInstance
AttributeCommand.getAttributeInstance
(Entity entity, Holder<Attribute> attribute) private static int
AttributeCommand.getAttributeModifier
(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, ResourceLocation id, double scale) private static int
AttributeCommand.getAttributeValue
(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, double scale) private static ItemStack
ItemCommands.getEntityItem
(Entity entity, int slot) private static LivingEntity
AttributeCommand.getEntityWithAttribute
(Entity entity, Holder<Attribute> attribute) private static LivingEntity
AttributeCommand.getLivingEntity
(Entity target) private static int
RideCommand.mount
(CommandSourceStack source, Entity target, Entity vehicle) void
TeleportCommand.LookAt.perform
(CommandSourceStack source, Entity entity) void
TeleportCommand.LookAtEntity.perform
(CommandSourceStack p_326864_, Entity p_326807_) void
TeleportCommand.LookAtPosition.perform
(CommandSourceStack p_326870_, Entity p_326894_) private static void
TeleportCommand.performTeleport
(CommandSourceStack source, Entity entity, ServerLevel level, double x, double y, double z, Set<RelativeMovement> relativeList, float yaw, float pitch, TeleportCommand.LookAt facing) private static int
AttributeCommand.removeModifier
(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, ResourceLocation id) private static void
TeamMsgCommand.sendMessage
(CommandSourceStack source, Entity sender, PlayerTeam team, List<ServerPlayer> teamMembers, PlayerChatMessage chatMessage) private static int
AttributeCommand.setAttributeBase
(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, double value) private static void
LootCommand.setSlots
(Entity target, List<ItemStack> items, int startSlot, int numSlots, List<ItemStack> setItems) private static int
SpectateCommand.spectate
(CommandSourceStack source, Entity target, ServerPlayer player) private static int
TeleportCommand.teleportToEntity
(CommandSourceStack source, Collection<? extends Entity> targets, Entity destination) Method parameters in net.minecraft.server.commands with type arguments of type EntityModifier and TypeMethodDescriptionprivate static int
TagCommand.addTag
(CommandSourceStack source, Collection<? extends Entity> entities, String tagName) private static int
ItemCommands.blockToEntities
(CommandSourceStack source, BlockPos pos, int sourceSlot, Collection<? extends Entity> targets, int slot) private static int
ItemCommands.blockToEntities
(CommandSourceStack source, BlockPos pos, int sourceSlot, Collection<? extends Entity> targets, int slot, Holder<LootItemFunction> modifier) private static int
EffectCommands.clearEffect
(CommandSourceStack source, Collection<? extends Entity> targets, Holder<MobEffect> effect) private static int
EffectCommands.clearEffects
(CommandSourceStack source, Collection<? extends Entity> targets) private static int
ExecuteCommand.countItems
(Iterable<? extends Entity> targets, SlotRange slotRange, Predicate<ItemStack> filter) private static int
EnchantCommand.enchant
(CommandSourceStack source, Collection<? extends Entity> targets, Holder<Enchantment> p_enchantment, int level) private static int
LootCommand.entityReplace
(Collection<? extends Entity> targets, int startSlot, int numSlots, List<ItemStack> items, LootCommand.Callback callback) private static int
ItemCommands.entityToEntities
(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) private static int
ItemCommands.entityToEntities
(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, Holder<LootItemFunction> modifier) private static com.mojang.brigadier.RedirectModifier
<CommandSourceStack> ExecuteCommand.expandOneToManyEntityRelation
(Function<Entity, Stream<Entity>> relation) private static com.mojang.brigadier.RedirectModifier
<CommandSourceStack> ExecuteCommand.expandOneToManyEntityRelation
(Function<Entity, Stream<Entity>> relation) private static com.mojang.brigadier.RedirectModifier
<CommandSourceStack> ExecuteCommand.expandOneToOneEntityRelation
(Function<Entity, Optional<Entity>> relation) private static com.mojang.brigadier.RedirectModifier
<CommandSourceStack> ExecuteCommand.expandOneToOneEntityRelation
(Function<Entity, Optional<Entity>> relation) private static int
SpreadPlayersCommand.getNumberOfTeams
(Collection<? extends Entity> entities) Gets the number of unique teams for the given list of entities.private static Collection
<String> TagCommand.getTags
(Collection<? extends Entity> entities) Gets all tags that are present on at least one of the given entities.private static int
EffectCommands.giveEffect
(CommandSourceStack source, Collection<? extends Entity> targets, Holder<MobEffect> effect, Integer seconds, int amplifier, boolean showParticles) private static int
KillCommand.kill
(CommandSourceStack source, Collection<? extends Entity> targets) private static int
TagCommand.listTags
(CommandSourceStack source, Collection<? extends Entity> entities) private static int
ItemCommands.modifyEntityItem
(CommandSourceStack source, Collection<? extends Entity> targets, int sourceSlot, Holder<LootItemFunction> modifer) private static int
TagCommand.removeTag
(CommandSourceStack source, Collection<? extends Entity> entities, String tagName) private static int
ItemCommands.setEntityItem
(CommandSourceStack source, Collection<? extends Entity> targets, int slot, ItemStack item) private static double
SpreadPlayersCommand.setPlayerPositions
(Collection<? extends Entity> targets, ServerLevel level, SpreadPlayersCommand.Position[] positions, int maxHeight, boolean respectTeams) private static int
SpreadPlayersCommand.spreadPlayers
(CommandSourceStack source, Vec2 center, float spreadDistance, float maxRange, int maxHeight, boolean respectTeams, Collection<? extends Entity> targets) private static int
TeleportCommand.teleportToEntity
(CommandSourceStack source, Collection<? extends Entity> targets, Entity destination) private static int
TeleportCommand.teleportToPos
(CommandSourceStack source, Collection<? extends Entity> targets, ServerLevel level, Coordinates position, Coordinates rotation, TeleportCommand.LookAt facing) Constructors in net.minecraft.server.commands with parameters of type EntityModifierConstructorDescription(package private)
LookAtEntity
(Entity entity, EntityAnchorArgument.Anchor anchor) Creates an instance of aLookAtEntity
record class. -
Uses of Entity in net.minecraft.server.commands.data
Fields in net.minecraft.server.commands.data declared as EntityConstructors in net.minecraft.server.commands.data with parameters of type Entity -
Uses of Entity in net.minecraft.server.level
Subclasses of Entity in net.minecraft.server.levelFields in net.minecraft.server.level declared as EntityModifier and TypeFieldDescriptionprivate Entity
ServerPlayer.camera
The entity the player is currently spectating through.(package private) final Entity
ChunkMap.TrackedEntity.entity
private final Entity
ServerEntity.entity
Fields in net.minecraft.server.level with type parameters of type EntityModifier and TypeFieldDescriptionprivate final PersistentEntitySectionManager
<Entity> ServerLevel.entityManager
ServerEntity.lastPassengers
Methods in net.minecraft.server.level with type parameters of type EntityModifier and TypeMethodDescriptionServerLevel.getEntities
(EntityTypeTest<Entity, T> typeTest, Predicate<? super T> predicate) <T extends Entity>
voidServerLevel.getEntities
(EntityTypeTest<Entity, T> typeTest, Predicate<? super T> predicate, List<? super T> output) <T extends Entity>
voidServerLevel.getEntities
(EntityTypeTest<Entity, T> typeTest, Predicate<? super T> predicate, List<? super T> output, int maxResults) WorldGenRegion.getEntities
(EntityTypeTest<Entity, T> entityTypeTest, AABB bounds, Predicate<? super T> predicate) Methods in net.minecraft.server.level that return EntityModifier and TypeMethodDescriptionServerPlayer.changeDimension
(DimensionTransition transition) ServerPlayer.getCamera()
ServerLevel.getEntity
(int id) Returns the Entity with the given ID, or null if it doesn't exist in this World.ServerLevel.getEntityOrPart
(int id) Deprecated.Methods in net.minecraft.server.level that return types with arguments of type EntityModifier and TypeMethodDescriptionServerLevel.getAllEntities()
ServerLevel.getEntities()
WorldGenRegion.getEntities
(Entity entity, AABB boundingBox, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.ServerEntity.removedPassengers
(List<Entity> initialPassengers, List<Entity> currentPassengers) Methods in net.minecraft.server.level with parameters of type EntityModifier and TypeMethodDescriptionvoid
ServerLevel.addDuringTeleport
(Entity entity) protected void
void
private boolean
Called when an entity is spawned in the world.boolean
ServerLevel.addFreshEntity
(Entity entity) boolean
WorldGenRegion.addFreshEntity
(Entity entity) boolean
ServerLevel.addWithUUID
(Entity entity) Used for "unnatural" ways of entities appearing in the world, e.g.void
Attacks for the player the targeted entity with the currently equipped item.void
ServerPlayer.awardKillScore
(Entity killed, int scoreValue, DamageSource damageSource) void
void
protected void
ChunkMap.broadcastAndSend
(Entity entity, Packet<?> packet) void
ServerChunkCache.broadcastAndSend
(Entity entity, Packet<?> packet) void
ServerLevel.broadcastDamageEvent
(Entity entity, DamageSource damageSource) void
ServerLevel.broadcastEntityEvent
(Entity entity, byte state) Sends aClientboundEntityEventPacket
to all tracked players of that entity.void
Called when the entity is dealt a critical hit.boolean
WorldGenRegion.destroyBlock
(BlockPos pos, boolean dropBlock, Entity entity, int recursionLeft) private static double
ChunkMap.euclideanDistanceSquared
(ChunkPos chunkPos, Entity entity) Returns the squared distance to the center of the chunk.ServerLevel.explode
(Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, Holder<SoundEvent> explosionSound) protected float
ServerPlayer.getEnchantedDamage
(Entity entity, float damage, DamageSource damageSource) WorldGenRegion.getEntities
(Entity entity, AABB boundingBox, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.void
ServerPlayer.lookAt
(EntityAnchorArgument.Anchor fromAnchor, Entity entity, EntityAnchorArgument.Anchor toAnchor) void
Called when the entity hit is dealt extra melee damage due to an enchantment.void
void
ServerLevel.EntityCallbacks.onDestroyed
(Entity p_143359_) protected void
ServerPlayer.onEffectAdded
(MobEffectInstance effectInstance, Entity entity) protected void
ServerPlayer.onEffectUpdated
(MobEffectInstance effectInstance, boolean forced, Entity entity) void
ServerPlayer.onExplosionHit
(Entity entity) void
ServerLevel.onReputationEvent
(ReputationEventType type, Entity target, ReputationEventHandler host) void
ServerLevel.EntityCallbacks.onSectionChange
(Entity p_215086_) void
ServerLevel.EntityCallbacks.onTickingEnd
(Entity p_143367_) void
ServerLevel.EntityCallbacks.onTickingStart
(Entity p_143363_) void
ServerLevel.EntityCallbacks.onTrackingEnd
(Entity p_143375_) void
ServerLevel.EntityCallbacks.onTrackingStart
(Entity p_143371_) void
ServerLevel.playSeededSound
(Player player, Entity entity, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) protected void
ChunkMap.removeEntity
(Entity entity) void
ServerChunkCache.removeEntity
(Entity entity) void
private boolean
ServerLevel.shouldDiscardEntity
(Entity entity) boolean
ServerPlayer.startRiding
(Entity vehicle, boolean force) void
Called when the entity picks up an item.void
ServerLevel.tickNonPassenger
(Entity p_entity) private void
ServerLevel.tickPassenger
(Entity ridingEntity, Entity passengerEntity) boolean
ServerLevel.tryAddFreshEntityWithPassengers
(Entity entity) Attempts to summon an entity and it's passangers.Method parameters in net.minecraft.server.level with type arguments of type EntityModifier and TypeMethodDescriptionvoid
ServerLevel.addLegacyChunkEntities
(Stream<Entity> entities) void
ServerLevel.addWorldGenChunkEntities
(Stream<Entity> entities) private static void
ServerLevel.dumpEntities
(Writer writer, Iterable<Entity> entities) ServerLevel.getEntities
(EntityTypeTest<Entity, T> typeTest, Predicate<? super T> predicate) <T extends Entity>
voidServerLevel.getEntities
(EntityTypeTest<Entity, T> typeTest, Predicate<? super T> predicate, List<? super T> output) <T extends Entity>
voidServerLevel.getEntities
(EntityTypeTest<Entity, T> typeTest, Predicate<? super T> predicate, List<? super T> output, int maxResults) WorldGenRegion.getEntities
(Entity entity, AABB boundingBox, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.WorldGenRegion.getEntities
(EntityTypeTest<Entity, T> entityTypeTest, AABB bounds, Predicate<? super T> predicate) WorldGenRegion.getNearestPlayer
(double x, double y, double z, double distance, Predicate<Entity> predicate) ServerEntity.removedPassengers
(List<Entity> initialPassengers, List<Entity> currentPassengers) Constructors in net.minecraft.server.level with parameters of type EntityModifierConstructorDescriptionServerEntity
(ServerLevel level, Entity entity, int updateInterval, boolean trackDelta, Consumer<Packet<?>> broadcast) TrackedEntity
(Entity entity, int range, int updateInterval, boolean trackDelta) -
Uses of Entity in net.minecraft.server.network
Fields in net.minecraft.server.network declared as EntityMethods in net.minecraft.server.network with parameters of type EntityModifier and TypeMethodDescriptionprivate int
ServerGamePacketListenerImpl.getMaximumFlyingTicks
(Entity entity) private boolean
ServerGamePacketListenerImpl.noBlocksAround
(Entity entity) private void
ServerGamePacketListenerImpl.resyncPlayerWithVehicle
(Entity vehicle) ServerGamePacketListenerImpl.EntityInteraction.run
(ServerPlayer player, Entity entity, InteractionHand hand) -
Uses of Entity in net.minecraft.world
Methods in net.minecraft.world with parameters of type EntityModifier and TypeMethodDescriptionstatic void
Containers.dropContents
(Level level, Entity entityAt, Container inventory) boolean
TickRateManager.isEntityFrozen
(Entity entity) -
Uses of Entity in net.minecraft.world.damagesource
Fields in net.minecraft.world.damagesource declared as EntityModifier and TypeFieldDescriptionprivate final Entity
DamageSource.causingEntity
private final Entity
DamageSource.directEntity
Methods in net.minecraft.world.damagesource that return EntityMethods in net.minecraft.world.damagesource with parameters of type EntityModifier and TypeMethodDescriptionDamageSources.arrow
(AbstractArrow arrow, Entity shooter) DamageSources.fallingBlock
(Entity entity) DamageSources.fallingStalactite
(Entity entity) DamageSources.fireworks
(FireworkRocketEntity firework, Entity shooter) private static Component
CombatTracker.getDisplayName
(Entity entity) CombatTracker.getFallMessage
(CombatEntry combatEntry, Entity p_entity) private Component
CombatTracker.getMessageForAssistedFall
(Entity entity, Component entityDisplayName, String hasWeaponTranslationKey, String noWeaponTranslationKey) DamageSources.indirectMagic
(Entity causingEntity, Entity directEntity) DamageSources.mobProjectile
(Entity projectile, LivingEntity thrower) DamageSources.source
(ResourceKey<DamageType> damageTypeKey, Entity entity) DamageSources.source
(ResourceKey<DamageType> damageTypeKey, Entity causingEntity, Entity directEntity) DamageSources.spit
(Entity spit, LivingEntity thrower) DamageSources.windCharge
(Entity windCharge, LivingEntity thrower) DamageSources.witherSkull
(WitherSkull witherSkull, Entity shooter) Constructors in net.minecraft.world.damagesource with parameters of type EntityModifierConstructorDescriptionDamageSource
(Holder<DamageType> type, Entity entity) DamageSource
(Holder<DamageType> type, Entity directEntity, Entity causingEntity) DamageSource
(Holder<DamageType> type, Entity directEntity, Entity causingEntity, Vec3 damageSourcePosition) -
Uses of Entity in net.minecraft.world.effect
Methods in net.minecraft.world.effect with parameters of type EntityModifier and TypeMethodDescriptionstatic List
<ServerPlayer> MobEffectUtil.addEffectToPlayersAround
(ServerLevel level, Entity source, Vec3 pos, double radius, MobEffectInstance effect, int duration) void
HealOrHarmMobEffect.applyInstantenousEffect
(Entity source, Entity indirectSource, LivingEntity livingEntity, int amplifier, double health) void
MobEffect.applyInstantenousEffect
(Entity source, Entity indirectSource, LivingEntity livingEntity, int amplifier, double health) -
Uses of Entity in net.minecraft.world.entity
Classes in net.minecraft.world.entity with type parameters of type EntityModifier and TypeClassDescriptionclass
EntityType<T extends Entity>
static class
EntityType.Builder<T extends Entity>
static interface
EntityType.EntityFactory<T extends Entity>
static interface
SpawnPlacements.SpawnPredicate<T extends Entity>
Subclasses of Entity in net.minecraft.world.entityModifier and TypeClassDescriptionclass
class
class
static class
static class
static class
class
class
class
class
class
class
class
class
class
class
class
Fields in net.minecraft.world.entity declared as EntityFields in net.minecraft.world.entity with type parameters of type EntityModifier and TypeFieldDescriptionEntitySelector.CAN_BE_COLLIDED_WITH
Selects entities which are collidable with and aren't spectatorsEntitySelector.CONTAINER_ENTITY_SELECTOR
Selects only entities which are container entitiesEntitySelector.ENTITY_NOT_BEING_RIDDEN
Selects only entities which are neither ridden by anything nor ride on anythingEntitySelector.ENTITY_STILL_ALIVE
Selects only entities which are aliveLightningBolt.hitEntities
EntitySelector.LIVING_ENTITY_STILL_ALIVE
Selects only entities which are LivingEntities and aliveEntitySelector.NO_CREATIVE_OR_SPECTATOR
Selects entities which are neither creative-mode players nor spectator-playersEntitySelector.NO_SPECTATORS
Selects entities which are either not players or players that are not spectatingprivate com.google.common.collect.ImmutableList
<Entity> Entity.passengers
AreaEffectCloud.victims
Methods in net.minecraft.world.entity with type parameters of type EntityModifier and TypeMethodDescriptionEntityType.appendCustomEntityStackConfig
(Consumer<T> consumer, ServerLevel level, ItemStack stack, Player player) EntityType.appendCustomNameConfig
(Consumer<T> consumer, ItemStack stack) EntityType.appendDefaultStackConfig
(Consumer<T> consumer, ServerLevel serverLevel, ItemStack stack, Player player) static <T extends Entity>
booleanSpawnPlacements.checkSpawnRules
(EntityType<T> entityType, ServerLevelAccessor serverLevel, MobSpawnType spawnType, BlockPos pos, RandomSource random) EntityType.createDefaultStackConfig
(ServerLevel serverLevel, ItemStack stack, Player player) static <T extends Entity>
EntityType.Builder<T> EntityType.Builder.createNothing
(MobCategory category) Leashable.dropLeash
(E entity, boolean broadcastPacket, boolean dropItem) Leashable.getLeashHolder
(E p_entity) Leashable.legacyElasticRangeLeashBehaviour
(E entity, Entity leashHolder, float distance) static <T extends Entity>
EntityType.Builder<T> EntityType.Builder.of
(EntityType.EntityFactory<T> factory, MobCategory category) private static <T extends Entity>
EntityType<T> EntityType.register
(String key, EntityType.Builder<T> builder) Leashable.restoreLeashFromSave
(E p_entity, Leashable.LeashData leashData) Leashable.setLeashedTo
(E entity, Entity leashHolder, boolean broadcastPacket) Leashable.tickLeash
(E p_entity) Methods in net.minecraft.world.entity that return EntityModifier and TypeMethodDescriptionEntity.changeDimension
(DimensionTransition transition) Entity.getControlledVehicle()
Entity.getFirstPassenger()
default Entity
Leashable.getLeashHolder()
Leashable.getLeashHolder
(E p_entity) TraceableEntity.getOwner()
Entity.getRootVehicle()
Entity.getVehicle()
static Entity
EntityType.loadEntityRecursive
(CompoundTag compound, Level level, Function<Entity, Entity> entityFunction) Methods in net.minecraft.world.entity that return types with arguments of type EntityModifier and TypeMethodDescriptionEntityType.create
(CompoundTag tag, Level level) EntityType.getBaseClass()
LightningBolt.getHitEntities()
Entity.getIndirectPassengers()
Entity.getIndirectPassengersStream()
Entity.getPassengers()
Entity.getPassengersAndSelf()
Entity.getSelfAndPassengers()
EntityType.loadEntitiesRecursive
(List<? extends Tag> tags, Level level) EntityType.loadStaticEntity
(CompoundTag compound, Level level) EntitySelector.pushableBy
(Entity entity) EntitySelector.withinDistance
(double x, double y, double z, double range) Methods in net.minecraft.world.entity with parameters of type EntityModifier and TypeMethodDescriptionvoid
boolean
LivingEntity.addEffect
(MobEffectInstance effectInstance, Entity entity) protected void
Entity.addPassenger
(Entity passenger) protected void
Marker.addPassenger
(Entity p_270306_) protected void
OminousItemSpawner.addPassenger
(Entity passenger) (package private) void
Display.PosRotInterpolationTarget.applyLerpStep
(Entity entity) (package private) void
Display.PosRotInterpolationTarget.applyTargetPosAndRot
(Entity entity) void
Entity.awardKillScore
(Entity killed, int scoreValue, DamageSource source) protected boolean
Entity.canAddPassenger
(Entity passenger) protected boolean
Marker.canAddPassenger
(Entity p_265289_) protected boolean
OminousItemSpawner.canAddPassenger
(Entity passenger) boolean
Entity.canCollideWith
(Entity entity) protected boolean
default void
Leashable.closeRangeLeashBehaviour
(Entity entity) void
PathfinderMob.closeRangeLeashBehaviour
(Entity entity) boolean
Entity.closerThan
(Entity entity, double distance) boolean
Entity.closerThan
(Entity entity, double horizontalDistance, double verticalDistance) private static List
<VoxelShape> Entity.collectColliders
(Entity entity, Level level, List<VoxelShape> collisions, AABB boundingBox) static Vec3
Entity.collideBoundingBox
(Entity entity, Vec3 vec, AABB collisionBox, Level level, List<VoxelShape> potentialHits) void
Entity.copyPosition
(Entity entity) Sets this entity's location and angles to the location and angles of the passed in entity.private void
LivingEntity.dismountVehicle
(Entity vehicle) float
Entity.distanceTo
(Entity entity) Returns the distance to the entity.double
Entity.distanceToSqr
(Entity entity) Returns the squared distance to the entity.boolean
LivingEntity.doHurtTarget
(Entity target) boolean
Mob.doHurtTarget
(Entity entity) protected void
protected void
LivingEntity.dropExperience
(Entity entity) default void
Leashable.elasticRangeLeashBehaviour
(Entity leashHolder, float distance) void
LivingEntity.forceAddEffect
(MobEffectInstance instance, Entity entity) void
protected static Vec3
Entity.getDefaultPassengerAttachmentPoint
(Entity vehicle, Entity passenger, EntityAttachments attachments) final int
LivingEntity.getExperienceReward
(ServerLevel level, Entity killer) protected float
LivingEntity.getKnockback
(Entity attacker, DamageSource damageSource) protected Vec3
Entity.getPassengerAttachmentPoint
(Entity entity, EntityDimensions dimensions, float partialTick) Entity.getPassengerRidingPosition
(Entity entity) LivingEntity.getPassengerRidingPosition
(Entity entity) PortalProcessor.getPortalDestination
(ServerLevel level, Entity entity) Entity.getVehicleAttachmentPoint
(Entity entity) double
LivingEntity.getVisibilityPercent
(Entity lookingEntity) default boolean
Leashable.handleLeashAtDistance
(Entity leashHolder, float distance) boolean
PathfinderMob.handleLeashAtDistance
(Entity leashHolder, float distance) boolean
TamableAnimal.handleLeashAtDistance
(Entity leashHolder, float distance) boolean
Entity.hasIndirectPassenger
(Entity p_entity) boolean
LivingEntity.hasLineOfSight
(Entity entity) boolean
Entity.hasPassenger
(Entity entity) boolean
Returnstrue
if Entity argument is equal to this Entityboolean
Entity.isAlliedTo
(Entity entity) Returns whether this Entity is on the same team as the given Entity.boolean
TamableAnimal.isAlliedTo
(Entity entity) Returns whether this Entity is on the same team as the given Entity.boolean
Entity.isPassengerOfSameVehicle
(Entity entity) Leashable.legacyElasticRangeLeashBehaviour
(E entity, Entity leashHolder, float distance) void
Changes the X and Y rotation so that this entity is facing the given entity.protected void
LivingEntity.onEffectAdded
(MobEffectInstance effectInstance, Entity entity) protected void
LivingEntity.onEffectUpdated
(MobEffectInstance effectInstance, boolean forced, Entity entity) void
Entity.onExplosionHit
(Entity entity) void
Entity.onPassengerTurned
(Entity entityToUpdate) Applies this entity's orientation to another entity.void
ReputationEventHandler.onReputationEventFrom
(ReputationEventType type, Entity target) final void
Entity.positionRider
(Entity passenger) protected void
Entity.positionRider
(Entity passenger, Entity.MoveFunction callback) boolean
PortalProcessor.processPortalTeleportation
(ServerLevel level, Entity entity, boolean canChangeDimensions) void
Applies a velocity to the entities, to push them away from each other.void
Applies a velocity to the entities, to push them away from each other.EntitySelector.pushableBy
(Entity entity) protected void
Entity.removePassenger
(Entity passenger) void
Entity.restoreFrom
(Entity entity) Prepares this entity in new dimension by copying NBT data from entity in old dimensionvoid
LivingEntity.setLastHurtMob
(Entity entity) Leashable.setLeashedTo
(E entity, Entity leashHolder, boolean broadcastPacket) default void
Leashable.setLeashedTo
(Entity leashHolder, boolean broadcastPacket) void
Leashable.LeashData.setLeashHolder
(Entity leashHolder) boolean
Entity.skipAttackInteraction
(Entity entity) Called when a player attacks an entity.boolean
Interaction.skipAttackInteraction
(Entity entity) Called when a player attacks an entity.boolean
Entity.startRiding
(Entity vehicle) boolean
Entity.startRiding
(Entity vehicle, boolean force) boolean
Mob.startRiding
(Entity entity, boolean force) void
Called when the entity picks up an item.boolean
static void
EntityType.updateCustomEntityTag
(Level level, Player player, Entity entity, CustomData customData) Method parameters in net.minecraft.world.entity with type arguments of type EntityModifier and TypeMethodDescriptionboolean
Entity.hasPassenger
(Predicate<Entity> predicate) static Entity
EntityType.loadEntityRecursive
(CompoundTag compound, Level level, Function<Entity, Entity> entityFunction) static Entity
EntityType.loadEntityRecursive
(CompoundTag compound, Level level, Function<Entity, Entity> entityFunction) Constructors in net.minecraft.world.entity with parameters of type Entity -
Uses of Entity in net.minecraft.world.entity.ai.behavior
Fields in net.minecraft.world.entity.ai.behavior declared as EntityMethods in net.minecraft.world.entity.ai.behavior that return EntityMethods in net.minecraft.world.entity.ai.behavior with parameters of type EntityModifier and TypeMethodDescriptionprivate static boolean
DismountOrSkipMounting.isVehicleValid
(LivingEntity entity, Entity vehicle, int distance) AnimalPanic.lookForWater
(BlockGetter level, Entity entity) static void
BehaviorUtils.setWalkAndLookTargetMemories
(LivingEntity livingEntity, Entity target, float speed, int distance) Method parameters in net.minecraft.world.entity.ai.behavior with type arguments of type EntityModifier and TypeMethodDescriptionstatic <E extends LivingEntity>
BehaviorControl<E> DismountOrSkipMounting.create
(int maxDistanceFromVehicle, BiPredicate<E, Entity> shouldStopRiding) static OneShot
<PathfinderMob> SetWalkTargetAwayFrom.entity
(MemoryModuleType<? extends Entity> walkTargetAwayFromMemory, float speedModifier, int desiredDistance, boolean hasTarget) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type Entity -
Uses of Entity in net.minecraft.world.entity.ai.control
Methods in net.minecraft.world.entity.ai.control with parameters of type EntityModifier and TypeMethodDescriptionprivate static double
LookControl.getWantedY
(Entity entity) void
Sets the controlling mob's look vector to the provided entity's locationvoid
Sets position to look at using entity -
Uses of Entity in net.minecraft.world.entity.ai.goal
Fields in net.minecraft.world.entity.ai.goal declared as EntityMethods in net.minecraft.world.entity.ai.goal with parameters of type EntityModifier and TypeMethodDescriptionprotected BlockPos
PanicGoal.lookForWater
(BlockGetter level, Entity entity, int range) -
Uses of Entity in net.minecraft.world.entity.ai.memory
Fields in net.minecraft.world.entity.ai.memory with type parameters of type EntityModifier and TypeFieldDescriptionstatic final MemoryModuleType
<Entity> MemoryModuleType.RIDE_TARGET
Constructors in net.minecraft.world.entity.ai.memory with parameters of type EntityModifierConstructorDescriptionWalkTarget
(Entity targetEntity, float speedModifier, int closeEnoughDist) Constructs a walk target that tracks an entity's position -
Uses of Entity in net.minecraft.world.entity.ai.sensing
Methods in net.minecraft.world.entity.ai.sensing with parameters of type EntityModifier and TypeMethodDescriptionboolean
Sensing.hasLineOfSight
(Entity entity) Updates list of visible and not visible entities for the given entity -
Uses of Entity in net.minecraft.world.entity.ambient
Subclasses of Entity in net.minecraft.world.entity.ambientMethods in net.minecraft.world.entity.ambient with parameters of type Entity -
Uses of Entity in net.minecraft.world.entity.animal
Subclasses of Entity in net.minecraft.world.entity.animalModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Fields in net.minecraft.world.entity.animal with type parameters of type EntityMethods in net.minecraft.world.entity.animal with parameters of type EntityModifier and TypeMethodDescriptionprotected boolean
boolean
Bee.doHurtTarget
(Entity entity) boolean
IronGolem.doHurtTarget
(Entity entity) boolean
Panda.doHurtTarget
(Entity entity) protected void
protected void
static boolean
Parrot.imitateNearbyMobs
(Level level, Entity parrot) protected void
Chicken.positionRider
(Entity passenger, Entity.MoveFunction callback) -
Uses of Entity in net.minecraft.world.entity.animal.allay
Subclasses of Entity in net.minecraft.world.entity.animal.allayMethods in net.minecraft.world.entity.animal.allay with parameters of type EntityModifier and TypeMethodDescriptionvoid
Allay.VibrationUser.onReceiveVibration
(ServerLevel p_281422_, BlockPos p_281449_, Holder<GameEvent> p_316630_, Entity p_281794_, Entity p_281864_, float p_281642_) -
Uses of Entity in net.minecraft.world.entity.animal.armadillo
Subclasses of Entity in net.minecraft.world.entity.animal.armadillo -
Uses of Entity in net.minecraft.world.entity.animal.axolotl
Subclasses of Entity in net.minecraft.world.entity.animal.axolotl -
Uses of Entity in net.minecraft.world.entity.animal.camel
Subclasses of Entity in net.minecraft.world.entity.animal.camelMethods in net.minecraft.world.entity.animal.camel with parameters of type EntityModifier and TypeMethodDescriptionprotected boolean
Camel.canAddPassenger
(Entity passenger) protected Vec3
Camel.getPassengerAttachmentPoint
(Entity entity, EntityDimensions dimensions, float partialTick) boolean
Camel.handleLeashAtDistance
(Entity leashHolder, float distance) -
Uses of Entity in net.minecraft.world.entity.animal.frog
Subclasses of Entity in net.minecraft.world.entity.animal.frogMethods in net.minecraft.world.entity.animal.frog that return types with arguments of type EntityMethods in net.minecraft.world.entity.animal.frog with parameters of type Entity -
Uses of Entity in net.minecraft.world.entity.animal.goat
Subclasses of Entity in net.minecraft.world.entity.animal.goat -
Uses of Entity in net.minecraft.world.entity.animal.horse
Subclasses of Entity in net.minecraft.world.entity.animal.horseModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
Methods in net.minecraft.world.entity.animal.horse with parameters of type EntityModifier and TypeMethodDescriptionprotected Vec3
AbstractHorse.getPassengerAttachmentPoint
(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3
Llama.getPassengerAttachmentPoint
(Entity entity, EntityDimensions dimensions, float partialTick) boolean
AbstractHorse.handleLeashAtDistance
(Entity leashHolder, float distance) protected void
AbstractHorse.positionRider
(Entity passenger, Entity.MoveFunction callback) -
Uses of Entity in net.minecraft.world.entity.animal.sniffer
Subclasses of Entity in net.minecraft.world.entity.animal.sniffer -
Uses of Entity in net.minecraft.world.entity.boss
Subclasses of Entity in net.minecraft.world.entity.bossMethods in net.minecraft.world.entity.boss with parameters of type Entity -
Uses of Entity in net.minecraft.world.entity.boss.enderdragon
Subclasses of Entity in net.minecraft.world.entity.boss.enderdragonMethods in net.minecraft.world.entity.boss.enderdragon with parameters of type EntityModifier and TypeMethodDescriptionboolean
EnderDragon.addEffect
(MobEffectInstance effectInstance, Entity entity) protected boolean
Method parameters in net.minecraft.world.entity.boss.enderdragon with type arguments of type Entity -
Uses of Entity in net.minecraft.world.entity.boss.wither
Subclasses of Entity in net.minecraft.world.entity.boss.witherMethods in net.minecraft.world.entity.boss.wither with parameters of type EntityModifier and TypeMethodDescriptionboolean
WitherBoss.addEffect
(MobEffectInstance effectInstance, Entity entity) protected boolean
-
Uses of Entity in net.minecraft.world.entity.decoration
Subclasses of Entity in net.minecraft.world.entity.decorationModifier and TypeClassDescriptionclass
class
class
class
class
class
class
Fields in net.minecraft.world.entity.decoration with type parameters of type EntityMethods in net.minecraft.world.entity.decoration with parameters of type EntityModifier and TypeMethodDescriptionprotected void
abstract void
void
Called when this entity is broken.private void
void
Called when this entity is broken.void
Called when this entity is broken.boolean
ArmorStand.skipAttackInteraction
(Entity entity) Called when a player attacks an entity.boolean
BlockAttachedEntity.skipAttackInteraction
(Entity entity) Called when a player attacks an entity. -
Uses of Entity in net.minecraft.world.entity.item
Subclasses of Entity in net.minecraft.world.entity.itemFields in net.minecraft.world.entity.item declared as EntityMethods in net.minecraft.world.entity.item that return EntityModifier and TypeMethodDescriptionFallingBlockEntity.changeDimension
(DimensionTransition transition) ItemEntity.changeDimension
(DimensionTransition transition) PrimedTnt.changeDimension
(DimensionTransition transition) ItemEntity.getOwner()
Methods in net.minecraft.world.entity.item with parameters of type EntityModifier and TypeMethodDescriptionvoid
ItemEntity.restoreFrom
(Entity entity) Prepares this entity in new dimension by copying NBT data from entity in old dimensionvoid
PrimedTnt.restoreFrom
(Entity entity) Prepares this entity in new dimension by copying NBT data from entity in old dimensionvoid
ItemEntity.setThrower
(Entity thrower) -
Uses of Entity in net.minecraft.world.entity.monster
Subclasses of Entity in net.minecraft.world.entity.monsterModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Fields in net.minecraft.world.entity.monster with type parameters of type EntityMethods in net.minecraft.world.entity.monster with parameters of type EntityModifier and TypeMethodDescriptionprotected boolean
Strider.canAddPassenger
(Entity passenger) boolean
CaveSpider.doHurtTarget
(Entity entity) boolean
Creeper.doHurtTarget
(Entity entity) boolean
Husk.doHurtTarget
(Entity entity) boolean
Ravager.doHurtTarget
(Entity entity) boolean
WitherSkeleton.doHurtTarget
(Entity entity) boolean
Zoglin.doHurtTarget
(Entity entity) boolean
Zombie.doHurtTarget
(Entity entity) protected Vec3
Slime.getPassengerAttachmentPoint
(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3
Strider.getPassengerAttachmentPoint
(Entity entity, EntityDimensions dimensions, float partialTick) CaveSpider.getVehicleAttachmentPoint
(Entity entity) Spider.getVehicleAttachmentPoint
(Entity entity) boolean
Ravager.hasLineOfSight
(Entity entity) boolean
AbstractIllager.isAlliedTo
(Entity entity) Returns whether this Entity is on the same team as the given Entity.boolean
Evoker.isAlliedTo
(Entity entity) Returns whether this Entity is on the same team as the given Entity.void
Applies a velocity to the entities, to push them away from each other.void
Applies a velocity to the entities, to push them away from eachother.void
Vex.restoreFrom
(Entity entity) Prepares this entity in new dimension by copying NBT data from entity in old dimensionboolean
Shulker.startRiding
(Entity entity, boolean force) private void
Ravager.strongKnockback
(Entity entity) (package private) boolean
EnderMan.teleportTowards
(Entity target) Teleport the enderman to another entity -
Uses of Entity in net.minecraft.world.entity.monster.breeze
Subclasses of Entity in net.minecraft.world.entity.monster.breeze -
Uses of Entity in net.minecraft.world.entity.monster.hoglin
Subclasses of Entity in net.minecraft.world.entity.monster.hoglinMethods in net.minecraft.world.entity.monster.hoglin with parameters of type Entity -
Uses of Entity in net.minecraft.world.entity.monster.piglin
Subclasses of Entity in net.minecraft.world.entity.monster.piglinMethods in net.minecraft.world.entity.monster.piglin that return EntityModifier and TypeMethodDescriptionprivate Entity
Piglin.getTopPassenger
(Entity vehicle, int maxPosition) Methods in net.minecraft.world.entity.monster.piglin with parameters of type EntityModifier and TypeMethodDescriptionprivate Entity
Piglin.getTopPassenger
(Entity vehicle, int maxPosition) boolean
Piglin.startRiding
(Entity entity, boolean force) private static boolean
PiglinAi.wantsToStopRiding
(Piglin piglin, Entity vehicle) -
Uses of Entity in net.minecraft.world.entity.monster.warden
Subclasses of Entity in net.minecraft.world.entity.monster.wardenFields in net.minecraft.world.entity.monster.warden with type parameters of type EntityModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.objects.Object2IntMap
<Entity> AngerManagement.angerBySuspect
AngerManagement.filter
AngerManagement.suspects
Methods in net.minecraft.world.entity.monster.warden that return EntityMethods in net.minecraft.world.entity.monster.warden with parameters of type EntityModifier and TypeMethodDescriptionstatic void
Warden.applyDarknessAround
(ServerLevel level, Vec3 pos, Entity source, int radius) protected boolean
boolean
Warden.canTargetEntity
(Entity entity) void
AngerManagement.clearAnger
(Entity entity) void
Warden.clearAnger
(Entity entity) int
boolean
Warden.doHurtTarget
(Entity entity) protected void
int
AngerManagement.getActiveAnger
(Entity entity) int
AngerManagement.increaseAnger
(Entity entity, int offset) void
Warden.increaseAngerAt
(Entity entity) void
Warden.increaseAngerAt
(Entity entity, int offset, boolean playListeningSound) void
Warden.VibrationUser.onReceiveVibration
(ServerLevel p_281325_, BlockPos p_282386_, Holder<GameEvent> p_316139_, Entity p_281438_, Entity p_282582_, float p_283699_) Method parameters in net.minecraft.world.entity.monster.warden with type arguments of type EntityModifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec
<AngerManagement> void
AngerManagement.tick
(ServerLevel level, Predicate<Entity> predicate) Constructor parameters in net.minecraft.world.entity.monster.warden with type arguments of type Entity -
Uses of Entity in net.minecraft.world.entity.npc
Subclasses of Entity in net.minecraft.world.entity.npcMethods in net.minecraft.world.entity.npc that return EntityModifier and TypeMethodDescriptionAbstractVillager.changeDimension
(DimensionTransition transition) Methods in net.minecraft.world.entity.npc with parameters of type EntityModifier and TypeMethodDescriptionVillagerTrades.DyedArmorForEmeralds.getOffer
(Entity trader, RandomSource random) VillagerTrades.EmeraldForItems.getOffer
(Entity trader, RandomSource random) VillagerTrades.EmeraldsForVillagerTypeItem.getOffer
(Entity trader, RandomSource random) VillagerTrades.EnchantBookForEmeralds.getOffer
(Entity trader, RandomSource random) VillagerTrades.EnchantedItemForEmeralds.getOffer
(Entity trader, RandomSource random) VillagerTrades.FailureItemListing.getOffer
(Entity p_302036_, RandomSource p_301986_) VillagerTrades.ItemListing.getOffer
(Entity trader, RandomSource random) VillagerTrades.ItemsAndEmeraldsToItems.getOffer
(Entity trader, RandomSource random) VillagerTrades.ItemsForEmeralds.getOffer
(Entity trader, RandomSource random) VillagerTrades.SuspiciousStewForEmerald.getOffer
(Entity trader, RandomSource random) VillagerTrades.TippedArrowForItemsAndEmeralds.getOffer
(Entity trader, RandomSource random) VillagerTrades.TreasureMapForEmeralds.getOffer
(Entity trader, RandomSource random) VillagerTrades.TypeSpecificTrade.getOffer
(Entity trader, RandomSource random) void
Villager.onReputationEventFrom
(ReputationEventType type, Entity target) private void
Villager.tellWitnessesThatIWasMurdered
(Entity murderer) -
Uses of Entity in net.minecraft.world.entity.player
Subclasses of Entity in net.minecraft.world.entity.playerFields in net.minecraft.world.entity.player declared as EntityMethods in net.minecraft.world.entity.player with parameters of type EntityModifier and TypeMethodDescriptionvoid
Attacks for the player the targeted entity with the currently equipped item.boolean
Player.canInteractWithEntity
(Entity entity, double distance) void
Called when the entity is dealt a critical hit.protected float
Player.getEnchantedDamage
(Entity entity, float damage, DamageSource damageSource) Player.interactOn
(Entity entityToInteractOn, InteractionHand hand) void
Called when the entity hit is dealt extra melee damage due to an enchantment.private void
-
Uses of Entity in net.minecraft.world.entity.projectile
Subclasses of Entity in net.minecraft.world.entity.projectileModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Fields in net.minecraft.world.entity.projectile declared as EntityModifier and TypeFieldDescriptionprivate Entity
Projectile.cachedOwner
private Entity
ShulkerBullet.finalTarget
private Entity
FishingHook.hookedIn
private Entity
Projectile.lastDeflectedBy
Fields in net.minecraft.world.entity.projectile with type parameters of type EntityMethods in net.minecraft.world.entity.projectile that return EntityModifier and TypeMethodDescriptionProjectile.getEffectSource()
FishingHook.getHookedIn()
Projectile.getOwner()
Methods in net.minecraft.world.entity.projectile with parameters of type EntityModifier and TypeMethodDescriptionprivate void
ThrownPotion.applySplash
(Iterable<MobEffectInstance> effects, Entity p_entity) protected boolean
AbstractArrow.canHitEntity
(Entity target) protected boolean
AbstractHurtingProjectile.canHitEntity
(Entity target) protected boolean
FishingHook.canHitEntity
(Entity target) protected boolean
Projectile.canHitEntity
(Entity target) protected boolean
ShulkerBullet.canHitEntity
(Entity target) boolean
Projectile.deflect
(ProjectileDeflection deflection, Entity entity, Entity owner, boolean deflectedByPlayer) void
ProjectileDeflection.deflect
(Projectile projectile, Entity entity, RandomSource random) static EntityHitResult
ProjectileUtil.getEntityHitResult
(Entity shooter, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, double distance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) Gets the EntityHitResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, float inflationAmount) Gets the EntityHitResult representing the entity hitprivate static HitResult
ProjectileUtil.getHitResult
(Vec3 pos, Entity projectile, Predicate<Entity> filter, Vec3 deltaMovement, Level level, float margin, ClipContext.Block clipContext) static HitResult
ProjectileUtil.getHitResultOnMoveVector
(Entity projectile, Predicate<Entity> filter) static HitResult
ProjectileUtil.getHitResultOnMoveVector
(Entity projectile, Predicate<Entity> filter, ClipContext.Block clipContext) static HitResult
ProjectileUtil.getHitResultOnViewVector
(Entity projectile, Predicate<Entity> filter, double scale) private static boolean
ThrownEnderpearl.isAllowedToTeleportOwner
(Entity entity, Level level) protected void
AbstractHurtingProjectile.onDeflection
(Entity entity, boolean deflectedByPlayer) protected void
Projectile.onDeflection
(Entity entity, boolean deflectedByPlayer) protected boolean
protected void
FishingHook.pullEntity
(Entity p_entity) void
Projectile.restoreFrom
(Entity entity) Prepares this entity in new dimension by copying NBT data from entity in old dimensionstatic void
ProjectileUtil.rotateTowardsMovement
(Entity projectile, float rotationSpeed) private void
FishingHook.setHookedEntity
(Entity hookedEntity) void
void
void
void
Projectile.shootFromRotation
(Entity shooter, float x, float y, float z, float velocity, float inaccuracy) Method parameters in net.minecraft.world.entity.projectile with type arguments of type EntityModifier and TypeMethodDescriptionstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Entity shooter, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, double distance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) Gets the EntityHitResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, float inflationAmount) Gets the EntityHitResult representing the entity hitprivate static HitResult
ProjectileUtil.getHitResult
(Vec3 pos, Entity projectile, Predicate<Entity> filter, Vec3 deltaMovement, Level level, float margin, ClipContext.Block clipContext) static HitResult
ProjectileUtil.getHitResultOnMoveVector
(Entity projectile, Predicate<Entity> filter) static HitResult
ProjectileUtil.getHitResultOnMoveVector
(Entity projectile, Predicate<Entity> filter, ClipContext.Block clipContext) static HitResult
ProjectileUtil.getHitResultOnViewVector
(Entity projectile, Predicate<Entity> filter, double scale) Constructors in net.minecraft.world.entity.projectile with parameters of type EntityModifierConstructorDescriptionFireworkRocketEntity
(Level level, Entity shooter, double x, double y, double z, ItemStack stack) FireworkRocketEntity
(Level level, ItemStack stack, Entity shooter, double x, double y, double z, boolean shotAtAngle) ShulkerBullet
(Level level, LivingEntity shooter, Entity finalTarget, Direction.Axis axis) -
Uses of Entity in net.minecraft.world.entity.projectile.windcharge
Subclasses of Entity in net.minecraft.world.entity.projectile.windchargeModifier and TypeClassDescriptionclass
class
class
Methods in net.minecraft.world.entity.projectile.windcharge with parameters of type EntityModifier and TypeMethodDescriptionboolean
AbstractWindCharge.canCollideWith
(Entity entity) protected boolean
AbstractWindCharge.canHitEntity
(Entity target) boolean
WindCharge.deflect
(ProjectileDeflection deflection, Entity entity, Entity owner, boolean deflectedByPlayer) Constructors in net.minecraft.world.entity.projectile.windcharge with parameters of type EntityModifierConstructorDescriptionAbstractWindCharge
(EntityType<? extends AbstractWindCharge> entityType, Level level, Entity owner, double x, double y, double z) -
Uses of Entity in net.minecraft.world.entity.raid
Subclasses of Entity in net.minecraft.world.entity.raidMethods in net.minecraft.world.entity.raid with parameters of type Entity -
Uses of Entity in net.minecraft.world.entity.vehicle
Subclasses of Entity in net.minecraft.world.entity.vehicleModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
Methods in net.minecraft.world.entity.vehicle with parameters of type EntityModifier and TypeMethodDescriptionprotected boolean
Boat.canAddPassenger
(Entity passenger) boolean
AbstractMinecart.canCollideWith
(Entity entity) boolean
Boat.canCollideWith
(Entity entity) static boolean
Boat.canVehicleCollide
(Entity vehicle, Entity entity) default void
ContainerEntity.chestVehicleDestroyed
(DamageSource damageSource, Level level, Entity p_entity) protected void
Boat.clampRotation
(Entity entityToUpdate) Applies this boat's yaw to the given entity.void
Boat.elasticRangeLeashBehaviour
(Entity leashHolder, float distance) protected Vec3
AbstractMinecart.getPassengerAttachmentPoint
(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3
Boat.getPassengerAttachmentPoint
(Entity entity, EntityDimensions dimensions, float partialTick) boolean
Boat.hasEnoughSpaceFor
(Entity entity) void
Boat.onPassengerTurned
(Entity entityToUpdate) Applies this entity's orientation (pitch/yaw) to another entity.protected void
Boat.positionRider
(Entity passenger, Entity.MoveFunction callback) void
Applies a velocity to the entities, to push them away from each other.void
Applies a velocity to the entities, to push them away from each other. -
Uses of Entity in net.minecraft.world.item
Classes in net.minecraft.world.item with type parameters of type EntityFields in net.minecraft.world.item declared as EntityModifier and TypeFieldDescriptionprivate Entity
ItemStack.entityRepresentation
The entity the item is attached to, like an Item Frame.Fields in net.minecraft.world.item with type parameters of type EntityMethods in net.minecraft.world.item that return EntityMethods in net.minecraft.world.item with parameters of type EntityModifier and TypeMethodDescriptionfloat
Item.getAttackDamageBonus
(Entity target, float damage, DamageSource damageSource) float
MaceItem.getAttackDamageBonus
(Entity target, float damage, DamageSource damageSource) void
CompassItem.inventoryTick
(ItemStack stack, Level level, Entity entity, int itemSlot, boolean isSelected) Called each tick as long the item is in a player's inventory.void
Item.inventoryTick
(ItemStack stack, Level level, Entity entity, int slotId, boolean isSelected) Called each tick as long the item is in a player's inventory.void
ItemStack.inventoryTick
(Level level, Entity entity, int inventorySlot, boolean isCurrentItem) Called each tick as long theItemStack
in in player's inventory.void
MapItem.inventoryTick
(ItemStack stack, Level level, Entity entity, int itemSlot, boolean isSelected) Called each tick as long the item is in a player's inventory.private static void
private static Predicate
<LivingEntity> MaceItem.knockbackPredicate
(Player player, Entity entity) private void
BundleItem.playDropContentsSound
(Entity entity) private void
BundleItem.playInsertSound
(Entity entity) private void
BundleItem.playRemoveOneSound
(Entity entity) void
ItemStack.setEntityRepresentation
(Entity entity) void
MapItem.update
(Level level, Entity viewer, MapItemSavedData data) -
Uses of Entity in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type Entity -
Uses of Entity in net.minecraft.world.item.enchantment
Methods in net.minecraft.world.item.enchantment with parameters of type EntityModifier and TypeMethodDescriptionstatic LootContext
Enchantment.blockHitContext
(ServerLevel level, int enchantmentLevel, Entity entity, Vec3 origin, BlockState state) static LootContext
Enchantment.damageContext
(ServerLevel level, int enchantmentLevel, Entity entity, DamageSource damageSource) void
Enchantment.doPostAttack
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, EnchantmentTarget target, Entity entity, DamageSource damageSource) static void
Enchantment.doPostAttack
(TargetedConditionalEffect<EnchantmentEntityEffect> effect, ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity p_entity, DamageSource damageSource) static void
EnchantmentHelper.doPostAttackEffects
(ServerLevel level, Entity entity, DamageSource damageSource) static void
EnchantmentHelper.doPostAttackEffectsWithItemSource
(ServerLevel level, Entity entity, DamageSource damageSource, ItemStack itemSource) static LootContext
Enchantment.entityContext
(ServerLevel level, int enchantmentLevel, Entity entity, Vec3 origin) static int
EnchantmentHelper.getFishingLuckBonus
(ServerLevel level, ItemStack stack, Entity entity) static float
EnchantmentHelper.getFishingTimeReduction
(ServerLevel level, ItemStack stack, Entity entity) static int
EnchantmentHelper.getTridentReturnToOwnerAcceleration
(ServerLevel level, ItemStack stack, Entity entity) boolean
Enchantment.isImmuneToDamage
(ServerLevel level, int enchantmentLevel, Entity entity, DamageSource damageSource) static LootContext
Enchantment.locationContext
(ServerLevel level, int enchantmentLevel, Entity entity, boolean enchantmentActive) static float
EnchantmentHelper.modifyArmorEffectiveness
(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float armorEffectiveness) void
Enchantment.modifyArmorEffectivness
(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat armorEffectiveness) void
Enchantment.modifyDamage
(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat damage) static float
EnchantmentHelper.modifyDamage
(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float damage) void
Enchantment.modifyDamageFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> componentType, ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat value) void
Enchantment.modifyDamageProtection
(ServerLevel level, int enchantmentLevel, ItemStack stack, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat damageProtection) void
Enchantment.modifyEntityFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> componentType, ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat value) void
Enchantment.modifyFallBasedDamage
(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat fallBasedDamage) static float
EnchantmentHelper.modifyFallBasedDamage
(ServerLevel level, ItemStack tool, Entity enity, DamageSource damageSource, float fallBasedDamage) void
Enchantment.modifyFishingLuckBonus
(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat fishingLuckBonus) void
Enchantment.modifyFishingTimeReduction
(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat fishingTimeReduction) void
Enchantment.modifyKnockback
(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat knockback) static float
EnchantmentHelper.modifyKnockback
(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float knockback) void
Enchantment.modifyMobExperience
(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat mobExperience) void
Enchantment.modifyProjectileCount
(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat projectileCount) void
Enchantment.modifyProjectileSpread
(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat projectileSpread) void
Enchantment.modifyTridentReturnToOwnerAcceleration
(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat tridentReturnToOwnerAcceleration) void
Enchantment.onHitBlock
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, BlockState state) static void
EnchantmentHelper.onHitBlock
(ServerLevel level, ItemStack stack, LivingEntity owner, Entity entity, EquipmentSlot slot, Vec3 pos, BlockState state, Consumer<Item> onBreak) void
Enchantment.onProjectileSpawned
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity) static int
EnchantmentHelper.processMobExperience
(ServerLevel level, Entity killer, Entity mob, int experience) static int
EnchantmentHelper.processProjectileCount
(ServerLevel level, ItemStack tool, Entity entity, int projectileCount) static float
EnchantmentHelper.processProjectileSpread
(ServerLevel level, ItemStack tool, Entity entity, float projectileSpread) void
Enchantment.tick
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity) -
Uses of Entity in net.minecraft.world.item.enchantment.effects
Methods in net.minecraft.world.item.enchantment.effects with parameters of type EntityModifier and TypeMethodDescriptionvoid
AllOf.EntityEffects.apply
(ServerLevel p_346093_, int p_345940_, EnchantedItemInUse p_344929_, Entity p_345319_, Vec3 p_345200_) void
ApplyMobEffect.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
DamageEntity.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
DamageItem.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
EnchantmentEntityEffect.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
ExplodeEffect.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
Ignite.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
PlaySoundEffect.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
ReplaceBlock.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
ReplaceDisk.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
RunFunction.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
SetBlockProperties.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
SpawnParticlesEffect.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) void
SummonEntityEffect.apply
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity p_entity, Vec3 origin) private DamageSource
ExplodeEffect.getDamageSource
(Entity entity, Vec3 pos) void
AllOf.LocationBasedEffects.onChangedBlock
(ServerLevel p_345329_, int p_345154_, EnchantedItemInUse p_344984_, Entity p_345671_, Vec3 p_344781_, boolean p_345113_) void
EnchantmentAttributeEffect.onChangedBlock
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, boolean applyTransientEffects) default void
EnchantmentEntityEffect.onChangedBlock
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, boolean applyTransientEffects) void
EnchantmentLocationBasedEffect.onChangedBlock
(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, boolean applyTransientEffects) void
AllOf.LocationBasedEffects.onDeactivated
(EnchantedItemInUse p_346024_, Entity p_346234_, Vec3 p_346036_, int p_345698_) void
EnchantmentAttributeEffect.onDeactivated
(EnchantedItemInUse item, Entity entity, Vec3 pos, int enchantmentLevel) default void
EnchantmentLocationBasedEffect.onDeactivated
(EnchantedItemInUse item, Entity entity, Vec3 pos, int enchantmentLevel) -
Uses of Entity in net.minecraft.world.level
Fields in net.minecraft.world.level declared as EntityModifier and TypeFieldDescriptionprivate Entity
BaseSpawner.displayEntity
Cached instance of the entity to render inside the spawner.private final Entity
EntityBasedExplosionDamageCalculator.source
private final Entity
Explosion.source
Methods in net.minecraft.world.level with type parameters of type EntityModifier and TypeMethodDescriptionEntityGetter.getEntities
(EntityTypeTest<Entity, T> entityTypeTest, AABB bounds, Predicate<? super T> predicate) Level.getEntities
(EntityTypeTest<Entity, T> entityTypeTest, AABB bounds, Predicate<? super T> predicate) <T extends Entity>
voidLevel.getEntities
(EntityTypeTest<Entity, T> entityTypeTest, AABB bounds, Predicate<? super T> predicate, List<? super T> output) <T extends Entity>
voidLevel.getEntities
(EntityTypeTest<Entity, T> entityTypeTest, AABB bounds, Predicate<? super T> predicate, List<? super T> output, int maxResults) EntityGetter.getEntitiesOfClass
(Class<T> entityClass, AABB area) EntityGetter.getEntitiesOfClass
(Class<T> clazz, AABB area, Predicate<? super T> filter) <T extends Entity>
voidLevel.guardEntityTick
(Consumer<T> consumerEntity, T entity) Methods in net.minecraft.world.level that return EntityModifier and TypeMethodDescriptionExplosion.getDirectSourceEntity()
abstract Entity
Level.getEntity
(int id) Returns the Entity with the given ID, or null if it doesn't exist in this Level.BaseSpawner.getOrCreateDisplayEntity
(Level level, BlockPos pos) Methods in net.minecraft.world.level that return types with arguments of type EntityModifier and TypeMethodDescriptionEntityGetter.getEntities
(Entity entity, AABB area) Will get all entities within the specified AABB excluding the one passed into it.EntityGetter.getEntities
(Entity entity, AABB area, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.protected abstract LevelEntityGetter
<Entity> Level.getEntities()
Level.getEntities
(Entity entity, AABB boundingBox, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.com.mojang.datafixers.util.Either
<BlockEntity, Entity> BaseSpawner.getOwner()
Methods in net.minecraft.world.level with parameters of type EntityModifier and TypeMethodDescriptiondefault boolean
LevelWriter.addFreshEntity
(Entity entity) default void
ServerLevelAccessor.addFreshEntityWithPassengers
(Entity entity) private VoxelShape
CollisionGetter.borderCollision
(Entity entity, AABB box) void
Level.broadcastDamageEvent
(Entity entity, DamageSource damageSource) void
Level.broadcastEntityEvent
(Entity entity, byte state) Sends aClientboundEntityEventPacket
to all tracked players of that entity.default boolean
CollisionGetter.collidesWithSuffocatingBlock
(Entity entity, AABB box) boolean
Level.destroyBlock
(BlockPos pos, boolean dropBlock, Entity entity, int recursionLeft) default boolean
LevelWriter.destroyBlock
(BlockPos pos, boolean dropBlock, Entity entity) boolean
LevelWriter.destroyBlock
(BlockPos pos, boolean dropBlock, Entity entity, int recursionLeft) Level.explode
(Entity source, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction) Level.explode
(Entity source, double x, double y, double z, float radius, Level.ExplosionInteraction explosionInteraction) Level.explode
(Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction) Level.explode
(Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction, boolean spawnParticles, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, Holder<SoundEvent> explosionSound) Level.explode
(Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, Holder<SoundEvent> explosionSound) Level.explode
(Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, Vec3 pos, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction) CollisionGetter.findFreePosition
(Entity entity, VoxelShape shape, Vec3 pos, double x, double y, double z) CollisionGetter.findSupportingBlock
(Entity entity, AABB box) default void
default void
default Iterable
<VoxelShape> CollisionGetter.getBlockCollisions
(Entity entity, AABB collisionBox) default Iterable
<VoxelShape> CollisionGetter.getCollisions
(Entity entity, AABB collisionBox) static DamageSource
Explosion.getDefaultDamageSource
(Level level, Entity source) EntityGetter.getEntities
(Entity entity, AABB area) Will get all entities within the specified AABB excluding the one passed into it.EntityGetter.getEntities
(Entity entity, AABB area, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.Level.getEntities
(Entity entity, AABB boundingBox, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.CollisionGetter.getEntityCollisions
(Entity entity, AABB collisionBox) default List
<VoxelShape> CommonLevelAccessor.getEntityCollisions
(Entity entity, AABB collisionBox) default List
<VoxelShape> EntityGetter.getEntityCollisions
(Entity p_entity, AABB collisionBox) PathNavigationRegion.getEntityCollisions
(Entity entity, AABB collisionBox) float
ExplosionDamageCalculator.getEntityDamageAmount
(Explosion explosion, Entity entity) private static LivingEntity
Explosion.getIndirectSourceEntityInternal
(Entity source) float
ExplosionDamageCalculator.getKnockbackMultiplier
(Entity entity) float
SimpleExplosionDamageCalculator.getKnockbackMultiplier
(Entity entity) default Player
EntityGetter.getNearestPlayer
(Entity entity, double distance) static float
Explosion.getSeenPercent
(Vec3 explosionVector, Entity entity) default boolean
CollisionGetter.isUnobstructed
(Entity entity) default boolean
CollisionGetter.isUnobstructed
(Entity entity, VoxelShape shape) default boolean
CommonLevelAccessor.isUnobstructed
(Entity entity, VoxelShape shape) default boolean
EntityGetter.isUnobstructed
(Entity p_entity, VoxelShape shape) boolean
Level.loadedAndEntityCanStandOn
(BlockPos pos, Entity entity) boolean
Level.loadedAndEntityCanStandOnFace
(BlockPos pos, Entity entity, Direction direction) private ExplosionDamageCalculator
Explosion.makeDamageCalculator
(Entity entity) default boolean
CollisionGetter.noBlockCollision
(Entity entity, AABB boundingBox) default boolean
CollisionGetter.noCollision
(Entity entity) default boolean
CollisionGetter.noCollision
(Entity entity, AABB collisionBox) void
Level.playLocalSound
(Entity entity, SoundEvent sound, SoundSource category, float volume, float pitch) abstract void
Level.playSeededSound
(Player player, Entity entity, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) void
Level.playSound
(Entity entity, BlockPos pos, SoundEvent sound, SoundSource category, float volume, float pitch) void
Level.playSound
(Player player, Entity entity, SoundEvent event, SoundSource category, float volume, float pitch) boolean
ExplosionDamageCalculator.shouldDamageEntity
(Explosion explosion, Entity entity) boolean
SimpleExplosionDamageCalculator.shouldDamageEntity
(Explosion explosion, Entity entity) boolean
Level.shouldTickDeath
(Entity entity) Method parameters in net.minecraft.world.level with type arguments of type EntityModifier and TypeMethodDescriptionstatic NaturalSpawner.SpawnState
NaturalSpawner.createState
(int spawnableChunkCount, Iterable<Entity> entities, NaturalSpawner.ChunkGetter chunkGetter, LocalMobCapCalculator calculator) EntityGetter.getEntities
(Entity entity, AABB area, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.EntityGetter.getEntities
(EntityTypeTest<Entity, T> entityTypeTest, AABB bounds, Predicate<? super T> predicate) Level.getEntities
(Entity entity, AABB boundingBox, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.Level.getEntities
(EntityTypeTest<Entity, T> entityTypeTest, AABB bounds, Predicate<? super T> predicate) <T extends Entity>
voidLevel.getEntities
(EntityTypeTest<Entity, T> entityTypeTest, AABB bounds, Predicate<? super T> predicate, List<? super T> output) <T extends Entity>
voidLevel.getEntities
(EntityTypeTest<Entity, T> entityTypeTest, AABB bounds, Predicate<? super T> predicate, List<? super T> output, int maxResults) default Player
EntityGetter.getNearestPlayer
(double x, double y, double z, double distance, Predicate<Entity> predicate) Constructors in net.minecraft.world.level with parameters of type EntityModifierConstructorDescriptionBlockCollisions
(CollisionGetter collisionGetter, Entity entity, AABB box, boolean onlySuffocatingBlocks, BiFunction<BlockPos.MutableBlockPos, VoxelShape, T> resultProvider) ClipContext
(Vec3 from, Vec3 to, ClipContext.Block block, ClipContext.Fluid fluid, Entity entity) Explosion
(Level level, Entity source, double x, double y, double z, float radius, boolean fire, Explosion.BlockInteraction blockInteraction) Explosion
(Level level, Entity source, double x, double y, double z, float radius, boolean fire, Explosion.BlockInteraction blockInteraction, List<BlockPos> positions) Explosion
(Level level, Entity source, double x, double y, double z, float radius, List<BlockPos> toBlow, Explosion.BlockInteraction blockInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, Holder<SoundEvent> explosionSound) Explosion
(Level level, Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, Explosion.BlockInteraction blockInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, Holder<SoundEvent> explosionSound) -
Uses of Entity in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type EntityModifier and TypeMethodDescriptionvoid
SculkSensorBlock.activate
(Entity entity, Level level, BlockPos pos, BlockState state, int power, int frequency) (package private) static BlockState
ComposterBlock.addItem
(Entity entity, BlockState state, LevelAccessor level, BlockPos pos, ItemStack stack) boolean
BellBlock.attemptToRing
(Entity entity, Level level, BlockPos pos, Direction direction) private void
private void
private static Vec3
EndGatewayBlock.calculateExitMovement
(Entity entity) private boolean
TurtleEggBlock.canDestroyEgg
(Level level, Entity entity) private static boolean
BigDripleafBlock.canEntityTilt
(BlockPos pos, Entity entity) static boolean
PowderSnowBlock.canEntityWalkOnPowderSnow
(Entity entity) static void
RespawnAnchorBlock.charge
(Entity entity, Level level, BlockPos pos, BlockState state) private void
BasePressurePlateBlock.checkPressed
(Entity entity, Level level, BlockPos pos, BlockState state, int currentSignal) private static DimensionTransition
NetherPortalBlock.createDimensionTransition
(ServerLevel level, BlockUtil.FoundRectangle rectangle, Direction.Axis axis, Vec3 offset, Entity entity, Vec3 speed, float yRot, float xRot, DimensionTransition.PostDimensionTransition postDimensionTransition) private void
TurtleEggBlock.destroyEgg
(Level level, BlockState state, BlockPos pos, Entity entity, int chance) private static boolean
HoneyBlock.doesEntityDoHoneyBlockSlideEffects
(Entity entity) private void
HoneyBlock.doSlideMovement
(Entity entity) static void
CampfireBlock.dowse
(Entity entity, LevelAccessor level, BlockPos pos, BlockState state) static void
Block.dropResources
(BlockState state, Level level, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool) (package private) static BlockState
ComposterBlock.empty
(Entity entity, BlockState state, LevelAccessor level, BlockPos pos) protected void
BaseFireBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
BasePressurePlateBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
BigDripleafBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
BubbleColumnBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
ButtonBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
CactusBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
CampfireBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
CropBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
DetectorRailBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
EndGatewayBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
EndPortalBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
FrogspawnBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
HoneyBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
HopperBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
LavaCauldronBlock.entityInside
(BlockState p_153506_, Level p_153507_, BlockPos p_153508_, Entity p_153509_) protected void
LayeredCauldronBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
NetherPortalBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) void
PitcherCropBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
PowderSnowBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
SweetBerryBushBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
TripWireBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
WaterlilyBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
WebBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) protected void
WitherRoseBlock.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) static BlockState
ComposterBlock.extractProduce
(Entity entity, BlockState state, Level level, BlockPos pos) void
BedBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
Block.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
FarmBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
HayBlock.fallOn
(Level p_153362_, BlockState p_153363_, BlockPos p_153364_, Entity p_153365_, float p_153366_) void
HoneyBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
PointedDripstoneBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
PowderSnowBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
SlimeBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
TurtleEggBlock.fallOn
(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) private static DimensionTransition
NetherPortalBlock.getDimensionTransitionFromExit
(Entity entity, BlockPos pos, BlockUtil.FoundRectangle rectangle, ServerLevel level, DimensionTransition.PostDimensionTransition postDimensionTransition) Block.getDrops
(BlockState state, ServerLevel level, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool) private DimensionTransition
NetherPortalBlock.getExitPortal
(ServerLevel level, Entity entity, BlockPos pos, BlockPos exitPos, boolean isNether, WorldBorder worldBorder) int
DropExperienceBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
RedStoneOreBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkCatalystBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkSensorBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkShriekerBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SpawnerBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) AnvilBlock.getFallDamageSource
(Entity entity) default DamageSource
Fallable.getFallDamageSource
(Entity entity) PointedDripstoneBlock.getFallDamageSource
(Entity entity) EndGatewayBlock.getPortalDestination
(ServerLevel level, Entity entity, BlockPos pos) EndPortalBlock.getPortalDestination
(ServerLevel level, Entity entity, BlockPos pos) NetherPortalBlock.getPortalDestination
(ServerLevel level, Entity entity, BlockPos pos) Portal.getPortalDestination
(ServerLevel level, Entity entity, BlockPos pos) int
NetherPortalBlock.getPortalTransitionTime
(ServerLevel level, Entity entity) default int
Portal.getPortalTransitionTime
(ServerLevel level, Entity entity) static BlockState
ComposterBlock.insertItem
(Entity entity, BlockState state, ServerLevel level, ItemStack stack, BlockPos pos) protected boolean
AbstractCauldronBlock.isEntityInsideContent
(BlockState state, BlockPos pos, Entity entity) private boolean
HoneyBlock.isSlidingDown
(BlockPos pos, Entity entity) private void
HoneyBlock.maybeDoSlideAchievement
(Entity entity, BlockPos pos) private void
HoneyBlock.maybeDoSlideEffects
(Level level, Entity entity) private void
NoteBlock.playNote
(Entity entity, BlockState state, Level level, BlockPos pos) private void
static void
LecternBlock.resetBookState
(Entity entity, Level level, BlockPos pos, BlockState state, boolean hasBook) void
DoorBlock.setOpen
(Entity entity, Level level, BlockState state, BlockPos pos, boolean open) static void
HoneyBlock.showJumpParticles
(Entity entity) private static void
HoneyBlock.showParticles
(Entity entity, int particleCount) static void
HoneyBlock.showSlideParticles
(Entity entity) private static void
CarvedPumpkinBlock.spawnGolemInWorld
(Level level, BlockPattern.BlockPatternMatch patternMatch, Entity golem, BlockPos pos) void
Block.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
MagmaBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
RedStoneOreBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
SculkSensorBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
SculkShriekerBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
SlimeBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) void
TurtleEggBlock.stepOn
(Level level, BlockPos pos, BlockState state, Entity entity) static void
SculkSensorBlock.tryResonateVibration
(Entity entity, Level level, BlockPos pos, int frequency) static void
FarmBlock.turnToDirt
(Entity entity, BlockState state, Level level, BlockPos pos) void
BedBlock.updateEntityAfterFallOn
(BlockGetter level, Entity entity) Called when an Entity lands on this Block.void
Block.updateEntityAfterFallOn
(BlockGetter level, Entity entity) Called when an Entity lands on this Block.void
SlimeBlock.updateEntityAfterFallOn
(BlockGetter level, Entity entity) Called when an Entity lands on this Block.private static int
TargetBlock.updateRedstoneOutput
(LevelAccessor level, BlockState state, BlockHitResult hit, Entity projectile) static InteractionResult
CaveVines.use
(Entity entity, BlockState state, Level level, BlockPos pos) Method parameters in net.minecraft.world.level.block with type arguments of type EntityModifier and TypeMethodDescriptionprotected static int
BasePressurePlateBlock.getEntityCount
(Level level, AABB box, Class<? extends Entity> entityClass) private <T extends AbstractMinecart>
List<T> DetectorRailBlock.getInteractingMinecartOfType
(Level level, BlockPos pos, Class<T> cartType, Predicate<Entity> filter) -
Uses of Entity in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return EntityModifier and TypeMethodDescriptionBeehiveBlockEntity.Occupant.createEntity
(Level level, BlockPos pos) Methods in net.minecraft.world.level.block.entity that return types with arguments of type EntityModifier and TypeMethodDescriptionBeehiveBlockEntity.releaseAllOccupants
(BlockState state, BeehiveBlockEntity.BeeReleaseStatus releaseStatus) Methods in net.minecraft.world.level.block.entity with parameters of type EntityModifier and TypeMethodDescriptionvoid
BeehiveBlockEntity.addOccupant
(Entity occupant) private static void
ConduitBlockEntity.animationTick
(Level level, BlockPos pos, List<BlockPos> positions, Entity entity, int tickCount) static void
HopperBlockEntity.entityInside
(Level level, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity) static BeehiveBlockEntity.Occupant
void
SculkSensorBlockEntity.VibrationUser.onReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, Entity entity, Entity playerEntity, float distance) void
SculkShriekerBlockEntity.VibrationUser.onReceiveVibration
(ServerLevel p_283372_, BlockPos p_281679_, Holder<GameEvent> p_316155_, Entity p_282286_, Entity p_281384_, float p_283119_) private void
SculkShriekerBlockEntity.shriek
(ServerLevel level, Entity sourceEntity) static ServerPlayer
SculkShriekerBlockEntity.tryGetPlayer
(Entity p_entity) Method parameters in net.minecraft.world.level.block.entity with type arguments of type EntityModifier and TypeMethodDescriptionprivate static boolean
BeehiveBlockEntity.releaseOccupant
(Level level, BlockPos pos, BlockState state, BeehiveBlockEntity.Occupant occupant, List<Entity> storedInHives, BeehiveBlockEntity.BeeReleaseStatus releaseStatus, BlockPos storedFlowerPos) -
Uses of Entity in net.minecraft.world.level.block.entity.trialspawner
Fields in net.minecraft.world.level.block.entity.trialspawner declared as EntityMethods in net.minecraft.world.level.block.entity.trialspawner with type parameters of type EntityModifier and TypeMethodDescriptionPlayerDetector.EntitySelector.getEntities
(ServerLevel level, EntityTypeTest<Entity, T> typeTest, AABB boundingBox, Predicate<? super T> predicate) Methods in net.minecraft.world.level.block.entity.trialspawner that return EntityModifier and TypeMethodDescriptionTrialSpawnerData.getOrCreateDisplayEntity
(TrialSpawner spawner, Level level, TrialSpawnerState spawnerState) private static Entity
TrialSpawnerState.selectEntityToSpawnItemAbove
(List<Player> player, Set<UUID> currentMobs, TrialSpawner spawner, BlockPos pos, ServerLevel level) Methods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type EntityModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either
<BlockEntity, Entity> TrialSpawner.getOwner()
Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type EntityModifier and TypeMethodDescriptionTrialSpawnerState.calculatePositionAbove
(Entity entity, ServerLevel level) Method parameters in net.minecraft.world.level.block.entity.trialspawner with type arguments of type EntityModifier and TypeMethodDescriptionPlayerDetector.EntitySelector.getEntities
(ServerLevel level, EntityTypeTest<Entity, T> typeTest, AABB boundingBox, Predicate<? super T> predicate) -
Uses of Entity in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston with parameters of type EntityModifier and TypeMethodDescriptionprivate static void
PistonMovingBlockEntity.fixEntityWithinPistonBase
(BlockPos pos, Entity entity, Direction dir, double progress) private static boolean
PistonMovingBlockEntity.matchesStickyCritera
(AABB box, Entity entity, BlockPos pos) private static void
PistonMovingBlockEntity.moveEntityByPiston
(Direction noClipDirection, Entity entity, double progress, Direction direction) -
Uses of Entity in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type EntityModifier and TypeMethodDescriptionfinal boolean
BlockBehaviour.BlockStateBase.entityCanStandOn
(BlockGetter level, BlockPos pos, Entity entity) final boolean
BlockBehaviour.BlockStateBase.entityCanStandOnFace
(BlockGetter level, BlockPos pos, Entity entity, Direction face) void
BlockBehaviour.BlockStateBase.entityInside
(Level level, BlockPos pos, Entity entity) protected void
BlockBehaviour.entityInside
(BlockState state, Level level, BlockPos pos, Entity entity) -
Uses of Entity in net.minecraft.world.level.border
Methods in net.minecraft.world.level.border with parameters of type EntityModifier and TypeMethodDescriptiondouble
WorldBorder.getDistanceToBorder
(Entity entity) boolean
WorldBorder.isInsideCloseToBorder
(Entity entity, AABB bounds) -
Uses of Entity in net.minecraft.world.level.chunk
Methods in net.minecraft.world.level.chunk with parameters of type Entity -
Uses of Entity in net.minecraft.world.level.chunk.storage
Methods in net.minecraft.world.level.chunk.storage that return types with arguments of type EntityModifier and TypeMethodDescriptionprivate static ChunkEntities
<Entity> EntityStorage.emptyChunk
(ChunkPos pos) EntityStorage.loadEntities
(ChunkPos pos) Method parameters in net.minecraft.world.level.chunk.storage with type arguments of type EntityModifier and TypeMethodDescriptionvoid
EntityStorage.storeEntities
(ChunkEntities<Entity> entities) -
Uses of Entity in net.minecraft.world.level.dimension.end
Fields in net.minecraft.world.level.dimension.end with type parameters of type Entity -
Uses of Entity in net.minecraft.world.level.entity
Fields in net.minecraft.world.level.entity declared as EntityModifier and TypeFieldDescriptionprivate final Entity
PersistentEntitySectionManager.Callback.realEntity
private final Entity
TransientEntitySectionManager.Callback.realEntity
Fields in net.minecraft.world.level.entity with type parameters of type EntityModifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.ints.Int2ObjectMap
<Entity> EntityTickList.active
private it.unimi.dsi.fastutil.ints.Int2ObjectMap
<Entity> EntityTickList.iterated
private it.unimi.dsi.fastutil.ints.Int2ObjectMap
<Entity> EntityTickList.passive
Methods in net.minecraft.world.level.entity with parameters of type EntityModifier and TypeMethodDescriptionvoid
boolean
void
Method parameters in net.minecraft.world.level.entity with type arguments of type Entity -
Uses of Entity in net.minecraft.world.level.gameevent
Fields in net.minecraft.world.level.gameevent declared as EntityModifier and TypeFieldDescriptionprivate final Entity
GameEvent.Context.sourceEntity
The field for thesourceEntity
record component.Fields in net.minecraft.world.level.gameevent with type parameters of type EntityMethods in net.minecraft.world.level.gameevent that return EntityModifier and TypeMethodDescriptionGameEvent.Context.sourceEntity()
Returns the value of thesourceEntity
record component.Methods in net.minecraft.world.level.gameevent with parameters of type EntityModifier and TypeMethodDescriptionstatic GameEvent.Context
static GameEvent.Context
GameEvent.Context.of
(Entity sourceEntity, BlockState affectedState) Constructors in net.minecraft.world.level.gameevent with parameters of type EntityModifierConstructorDescriptionContext
(Entity sourceEntity, BlockState affectedState) Creates an instance of aContext
record class.EntityPositionSource
(Entity entity, float yOffset) Constructor parameters in net.minecraft.world.level.gameevent with type arguments of type EntityModifierConstructorDescriptionprivate
EntityPositionSource
(com.mojang.datafixers.util.Either<Entity, com.mojang.datafixers.util.Either<UUID, Integer>> entityOrUuidOrId, float yOffset) -
Uses of Entity in net.minecraft.world.level.gameevent.vibrations
Fields in net.minecraft.world.level.gameevent.vibrations declared as EntityModifier and TypeFieldDescriptionprivate final Entity
VibrationInfo.entity
The field for theentity
record component.Methods in net.minecraft.world.level.gameevent.vibrations that return EntityModifier and TypeMethodDescriptionVibrationInfo.entity()
Returns the value of theentity
record component.Methods in net.minecraft.world.level.gameevent.vibrations that return types with arguments of type EntityModifier and TypeMethodDescriptionVibrationInfo.getEntity
(ServerLevel level) VibrationInfo.getProjectileOwner
(ServerLevel level) Methods in net.minecraft.world.level.gameevent.vibrations with parameters of type EntityModifier and TypeMethodDescriptionprivate static UUID
VibrationInfo.getProjectileOwner
(Entity entity) void
VibrationSystem.User.onReceiveVibration
(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, Entity entity, Entity playerEntity, float distance) Constructors in net.minecraft.world.level.gameevent.vibrations with parameters of type EntityModifierConstructorDescriptionVibrationInfo
(Holder<GameEvent> gameEvent, float distance, Vec3 pos, UUID uuid, UUID projectileOwnerUuid, Entity entity) Creates an instance of aVibrationInfo
record class.VibrationInfo
(Holder<GameEvent> p_316851_, float p_250190_, Vec3 p_251692_, Entity p_316868_) -
Uses of Entity in net.minecraft.world.level.levelgen.structure.templatesystem
Methods in net.minecraft.world.level.levelgen.structure.templatesystem that return types with arguments of type EntityModifier and TypeMethodDescriptionStructureTemplate.createEntityIgnoreException
(ServerLevelAccessor level, CompoundTag tag) -
Uses of Entity in net.minecraft.world.level.pathfinder
Methods in net.minecraft.world.level.pathfinder with parameters of type EntityModifier and TypeMethodDescriptionPath.getEntityPosAtNode
(Entity entity, int index) Gets the vector of theNode
associated with the given index.Path.getNextEntityPos
(Entity entity) -
Uses of Entity in net.minecraft.world.level.portal
Methods in net.minecraft.world.level.portal with parameters of type EntityModifier and TypeMethodDescriptionprivate static Vec3
DimensionTransition.findAdjustedSharedSpawnPos
(ServerLevel newLevel, Entity entity) static Vec3
PortalShape.findCollisionFreePosition
(Vec3 pos, ServerLevel level, Entity entity, EntityDimensions dimensions) static DimensionTransition
DimensionTransition.missingRespawnBlock
(ServerLevel level, Entity entity, DimensionTransition.PostDimensionTransition postDimensionTransition) void
DimensionTransition.PostDimensionTransition.onTransition
(Entity entity) private static void
DimensionTransition.placePortalTicket
(Entity entity) private static void
DimensionTransition.playPortalSound
(Entity entity) Constructors in net.minecraft.world.level.portal with parameters of type EntityModifierConstructorDescriptionDimensionTransition
(ServerLevel p_348609_, Entity p_352432_, DimensionTransition.PostDimensionTransition p_352373_) -
Uses of Entity in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot with type parameters of type EntityModifier and TypeFieldDescriptionprivate final LootContextParam
<? extends Entity> LootContext.EntityTarget.param
Methods in net.minecraft.world.level.storage.loot that return types with arguments of type EntityModifier and TypeMethodDescriptionLootContextParam
<? extends Entity> LootContext.EntityTarget.getParam()
Constructor parameters in net.minecraft.world.level.storage.loot with type arguments of type EntityModifierConstructorDescriptionprivate
EntityTarget
(String name, LootContextParam<? extends Entity> param) -
Uses of Entity in net.minecraft.world.level.storage.loot.parameters
Fields in net.minecraft.world.level.storage.loot.parameters with type parameters of type EntityModifier and TypeFieldDescriptionstatic final LootContextParam
<Entity> LootContextParams.ATTACKING_ENTITY
static final LootContextParam
<Entity> LootContextParams.DIRECT_ATTACKING_ENTITY
static final LootContextParam
<Entity> LootContextParams.THIS_ENTITY
-
Uses of Entity in net.minecraft.world.level.storage.loot.predicates
Methods in net.minecraft.world.level.storage.loot.predicates with parameters of type EntityModifier and TypeMethodDescriptionprotected boolean
EntityHasScoreCondition.hasScore
(LootContext lootContext, Entity targetEntity, Scoreboard scoreboard, String objectiveName, IntRange scoreRange) -
Uses of Entity in net.minecraft.world.phys
Fields in net.minecraft.world.phys declared as EntityMethods in net.minecraft.world.phys that return EntityMethods in net.minecraft.world.phys with parameters of type EntityConstructors in net.minecraft.world.phys with parameters of type EntityModifierConstructorDescriptionEntityHitResult
(Entity entity) EntityHitResult
(Entity entity, Vec3 location) -
Uses of Entity in net.minecraft.world.phys.shapes
Fields in net.minecraft.world.phys.shapes declared as EntityMethods in net.minecraft.world.phys.shapes that return EntityMethods in net.minecraft.world.phys.shapes with parameters of type EntityConstructors in net.minecraft.world.phys.shapes with parameters of type EntityModifierConstructorDescriptionprotected
EntityCollisionContext
(boolean descending, double entityBottom, ItemStack heldItem, Predicate<FluidState> canStandOnFluid, Entity entity) protected
EntityCollisionContext
(Entity entity) Deprecated. -
Uses of Entity in net.minecraft.world.scores
Methods in net.minecraft.world.scores with parameters of type Entity -
Uses of Entity in net.neoforged.neoforge.attachment
Methods in net.neoforged.neoforge.attachment with parameters of type EntityModifier and TypeMethodDescriptionstatic void
AttachmentInternals.copyEntityAttachments
(Entity from, Entity to, boolean isDeath) Do not call directly, useIEntityExtension.copyAttachmentsFrom(Entity, boolean)
. -
Uses of Entity in net.neoforged.neoforge.capabilities
Fields in net.neoforged.neoforge.capabilities with type parameters of type EntityModifier and TypeFieldDescription(package private) final Map
<EntityType<?>, List<ICapabilityProvider<Entity, C, T>>> EntityCapability.providers
Methods in net.neoforged.neoforge.capabilities with type parameters of type EntityModifier and TypeMethodDescriptionRegisterCapabilitiesEvent.registerEntity
(EntityCapability<T, C> capability, EntityType<E> entityType, ICapabilityProvider<? super E, C, T> provider) Register a capability provider for some entity type.Methods in net.neoforged.neoforge.capabilities with parameters of type Entity -
Uses of Entity in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type EntityModifier and TypeMethodDescriptionstatic ResourceLocation
ClientHooks.getArmorTexture
(Entity entity, ItemStack armor, ArmorMaterial.Layer layer, boolean innerModel, EquipmentSlot slot) static boolean
ClientHooks.isNameplateInRenderDistance
(Entity entity, double squareDistance) static void
ClientHooks.loadEntityShader
(Entity entity, GameRenderer entityRenderer) Constructors in net.neoforged.neoforge.client with parameters of type EntityModifierConstructorDescriptionClientCommandSourceStack
(CommandSource source, Vec3 position, Vec2 rotation, int permission, String plainTextName, Component displayName, Entity executing) -
Uses of Entity in net.neoforged.neoforge.client.event
Methods in net.neoforged.neoforge.client.event with type parameters of type EntityModifier and TypeMethodDescription<T extends Entity,
R extends EntityRenderer<T>>
REntityRenderersEvent.AddLayers.getRenderer
(EntityType<? extends T> entityType) Returns an entity renderer for the given entity type.<T extends Entity>
voidEntityRenderersEvent.RegisterRenderers.registerEntityRenderer
(EntityType<? extends T> entityType, EntityRendererProvider<T> entityRendererProvider) Registers an entity renderer for the given entity type.Constructors in net.neoforged.neoforge.client.event with parameters of type EntityModifierConstructorDescriptionRenderNameTagEvent
(Entity entity, Component content, EntityRenderer<?> entityRenderer, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, float partialTick) -
Uses of Entity in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type EntityModifier and TypeMethodDescriptiondefault org.joml.Vector3d
IClientBlockExtensions.getFogColor
(BlockState state, LevelReader level, BlockPos pos, Entity entity, org.joml.Vector3d originalColor, float partialTick) NOT CURRENTLY IMPLEMENTED -
Uses of Entity in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type EntityModifier and TypeMethodDescriptionstatic CriticalHitEvent
CommonHooks.fireCriticalHit
(Player player, Entity target, boolean vanillaCritical, float damageModifier) Fires theCriticalHitEvent
and returns the resulting event.static SweepAttackEvent
CommonHooks.fireSweepAttack
(Player player, Entity target, boolean isVanillaSweep) Fires theSweepAttackEvent
and returns the resulting event.IMinecartCollisionHandler.getCollisionBox
(AbstractMinecart cart, Entity other) This function replaced the function of the same name in EntityMinecart.static double
CommonHooks.getEntityVisibilityMultiplier
(LivingEntity entity, Entity lookingEntity, double originalMultiplier) @Nullable MerchantOffer
BasicItemListing.getOffer
(Entity p_219693_, RandomSource p_219694_) static void
CommonHooks.handleBlockDrops
(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Fires theBlockDropsEvent
when block drops (items and experience) are determined.static boolean
CommonHooks.isEntityInvulnerableTo
(Entity entity, DamageSource source, boolean isInvul) Creates and posts anEntityInvulnerabilityCheckEvent
.void
IMinecartCollisionHandler.onEntityCollision
(AbstractMinecart cart, Entity other) This basically replaces the function of the same name in EntityMinecart.static void
CommonHooks.onEntityEnterSection
(Entity entity, long packedOldPos, long packedNewPos) static boolean
CommonHooks.onFarmlandTrample
(Level level, BlockPos pos, BlockState state, float fallDistance, Entity entity) static @Nullable InteractionResult
CommonHooks.onInteractEntity
(Player player, Entity entity, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onInteractEntityAt
(Player player, Entity entity, HitResult ray, InteractionHand hand) static @Nullable InteractionResult
CommonHooks.onInteractEntityAt
(Player player, Entity entity, Vec3 vec3d, InteractionHand hand) static boolean
CommonHooks.onPlayerAttackTarget
(Player player, Entity target) static boolean
CommonHooks.onTravelToDimension
(Entity entity, ResourceKey<Level> dimension) -
Uses of Entity in net.neoforged.neoforge.common.advancements.critereon
Methods in net.neoforged.neoforge.common.advancements.critereon with parameters of type EntityModifier and TypeMethodDescriptionboolean
PiglinNeutralArmorEntityPredicate.matches
(Entity entity, ServerLevel level, @Nullable Vec3 position) boolean
SnowBootsEntityPredicate.matches
(Entity entity, ServerLevel level, @Nullable Vec3 position) -
Uses of Entity in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return EntityModifier and TypeMethodDescriptiondefault @Nullable Entity
IItemExtension.createEntity
(Level level, Entity location, ItemStack stack) This function should return a new entity to replace the dropped item.private Entity
IEntityExtension.self()
Methods in net.neoforged.neoforge.common.extensions that return types with arguments of type EntityModifier and TypeMethodDescription@Nullable com.mojang.datafixers.util.Either
<BlockEntity, Entity> IOwnedSpawner.getOwner()
Returns the block entity or entity which owns this spawner object.Methods in net.neoforged.neoforge.common.extensions with parameters of type EntityModifier and TypeMethodDescriptiondefault boolean
IBlockExtension.addRunningEffects
(BlockState state, Level level, BlockPos pos, Entity entity) Allows a block to override the standard vanilla running particles.default boolean
IBlockStateExtension.addRunningEffects
(Level level, BlockPos pos, Entity entity) Allows a block to override the standard vanilla running particles.default void
IServerChunkCacheExtension.broadcast
(Entity entity, CustomPacketPayload payload) Sends a payload to all players watching the given entity.default void
IServerChunkCacheExtension.broadcastAndSend
(Entity entity, CustomPacketPayload payload) Sends a payload to all players watching the given entity.default boolean
IEntityExtension.canBeRiddenUnderFluidType
(FluidType type, Entity rider) Returns whether the entity can ride in this vehicle under the fluid.default boolean
IBlockExtension.canEntityDestroy
(BlockState state, BlockGetter level, BlockPos pos, Entity entity) Determines if this block is can be destroyed by the specified entities normal behavior.default boolean
IBlockStateExtension.canEntityDestroy
(BlockGetter level, BlockPos pos, Entity entity) Determines if this block is can be destroyed by the specified entities normal behavior.default boolean
IBlockExtension.collisionExtendsVertically
(BlockState state, BlockGetter level, BlockPos pos, Entity collidingEntity) Determines if this block's collision box should be treated as though it can extend above its block space.default boolean
IBlockStateExtension.collisionExtendsVertically
(BlockGetter level, BlockPos pos, Entity collidingEntity) Determines if this block's collision box should be treated as though it can extend above its block space.default void
IEntityExtension.copyAttachmentsFrom
(Entity other, boolean isDeath) Copies the serialized attachments from another entity to this entity.default @Nullable Entity
IItemExtension.createEntity
(Level level, Entity location, ItemStack stack) This function should return a new entity to replace the dropped item.default @Nullable ResourceLocation
IItemExtension.getArmorTexture
(ItemStack stack, Entity entity, EquipmentSlot slot, ArmorMaterial.Layer layer, boolean innerModel) Called by RenderBiped and RenderPlayer to determine the armor texture that should be use for the currently equipped item.default int
IBlockExtension.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) Returns how many experience points this block drops when broken, before application of enchantments.default int
IBlockStateExtension.getExpDrop
(LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) Returns how many experience points this block drops when broken, before application of enchantments.default float
IBlockExtension.getFriction
(BlockState state, LevelReader level, BlockPos pos, @Nullable Entity entity) Gets the slipperiness at the given location at the given state.default float
IBlockStateExtension.getFriction
(LevelReader level, BlockPos pos, @Nullable Entity entity) Gets the slipperiness at the given location at the given state.default SoundType
IBlockExtension.getSoundType
(BlockState state, LevelReader level, BlockPos pos, @Nullable Entity entity) Sensitive version of getSoundTypedefault SoundType
IBlockStateExtension.getSoundType
(LevelReader level, BlockPos pos, @Nullable Entity entity) Sensitive version of getSoundTypedefault AABB
IItemExtension.getSweepHitBox
(ItemStack stack, Player player, Entity target) Get a bounding box (AABB
) of a sweep attack.default AABB
IItemStackExtension.getSweepHitBox
(Player player, Entity target) Get a bounding box (AABB
) of a sweep attack.default boolean
IPlayerExtension.isCloseEnough
(Entity entity, double dist) Utility check to see if the player is close enough to a target entity.default boolean
IItemExtension.onLeftClickEntity
(ItemStack stack, Player player, Entity entity) Called when the player Left Clicks (attacks) an entity. -
Uses of Entity in net.neoforged.neoforge.common.util
Subclasses of Entity in net.neoforged.neoforge.common.utilModifier and TypeClassDescriptionclass
A basic fake server player implementation that can be used to simulate player actions.Methods in net.neoforged.neoforge.common.util with parameters of type Entity -
Uses of Entity in net.neoforged.neoforge.common.world.chunk
Methods in net.neoforged.neoforge.common.world.chunk with parameters of type EntityModifier and TypeMethodDescriptionboolean
TicketController.forceChunk
(ServerLevel level, Entity owner, int chunkX, int chunkZ, boolean add, boolean ticking) Forces a chunk to be loaded with the "owner" of the ticket being the UUID of the given entity. -
Uses of Entity in net.neoforged.neoforge.entity
Classes in net.neoforged.neoforge.entity with type parameters of type EntitySubclasses of Entity in net.neoforged.neoforge.entityFields in net.neoforged.neoforge.entity declared as Entity -
Uses of Entity in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as EntityMethods in net.neoforged.neoforge.event that return EntityModifier and TypeMethodDescription@Nullable Entity
VanillaGameEvent.getCause()
PlayLevelSoundEvent.AtEntity.getEntity()
Returns the entity the sound is being played on.Methods in net.neoforged.neoforge.event with parameters of type EntityModifier and TypeMethodDescriptionstatic boolean
EventHooks.canEntityGrief
(Level level, @Nullable Entity entity) Checks if an entity can perform a griefing action.static boolean
EventHooks.canMountEntity
(Entity entityMounting, Entity entityBeingMounted, boolean isMounting) static void
EventHooks.fireEntityTickPost
(Entity entity) FiresEntityTickEvent.Post
.static EntityTickEvent.Pre
EventHooks.fireEntityTickPre
(Entity entity) FiresEntityTickEvent.Pre
.static EntityEvent.Size
EventHooks.getEntitySizeForge
(Entity entity, Pose pose, EntityDimensions size) static EntityEvent.Size
EventHooks.getEntitySizeForge
(Entity entity, Pose pose, EntityDimensions oldSize, EntityDimensions newSize) static Vec3
EventHooks.getExplosionKnockback
(Level level, Explosion explosion, Entity entity, Vec3 initialVelocity) To be called when an explosion has calculated the knockback velocity but has not yet added the knockback to the entity caught in blast.static boolean
EventHooks.onBlockPlace
(@Nullable Entity entity, BlockSnapshot blockSnapshot, Direction direction) static boolean
EventHooks.onEntityStruckByLightning
(Entity entity, LightningBolt bolt) EventHooks.onEntityTeleportCommand
(Entity entity, double targetX, double targetY, double targetZ) EventHooks.onEntityTeleportSpreadPlayersCommand
(Entity entity, double targetX, double targetY, double targetZ) static boolean
EventHooks.onMultiBlockPlace
(@Nullable Entity entity, List<BlockSnapshot> blockSnapshots, Direction direction) static PlayLevelSoundEvent.AtEntity
EventHooks.onPlaySoundAtEntity
(Entity entity, Holder<SoundEvent> name, SoundSource category, float volume, float pitch) static void
EventHooks.onStartEntityTracking
(Entity entity, Player player) static void
EventHooks.onStopEntityTracking
(Entity entity, Player player) Method parameters in net.neoforged.neoforge.event with type arguments of type EntityModifier and TypeMethodDescriptionstatic void
EventHooks.onExplosionDetonate
(Level level, Explosion explosion, List<Entity> list, double diameter) Constructors in net.neoforged.neoforge.event with parameters of type EntityModifierConstructorDescriptionAtEntity
(Entity entity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) -
Uses of Entity in net.neoforged.neoforge.event.entity
Classes in net.neoforged.neoforge.event.entity with type parameters of type EntityModifier and TypeClassDescriptionstatic class
Fields in net.neoforged.neoforge.event.entity declared as EntityModifier and TypeFieldDescriptionprivate final Entity
EntityEvent.entity
private final Entity
EntityMountEvent.entityBeingMounted
private final Entity
EntityMountEvent.entityMounting
Methods in net.neoforged.neoforge.event.entity with type parameters of type EntityModifier and TypeMethodDescription<T extends Entity>
voidRegisterSpawnPlacementsEvent.register
(EntityType<T> entityType, @Nullable SpawnPlacementType placementType, Heightmap.Types heightmap, SpawnPlacements.SpawnPredicate<T> predicate, RegisterSpawnPlacementsEvent.Operation operation) Register apredicate
for a givenentityType
andoperation
With the option of changing theplacementType
andheightmap
.<T extends Entity>
voidRegisterSpawnPlacementsEvent.register
(EntityType<T> entityType, SpawnPlacements.SpawnPredicate<T> predicate) Register an optional spawn placementpredicate
for a givenentityType
<T extends Entity>
voidRegisterSpawnPlacementsEvent.register
(EntityType<T> entityType, SpawnPlacements.SpawnPredicate<T> predicate, RegisterSpawnPlacementsEvent.Operation operation) Register apredicate
for a givenentityType
with a givenoperation
for handlingMethods in net.neoforged.neoforge.event.entity that return EntityModifier and TypeMethodDescriptionEntityEvent.getEntity()
EntityMountEvent.getEntityBeingMounted()
EntityMountEvent.getEntityMounting()
Constructors in net.neoforged.neoforge.event.entity with parameters of type EntityModifierConstructorDescriptionEnteringSection
(Entity entity, long packedOldPos, long packedNewPos) EntityConstructing
(Entity entity) EntityEvent
(Entity entity) EntityInvulnerabilityCheckEvent
(Entity entity, DamageSource source, boolean isVanillaInvulnerable) EntityJoinLevelEvent
(Entity entity, Level level) EntityJoinLevelEvent
(Entity entity, Level level, boolean loadedFromDisk) EntityLeaveLevelEvent
(Entity entity, Level level) EntityMobGriefingEvent
(Level level, Entity entity) EntityMountEvent
(Entity entityMounting, Entity entityBeingMounted, Level level, boolean isMounting) EntityStruckByLightningEvent
(Entity entity, LightningBolt lightning) EntityTeleportEvent
(Entity entity, double targetX, double targetY, double targetZ) EntityTravelToDimensionEvent
(Entity entity, ResourceKey<Level> dimension) Size
(Entity entity, Pose pose, EntityDimensions size) Size
(Entity entity, Pose pose, EntityDimensions oldSize, EntityDimensions newSize) SpreadPlayersCommand
(Entity entity, double targetX, double targetY, double targetZ) TeleportCommand
(Entity entity, double targetX, double targetY, double targetZ) -
Uses of Entity in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as EntityModifier and TypeFieldDescriptionprivate final @Nullable Entity
LivingEvent.LivingVisibilityEvent.lookingEntity
private final Entity
MobEffectEvent.Added.source
Fields in net.neoforged.neoforge.event.entity.living with type parameters of type EntityModifier and TypeFieldDescriptionprivate final @Nullable com.mojang.datafixers.util.Either
<BlockEntity, Entity> FinalizeSpawnEvent.spawner
Methods in net.neoforged.neoforge.event.entity.living that return EntityModifier and TypeMethodDescription@Nullable Entity
MobEffectEvent.Added.getEffectSource()
@Nullable Entity
LivingEvent.LivingVisibilityEvent.getLookingEntity()
Methods in net.neoforged.neoforge.event.entity.living that return types with arguments of type EntityModifier and TypeMethodDescription@Nullable com.mojang.datafixers.util.Either
<BlockEntity, Entity> FinalizeSpawnEvent.getSpawner()
Retrieves the underlyingBlockEntity
orEntity
that performed the spawn.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type EntityModifierConstructorDescriptionAdded
(LivingEntity living, MobEffectInstance oldEffectInstance, MobEffectInstance newEffectInstance, Entity source) LivingVisibilityEvent
(LivingEntity livingEntity, @Nullable Entity lookingEntity, double originalMultiplier) Constructor parameters in net.neoforged.neoforge.event.entity.living with type arguments of type EntityModifierConstructorDescriptionFinalizeSpawnEvent
(Mob entity, ServerLevelAccessor level, double x, double y, double z, DifficultyInstance difficulty, MobSpawnType spawnType, @Nullable SpawnGroupData spawnData, @Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> spawner) -
Uses of Entity in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as EntityModifier and TypeFieldDescriptionprivate final Entity
AttackEntityEvent.target
private final Entity
CriticalHitEvent.target
private final Entity
PlayerEvent.StartTracking.target
private final Entity
PlayerEvent.StopTracking.target
private final Entity
PlayerInteractEvent.EntityInteract.target
private final Entity
PlayerInteractEvent.EntityInteractSpecific.target
private final Entity
SweepAttackEvent.target
Methods in net.neoforged.neoforge.event.entity.player that return EntityModifier and TypeMethodDescriptionAttackEntityEvent.getTarget()
CriticalHitEvent.getTarget()
Returns the entity that was attacked by the player.PlayerEvent.StartTracking.getTarget()
The Entity now being tracked.PlayerEvent.StopTracking.getTarget()
The Entity no longer being tracked.PlayerInteractEvent.EntityInteract.getTarget()
PlayerInteractEvent.EntityInteractSpecific.getTarget()
SweepAttackEvent.getTarget()
Returns the target of the attack, which is guaranteed to be a valid attack target.Constructors in net.neoforged.neoforge.event.entity.player with parameters of type EntityModifierConstructorDescriptionAttackEntityEvent
(Player player, Entity target) CriticalHitEvent
(Player player, Entity target, float dmgMultiplier, boolean isCriticalHit) EntityInteract
(Player player, InteractionHand hand, Entity target) EntityInteractSpecific
(Player player, InteractionHand hand, Entity target, Vec3 localPos) StartTracking
(Player player, Entity target) StopTracking
(Player player, Entity target) SweepAttackEvent
(Player player, Entity target, boolean isVanillaSweep) -
Uses of Entity in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as EntityModifier and TypeFieldDescriptionprivate final @Nullable Entity
BlockDropsEvent.breaker
private final Entity
BlockEvent.EntityPlaceEvent.entity
private final Entity
BlockEvent.FarmlandTrampleEvent.entity
private final Entity
ExplosionKnockbackEvent.entity
Fields in net.neoforged.neoforge.event.level with type parameters of type EntityMethods in net.neoforged.neoforge.event.level that return EntityModifier and TypeMethodDescriptionExplosionKnockbackEvent.getAffectedEntity()
return the entity affected by the explosion knockback.@Nullable Entity
BlockDropsEvent.getBreaker()
Returns the entity that broke the block, or null if unknown.@Nullable Entity
BlockEvent.EntityPlaceEvent.getEntity()
BlockEvent.FarmlandTrampleEvent.getEntity()
Methods in net.neoforged.neoforge.event.level that return types with arguments of type EntityModifier and TypeMethodDescriptionExplosionEvent.Detonate.getAffectedEntities()
return the list of entities affected by the explosion.Constructors in net.neoforged.neoforge.event.level with parameters of type EntityModifierConstructorDescriptionBlockDropsEvent
(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Constructs a new BlockDropsEventEntityMultiPlaceEvent
(List<BlockSnapshot> blockSnapshots, BlockState placedAgainst, @Nullable Entity entity) EntityPlaceEvent
(BlockSnapshot blockSnapshot, BlockState placedAgainst, @Nullable Entity entity) ExplosionKnockbackEvent
(Level level, Explosion explosion, Entity entity, Vec3 knockbackVelocity) FarmlandTrampleEvent
(Level level, BlockPos pos, BlockState state, float fallDistance, Entity entity) Constructor parameters in net.neoforged.neoforge.event.level with type arguments of type Entity -
Uses of Entity in net.neoforged.neoforge.event.tick
Constructors in net.neoforged.neoforge.event.tick with parameters of type Entity -
Uses of Entity in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type EntityModifier and TypeMethodDescriptionboolean
FluidType.canExtinguish
(Entity entity) Returns whether the entity can be extinguished by this fluid.boolean
FluidType.canHydrate
(Entity entity) Returns whether the entity can be hydrated by this fluid.boolean
FluidType.canPushEntity
(Entity entity) Returns whether the fluid can push an entity.boolean
FluidType.canRideVehicleUnder
(Entity vehicle, Entity rider) Returns whether the entity can ride in this vehicle under the fluid.boolean
Returns whether the entity can swim in the fluid.float
FluidType.getFallDistanceModifier
(Entity entity) Returns how much the fluid should scale the damage done to a falling entity when hitting the ground per tick.@Nullable SoundEvent
FluidType.getSound
(Entity entity, SoundAction action) Returns a sound to play when a certain action is performed by the entity in the fluid.double
FluidType.motionScale
(Entity entity) Returns how much the velocity of the fluid should be scaled by when applied to an entity. -
Uses of Entity in net.neoforged.neoforge.network
Methods in net.neoforged.neoforge.network with parameters of type EntityModifier and TypeMethodDescriptionstatic void
PacketDistributor.sendToPlayersTrackingEntity
(Entity entity, CustomPacketPayload payload, CustomPacketPayload... payloads) Send the given payload(s) to all players tracking the given entitystatic void
PacketDistributor.sendToPlayersTrackingEntityAndSelf
(Entity entity, CustomPacketPayload payload, CustomPacketPayload... payloads) Send the given payload(s) to all players tracking the given entity and the entity itself if it is a player -
Uses of Entity in net.neoforged.neoforge.network.payload
Methods in net.neoforged.neoforge.network.payload with parameters of type EntityModifier and TypeMethodDescriptionprivate static byte[]
AdvancedAddEntityPayload.writeCustomData
(Entity entity) Constructors in net.neoforged.neoforge.network.payload with parameters of type Entity -
Uses of Entity in net.neoforged.neoforge.server.timings
Fields in net.neoforged.neoforge.server.timings with type parameters of type EntityModifier and TypeFieldDescriptionstatic final TimeTracker
<Entity> TimeTracker.ENTITY_UPDATE
A tracker for timing entity updates