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.getterEntitySubPredicates.EntityVariantPredicateType.getterMethods in net.minecraft.advancements.critereon with parameters of type EntityModifier and TypeMethodDescriptionstatic LootContextEntityPredicate.createContext(ServerPlayer player, Entity entity) static CompoundTagNbtPredicate.getEntityTagToCompare(Entity entity) booleanbooleanbooleanEntityPredicate.matches(ServerLevel level, Vec3 position, Entity entity) booleanEntityPredicate.matches(ServerPlayer player, Entity entity) booleanEntitySubPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanEntitySubPredicates.EntityHolderVariantPredicateType.Instance.matches(Entity entity, ServerLevel level, Vec3 position) booleanEntitySubPredicates.EntityVariantPredicateType.Instance.matches(Entity entity, ServerLevel level, Vec3 position) booleanFishingHookPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanLightningBoltPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanbooleanbooleanPlayerPredicate.matches(Entity p_entity, ServerLevel level, Vec3 position) booleanRaiderPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanSlimePredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanprivate static booleanSlotsPredicate.matchSlots(Entity entity, ItemPredicate predicate, it.unimi.dsi.fastutil.ints.IntList slots) voidEffectsChangedTrigger.trigger(ServerPlayer player, Entity source) voidFallAfterExplosionTrigger.trigger(ServerPlayer player, Vec3 pos, Entity entity) voidKilledTrigger.trigger(ServerPlayer player, Entity entity, DamageSource source) voidPickedUpItemTrigger.trigger(ServerPlayer player, ItemStack stack, Entity entity) voidPlayerHurtEntityTrigger.trigger(ServerPlayer player, Entity entity, DamageSource source, float amountDealt, float amountTaken, boolean blocked) voidPlayerInteractTrigger.trigger(ServerPlayer player, ItemStack item, Entity entity) voidSummonedEntityTrigger.trigger(ServerPlayer player, Entity entity) voidTargetBlockTrigger.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) voidChanneledLightningTrigger.trigger(ServerPlayer player, Collection<? extends Entity> entityTriggered) voidKilledByCrossbowTrigger.trigger(ServerPlayer player, Collection<Entity> entities) voidLightningStrikeTrigger.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.cameraEntityMinecraft.crosshairPickEntityprivate EntityCamera.entityMethods in net.minecraft.client that return EntityMethods in net.minecraft.client with parameters of type EntityModifier and TypeMethodDescriptionvoidMinecraft.setCameraEntity(Entity viewingEntity) voidCamera.setup(BlockGetter level, Entity entity, boolean detached, boolean thirdPersonReverse, float partialTick) booleanMinecraft.shouldEntityAppearGlowing(Entity entity) -
Uses of Entity in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type EntityModifier and TypeMethodDescriptionprivate voidGui.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 voidGui.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 TypeClassDescriptionclassAgeableHierarchicalModel<E extends Entity>classAgeableListModel<E extends Entity>classBlazeModel<T extends Entity>classChickenModel<T extends Entity>classclassColorableAgeableListModel<E extends Entity>classColorableHierarchicalModel<E extends Entity>classclassCreeperModel<T extends Entity>classDolphinModel<T extends Entity>classEndermiteModel<T extends Entity>classEntityModel<T extends Entity>classEvokerFangsModel<T extends Entity>classGhastModel<T extends Entity>classHierarchicalModel<E extends Entity>classLeashKnotModel<T extends Entity>classclassLlamaSpitModel<T extends Entity>classMinecartModel<T extends Entity>classOcelotModel<T extends Entity>classclassPufferfishBigModel<T extends Entity>classPufferfishMidModel<T extends Entity>classPufferfishSmallModel<T extends Entity>classQuadrupedModel<T extends Entity>classSalmonModel<T extends Entity>classShulkerBulletModel<T extends Entity>classSilverfishModel<T extends Entity>classSlimeModel<T extends Entity>classSnowGolemModel<T extends Entity>classSpiderModel<T extends Entity>classSquidModel<T extends Entity>classTropicalFishModelA<T extends Entity>classTropicalFishModelB<T extends Entity>classVillagerModel<T extends Entity>classWitchModel<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.entityStorageMethods in net.minecraft.client.multiplayer that return EntityModifier and TypeMethodDescriptionprivate EntityClientPacketListener.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 TypeMethodDescriptionvoidvoidAttacks 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.voidvoidClientLevel.EntityCallbacks.onDestroyed(Entity p_171700_) voidClientLevel.EntityCallbacks.onSectionChange(Entity p_233660_) voidClientLevel.EntityCallbacks.onTickingEnd(Entity p_171708_) voidClientLevel.EntityCallbacks.onTickingStart(Entity p_171704_) voidClientLevel.EntityCallbacks.onTrackingEnd(Entity p_171716_) voidClientLevel.EntityCallbacks.onTrackingStart(Entity p_171712_) voidClientLevel.playLocalSound(Entity entity, SoundEvent sound, SoundSource category, float volume, float pitch) voidClientLevel.playSeededSound(Player player, Entity entity, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) private voidClientPacketListener.postAddEntitySoundInstance(Entity entity) booleanClientLevel.shouldTickDeath(Entity entity) voidClientLevel.tickNonPassenger(Entity p_entity) private voidClientLevel.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 EntityTrackingEmitter.entityprivate final EntityItemPickupParticle.itemEntityprivate final EntityItemPickupParticle.targetMethods in net.minecraft.client.particle that return EntityMethods in net.minecraft.client.particle with parameters of type EntityModifier and TypeMethodDescriptionvoidParticleEngine.createTrackingEmitter(Entity entity, ParticleOptions particleData) voidParticleEngine.createTrackingEmitter(Entity entity, ParticleOptions data, int lifetime) private EntityItemPickupParticle.getSafeCopy(Entity entity) Constructors in net.minecraft.client.particle with parameters of type EntityModifierConstructorDescriptionItemPickupParticle(EntityRenderDispatcher entityRenderDispatcher, RenderBuffers buffers, ClientLevel level, Entity itemEntity, Entity target) privateItemPickupParticle(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) privateTrackingEmitter(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 TypeMethodDescriptionvoidCalled when the entity is dealt a critical hit.voidCalled when the entity hit is dealt extra melee damage due to an enchantment.booleanLocalPlayer.startRiding(Entity entity, boolean force) private booleanLocalPlayer.vehicleCanSprint(Entity vehicle) -
Uses of Entity in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type EntityModifier and TypeMethodDescriptionvoidGameRenderer.checkEntityPostEffect(Entity entity) What shader to use when spectating this entityprivate static FogRenderer.MobEffectFogFunctionFogRenderer.getPriorityFogFunction(Entity entity, float partialTick) private HitResultGameRenderer.pick(Entity entity, double blockInteractionRange, double entityInteractionRange, float partialTick) private voidLevelRenderer.renderEntity(Entity entity, double camX, double camY, double camZ, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource) private voidLevelRenderer.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 voidSpawnerRenderer.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 voidSupportBlockRenderer.drawHighlights(PoseStack poseStack, MultiBufferSource buffer, double camX, double camY, double camZ, Entity entity, DoubleSupplier biasGetter, float red, float green, float blue) private doubleDebugRenderer.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 TypeClassDescriptionclassEntityRenderer<T extends Entity>interfaceEntityRendererProvider<T extends Entity>classNoopRenderer<T extends Entity>interfaceRenderLayerParent<T extends Entity,M extends EntityModel<T>> classThrownItemRenderer<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 EntityEntityRenderDispatcher.getServerSideEntity(Entity entity) Methods in net.minecraft.client.renderer.entity with parameters of type EntityModifier and TypeMethodDescriptiondoubleEntityRenderDispatcher.distanceToSqr(Entity entity) private static EntityEntityRenderDispatcher.getServerSideEntity(Entity entity) ThrownItemRenderer.getTextureLocation(Entity entity) Returns the location of an entity's texture.voidprivate voidEntityRenderDispatcher.renderFlame(PoseStack poseStack, MultiBufferSource buffer, Entity entity, org.joml.Quaternionf quaternion) private static voidEntityRenderDispatcher.renderHitbox(PoseStack poseStack, VertexConsumer buffer, Entity p_entity, float red, float green, float blue, float alpha) private static voidEntityRenderDispatcher.renderServerSideHitbox(PoseStack poseStack, Entity p_entity, MultiBufferSource bufferSource) private static voidEntityRenderDispatcher.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 TypeClassDescriptionclassEnergySwirlLayer<T extends Entity & PowerableMob,M extends EntityModel<T>> classEyesLayer<T extends Entity,M extends EntityModel<T>> classRenderLayer<T extends Entity,M extends EntityModel<T>> classSaddleLayer<T extends Entity & Saddleable,M extends EntityModel<T>> classSpiderEyesLayer<T extends Entity,M extends SpiderModel<T>> Methods in net.minecraft.client.renderer.entity.layers with parameters of type EntityModifier and TypeMethodDescriptionprotected voidArrowLayer.renderStuckItem(PoseStack poseStack, MultiBufferSource buffer, int packedLight, Entity entity, float x, float y, float z, float partialTick) protected voidBeeStingerLayer.renderStuckItem(PoseStack poseStack, MultiBufferSource buffer, int packedLight, Entity entity, float x, float y, float z, float partialTick) protected abstract voidStuckInBodyLayer.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 doubleCompassItemPropertyFunction.getAngleFromEntityToPos(Entity entity, BlockPos pos) private floatCompassItemPropertyFunction.getCompassRotation(ItemStack stack, ClientLevel level, int seed, Entity entity) CompassItemPropertyFunction.CompassTarget.getPos(ClientLevel level, ItemStack stack, Entity entity) private floatCompassItemPropertyFunction.getRotationTowardsCompassTarget(Entity entity, long ticks, BlockPos pos) private doubleCompassItemPropertyFunction.getWrappedVisualRotationY(Entity entity) private booleanCompassItemPropertyFunction.isValidCompassTargetPos(Entity entity, GlobalPos pos) private ClientLevelCompassItemPropertyFunction.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) protectedCommandSourceStack(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.transformMethods in net.minecraft.commands.arguments that return EntityModifier and TypeMethodDescriptionstatic EntityEntityArgument.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_TYPEEntitySelector.contextFreePredicatesprivate final BiConsumer<Vec3, List<? extends Entity>> EntitySelector.orderprivate BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.orderstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelector.ORDER_ARBITRARYstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_FURTHESTstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_NEARESTstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_RANDOMEntitySelectorParser.predicatesprivate final EntityTypeTest<Entity, ?> EntitySelector.typeMethods 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 voidEntitySelector.addEntities(List<Entity> entities, ServerLevel level, AABB box, Predicate<Entity> predicate) private voidEntitySelector.addEntities(List<Entity> entities, ServerLevel level, AABB box, Predicate<Entity> predicate) voidEntitySelectorParser.addPredicate(Predicate<Entity> predicate) EntitySelectorParser.createRotationPredicate(WrappedMinMaxBounds angleBounds, ToDoubleFunction<Entity> angleFunction) static ComponentvoidEntitySelectorParser.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 DirectionDirection.getFacingAxis(Entity entity, Direction.Axis axis) static Direction[]Direction.orderedByNearest(Entity entity) Gets theDirectionvalues 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 TypeMethodDescriptionvoidGameTestHelper.assertEntityInstancePresent(Entity entity, int x, int y, int z) voidGameTestHelper.assertEntityInstancePresent(Entity entity, BlockPos pos) voidGameTestHelper.assertEntityPosition(Entity entity, AABB box, String exceptionMessage) voidStructureUtils.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.BoundChatType.bind(ResourceKey<ChatType> chatTypeKey, Entity entity) default MutableComponentComponentContents.resolve(CommandSourceStack nbtPathPattern, Entity entity, int recursionDepth) private static StyleComponentUtils.resolveStyle(CommandSourceStack commandSourceStack, Style style, Entity entity, int recursionDepth) static Optional<MutableComponent> ComponentUtils.updateForEntity(CommandSourceStack commandSourceStack, Optional<Component> optionalComponent, Entity entity, int recursionDepth) static MutableComponentComponentUtils.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 ServerboundInteractPacketServerboundInteractPacket.createAttackPacket(Entity entity, boolean usingSecondaryAction) static ServerboundInteractPacketServerboundInteractPacket.createInteractionPacket(Entity entity, boolean usingSecondaryAction, InteractionHand hand) static ServerboundInteractPacketServerboundInteractPacket.createInteractionPacket(Entity entity, boolean usingSecondaryAction, InteractionHand hand, Vec3 interactionLocation) static StringDebugEntityNameGenerator.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 EntityTeleportCommand.LookAtEntity.entityThe field for theentityrecord component.Methods in net.minecraft.server.commands that return EntityModifier and TypeMethodDescriptionstatic EntitySummonCommand.createEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag tag, boolean randomizeProperties) TeleportCommand.LookAtEntity.entity()Returns the value of theentityrecord component.Methods in net.minecraft.server.commands with parameters of type EntityModifier and TypeMethodDescriptionprivate static intAttributeCommand.addModifier(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, ResourceLocation id, double amount, AttributeModifier.Operation operation) private static intDamageCommand.damage(CommandSourceStack source, Entity target, float amount, DamageSource damageType) private static intRideCommand.dismount(CommandSourceStack source, Entity target) private static intLootCommand.dropKillLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Entity p_entity, LootCommand.DropConsumer dropConsumer) private static intItemCommands.entityToBlock(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot) private static intItemCommands.entityToBlock(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, Holder<LootItemFunction> modifier) private static intItemCommands.entityToEntities(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) private static intItemCommands.entityToEntities(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, Holder<LootItemFunction> modifier) private static intAttributeCommand.getAttributeBase(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, double scale) private static AttributeInstanceAttributeCommand.getAttributeInstance(Entity entity, Holder<Attribute> attribute) private static intAttributeCommand.getAttributeModifier(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, ResourceLocation id, double scale) private static intAttributeCommand.getAttributeValue(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, double scale) private static ItemStackItemCommands.getEntityItem(Entity entity, int slot) private static LivingEntityAttributeCommand.getEntityWithAttribute(Entity entity, Holder<Attribute> attribute) private static LivingEntityAttributeCommand.getLivingEntity(Entity target) private static intRideCommand.mount(CommandSourceStack source, Entity target, Entity vehicle) voidTeleportCommand.LookAt.perform(CommandSourceStack source, Entity entity) voidTeleportCommand.LookAtEntity.perform(CommandSourceStack p_326864_, Entity p_326807_) voidTeleportCommand.LookAtPosition.perform(CommandSourceStack p_326870_, Entity p_326894_) private static voidTeleportCommand.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 intAttributeCommand.removeModifier(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, ResourceLocation id) private static voidTeamMsgCommand.sendMessage(CommandSourceStack source, Entity sender, PlayerTeam team, List<ServerPlayer> teamMembers, PlayerChatMessage chatMessage) private static intAttributeCommand.setAttributeBase(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, double value) private static voidLootCommand.setSlots(Entity target, List<ItemStack> items, int startSlot, int numSlots, List<ItemStack> setItems) private static intSpectateCommand.spectate(CommandSourceStack source, Entity target, ServerPlayer player) private static intTeleportCommand.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 intTagCommand.addTag(CommandSourceStack source, Collection<? extends Entity> entities, String tagName) private static intItemCommands.blockToEntities(CommandSourceStack source, BlockPos pos, int sourceSlot, Collection<? extends Entity> targets, int slot) private static intItemCommands.blockToEntities(CommandSourceStack source, BlockPos pos, int sourceSlot, Collection<? extends Entity> targets, int slot, Holder<LootItemFunction> modifier) private static intEffectCommands.clearEffect(CommandSourceStack source, Collection<? extends Entity> targets, Holder<MobEffect> effect) private static intEffectCommands.clearEffects(CommandSourceStack source, Collection<? extends Entity> targets) private static intExecuteCommand.countItems(Iterable<? extends Entity> targets, SlotRange slotRange, Predicate<ItemStack> filter) private static intEnchantCommand.enchant(CommandSourceStack source, Collection<? extends Entity> targets, Holder<Enchantment> p_enchantment, int level) private static intLootCommand.entityReplace(Collection<? extends Entity> targets, int startSlot, int numSlots, List<ItemStack> items, LootCommand.Callback callback) private static intItemCommands.entityToEntities(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) private static intItemCommands.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 intSpreadPlayersCommand.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 intEffectCommands.giveEffect(CommandSourceStack source, Collection<? extends Entity> targets, Holder<MobEffect> effect, Integer seconds, int amplifier, boolean showParticles) private static intKillCommand.kill(CommandSourceStack source, Collection<? extends Entity> targets) private static intTagCommand.listTags(CommandSourceStack source, Collection<? extends Entity> entities) private static intItemCommands.modifyEntityItem(CommandSourceStack source, Collection<? extends Entity> targets, int sourceSlot, Holder<LootItemFunction> modifer) private static intTagCommand.removeTag(CommandSourceStack source, Collection<? extends Entity> entities, String tagName) private static intItemCommands.setEntityItem(CommandSourceStack source, Collection<? extends Entity> targets, int slot, ItemStack item) private static doubleSpreadPlayersCommand.setPlayerPositions(Collection<? extends Entity> targets, ServerLevel level, SpreadPlayersCommand.Position[] positions, int maxHeight, boolean respectTeams) private static intSpreadPlayersCommand.spreadPlayers(CommandSourceStack source, Vec2 center, float spreadDistance, float maxRange, int maxHeight, boolean respectTeams, Collection<? extends Entity> targets) private static intTeleportCommand.teleportToEntity(CommandSourceStack source, Collection<? extends Entity> targets, Entity destination) private static intTeleportCommand.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 aLookAtEntityrecord 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 EntityServerPlayer.cameraThe entity the player is currently spectating through.(package private) final EntityChunkMap.TrackedEntity.entityprivate final EntityServerEntity.entityFields in net.minecraft.server.level with type parameters of type EntityModifier and TypeFieldDescriptionprivate final PersistentEntitySectionManager<Entity> ServerLevel.entityManagerServerEntity.lastPassengersMethods 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 TypeMethodDescriptionvoidServerLevel.addDuringTeleport(Entity entity) protected voidvoidprivate booleanCalled when an entity is spawned in the world.booleanServerLevel.addFreshEntity(Entity entity) booleanWorldGenRegion.addFreshEntity(Entity entity) booleanServerLevel.addWithUUID(Entity entity) Used for "unnatural" ways of entities appearing in the world, e.g.voidAttacks for the player the targeted entity with the currently equipped item.voidServerPlayer.awardKillScore(Entity killed, int scoreValue, DamageSource damageSource) voidvoidprotected voidChunkMap.broadcastAndSend(Entity entity, Packet<?> packet) voidServerChunkCache.broadcastAndSend(Entity entity, Packet<?> packet) voidServerLevel.broadcastDamageEvent(Entity entity, DamageSource damageSource) voidServerLevel.broadcastEntityEvent(Entity entity, byte state) Sends aClientboundEntityEventPacketto all tracked players of that entity.voidCalled when the entity is dealt a critical hit.booleanWorldGenRegion.destroyBlock(BlockPos pos, boolean dropBlock, Entity entity, int recursionLeft) private static doubleChunkMap.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 floatServerPlayer.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.voidServerPlayer.lookAt(EntityAnchorArgument.Anchor fromAnchor, Entity entity, EntityAnchorArgument.Anchor toAnchor) voidCalled when the entity hit is dealt extra melee damage due to an enchantment.voidvoidServerLevel.EntityCallbacks.onDestroyed(Entity p_143359_) protected voidServerPlayer.onEffectAdded(MobEffectInstance effectInstance, Entity entity) protected voidServerPlayer.onEffectUpdated(MobEffectInstance effectInstance, boolean forced, Entity entity) voidServerPlayer.onExplosionHit(Entity entity) voidServerLevel.onReputationEvent(ReputationEventType type, Entity target, ReputationEventHandler host) voidServerLevel.EntityCallbacks.onSectionChange(Entity p_215086_) voidServerLevel.EntityCallbacks.onTickingEnd(Entity p_143367_) voidServerLevel.EntityCallbacks.onTickingStart(Entity p_143363_) voidServerLevel.EntityCallbacks.onTrackingEnd(Entity p_143375_) voidServerLevel.EntityCallbacks.onTrackingStart(Entity p_143371_) voidServerLevel.playSeededSound(Player player, Entity entity, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) protected voidChunkMap.removeEntity(Entity entity) voidServerChunkCache.removeEntity(Entity entity) voidprivate booleanServerLevel.shouldDiscardEntity(Entity entity) booleanServerPlayer.startRiding(Entity vehicle, boolean force) voidCalled when the entity picks up an item.voidServerLevel.tickNonPassenger(Entity p_entity) private voidServerLevel.tickPassenger(Entity ridingEntity, Entity passengerEntity) booleanServerLevel.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 TypeMethodDescriptionvoidServerLevel.addLegacyChunkEntities(Stream<Entity> entities) voidServerLevel.addWorldGenChunkEntities(Stream<Entity> entities) private static voidServerLevel.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 intServerGamePacketListenerImpl.getMaximumFlyingTicks(Entity entity) private booleanServerGamePacketListenerImpl.noBlocksAround(Entity entity) private voidServerGamePacketListenerImpl.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 voidContainers.dropContents(Level level, Entity entityAt, Container inventory) booleanTickRateManager.isEntityFrozen(Entity entity) -
Uses of Entity in net.minecraft.world.damagesource
Fields in net.minecraft.world.damagesource declared as EntityModifier and TypeFieldDescriptionprivate final EntityDamageSource.causingEntityprivate final EntityDamageSource.directEntityMethods 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 ComponentCombatTracker.getDisplayName(Entity entity) CombatTracker.getFallMessage(CombatEntry combatEntry, Entity p_entity) private ComponentCombatTracker.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) voidHealOrHarmMobEffect.applyInstantenousEffect(Entity source, Entity indirectSource, LivingEntity livingEntity, int amplifier, double health) voidMobEffect.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 TypeClassDescriptionclassEntityType<T extends Entity>static classEntityType.Builder<T extends Entity>static interfaceEntityType.EntityFactory<T extends Entity>static interfaceSpawnPlacements.SpawnPredicate<T extends Entity>Subclasses of Entity in net.minecraft.world.entityModifier and TypeClassDescriptionclassclassclassstatic classstatic classstatic classclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity declared as EntityFields in net.minecraft.world.entity with type parameters of type EntityModifier and TypeFieldDescriptionEntitySelector.CAN_BE_COLLIDED_WITHSelects entities which are collidable with and aren't spectatorsEntitySelector.CONTAINER_ENTITY_SELECTORSelects only entities which are container entitiesEntitySelector.ENTITY_NOT_BEING_RIDDENSelects only entities which are neither ridden by anything nor ride on anythingEntitySelector.ENTITY_STILL_ALIVESelects only entities which are aliveLightningBolt.hitEntitiesEntitySelector.LIVING_ENTITY_STILL_ALIVESelects only entities which are LivingEntities and aliveEntitySelector.NO_CREATIVE_OR_SPECTATORSelects entities which are neither creative-mode players nor spectator-playersEntitySelector.NO_SPECTATORSSelects entities which are either not players or players that are not spectatingprivate com.google.common.collect.ImmutableList<Entity> Entity.passengersAreaEffectCloud.victimsMethods 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 EntityLeashable.getLeashHolder()Leashable.getLeashHolder(E p_entity) TraceableEntity.getOwner()Entity.getRootVehicle()Entity.getVehicle()static EntityEntityType.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 TypeMethodDescriptionvoidbooleanLivingEntity.addEffect(MobEffectInstance effectInstance, Entity entity) protected voidEntity.addPassenger(Entity passenger) protected voidMarker.addPassenger(Entity p_270306_) protected voidOminousItemSpawner.addPassenger(Entity passenger) (package private) voidDisplay.PosRotInterpolationTarget.applyLerpStep(Entity entity) (package private) voidDisplay.PosRotInterpolationTarget.applyTargetPosAndRot(Entity entity) voidEntity.awardKillScore(Entity killed, int scoreValue, DamageSource source) protected booleanEntity.canAddPassenger(Entity passenger) protected booleanMarker.canAddPassenger(Entity p_265289_) protected booleanOminousItemSpawner.canAddPassenger(Entity passenger) booleanEntity.canCollideWith(Entity entity) protected booleandefault voidLeashable.closeRangeLeashBehaviour(Entity entity) voidPathfinderMob.closeRangeLeashBehaviour(Entity entity) booleanEntity.closerThan(Entity entity, double distance) booleanEntity.closerThan(Entity entity, double horizontalDistance, double verticalDistance) private static List<VoxelShape> Entity.collectColliders(Entity entity, Level level, List<VoxelShape> collisions, AABB boundingBox) static Vec3Entity.collideBoundingBox(Entity entity, Vec3 vec, AABB collisionBox, Level level, List<VoxelShape> potentialHits) voidEntity.copyPosition(Entity entity) Sets this entity's location and angles to the location and angles of the passed in entity.private voidLivingEntity.dismountVehicle(Entity vehicle) floatEntity.distanceTo(Entity entity) Returns the distance to the entity.doubleEntity.distanceToSqr(Entity entity) Returns the squared distance to the entity.booleanLivingEntity.doHurtTarget(Entity target) booleanMob.doHurtTarget(Entity entity) protected voidprotected voidLivingEntity.dropExperience(Entity entity) default voidLeashable.elasticRangeLeashBehaviour(Entity leashHolder, float distance) voidLivingEntity.forceAddEffect(MobEffectInstance instance, Entity entity) voidprotected static Vec3Entity.getDefaultPassengerAttachmentPoint(Entity vehicle, Entity passenger, EntityAttachments attachments) final intLivingEntity.getExperienceReward(ServerLevel level, Entity killer) protected floatLivingEntity.getKnockback(Entity attacker, DamageSource damageSource) protected Vec3Entity.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) doubleLivingEntity.getVisibilityPercent(Entity lookingEntity) default booleanLeashable.handleLeashAtDistance(Entity leashHolder, float distance) booleanPathfinderMob.handleLeashAtDistance(Entity leashHolder, float distance) booleanTamableAnimal.handleLeashAtDistance(Entity leashHolder, float distance) booleanEntity.hasIndirectPassenger(Entity p_entity) booleanLivingEntity.hasLineOfSight(Entity entity) booleanEntity.hasPassenger(Entity entity) booleanReturnstrueif Entity argument is equal to this EntitybooleanEntity.isAlliedTo(Entity entity) Returns whether this Entity is on the same team as the given Entity.booleanTamableAnimal.isAlliedTo(Entity entity) Returns whether this Entity is on the same team as the given Entity.booleanEntity.isPassengerOfSameVehicle(Entity entity) Leashable.legacyElasticRangeLeashBehaviour(E entity, Entity leashHolder, float distance) voidChanges the X and Y rotation so that this entity is facing the given entity.protected voidLivingEntity.onEffectAdded(MobEffectInstance effectInstance, Entity entity) protected voidLivingEntity.onEffectUpdated(MobEffectInstance effectInstance, boolean forced, Entity entity) voidEntity.onExplosionHit(Entity entity) voidEntity.onPassengerTurned(Entity entityToUpdate) Applies this entity's orientation to another entity.voidReputationEventHandler.onReputationEventFrom(ReputationEventType type, Entity target) final voidEntity.positionRider(Entity passenger) protected voidEntity.positionRider(Entity passenger, Entity.MoveFunction callback) booleanPortalProcessor.processPortalTeleportation(ServerLevel level, Entity entity, boolean canChangeDimensions) voidApplies a velocity to the entities, to push them away from each other.voidApplies a velocity to the entities, to push them away from each other.EntitySelector.pushableBy(Entity entity) protected voidEntity.removePassenger(Entity passenger) voidEntity.restoreFrom(Entity entity) Prepares this entity in new dimension by copying NBT data from entity in old dimensionvoidLivingEntity.setLastHurtMob(Entity entity) Leashable.setLeashedTo(E entity, Entity leashHolder, boolean broadcastPacket) default voidLeashable.setLeashedTo(Entity leashHolder, boolean broadcastPacket) voidLeashable.LeashData.setLeashHolder(Entity leashHolder) booleanEntity.skipAttackInteraction(Entity entity) Called when a player attacks an entity.booleanInteraction.skipAttackInteraction(Entity entity) Called when a player attacks an entity.booleanEntity.startRiding(Entity vehicle) booleanEntity.startRiding(Entity vehicle, boolean force) booleanMob.startRiding(Entity entity, boolean force) voidCalled when the entity picks up an item.booleanstatic voidEntityType.updateCustomEntityTag(Level level, Player player, Entity entity, CustomData customData) Method parameters in net.minecraft.world.entity with type arguments of type EntityModifier and TypeMethodDescriptionbooleanEntity.hasPassenger(Predicate<Entity> predicate) static EntityEntityType.loadEntityRecursive(CompoundTag compound, Level level, Function<Entity, Entity> entityFunction) static EntityEntityType.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 booleanDismountOrSkipMounting.isVehicleValid(LivingEntity entity, Entity vehicle, int distance) AnimalPanic.lookForWater(BlockGetter level, Entity entity) static voidBehaviorUtils.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 doubleLookControl.getWantedY(Entity entity) voidSets the controlling mob's look vector to the provided entity's locationvoidSets 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 BlockPosPanicGoal.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_TARGETConstructors 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 TypeMethodDescriptionbooleanSensing.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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields 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 booleanbooleanBee.doHurtTarget(Entity entity) booleanIronGolem.doHurtTarget(Entity entity) booleanPanda.doHurtTarget(Entity entity) protected voidprotected voidstatic booleanParrot.imitateNearbyMobs(Level level, Entity parrot) protected voidChicken.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 TypeMethodDescriptionvoidAllay.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 booleanCamel.canAddPassenger(Entity passenger) protected Vec3Camel.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) booleanCamel.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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassMethods in net.minecraft.world.entity.animal.horse with parameters of type EntityModifier and TypeMethodDescriptionprotected Vec3AbstractHorse.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3Llama.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) booleanAbstractHorse.handleLeashAtDistance(Entity leashHolder, float distance) protected voidAbstractHorse.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 TypeMethodDescriptionbooleanEnderDragon.addEffect(MobEffectInstance effectInstance, Entity entity) protected booleanMethod 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 TypeMethodDescriptionbooleanWitherBoss.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 TypeClassDescriptionclassclassclassclassclassclassclassFields 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 voidabstract voidvoidCalled when this entity is broken.private voidvoidCalled when this entity is broken.voidCalled when this entity is broken.booleanArmorStand.skipAttackInteraction(Entity entity) Called when a player attacks an entity.booleanBlockAttachedEntity.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 TypeMethodDescriptionvoidItemEntity.restoreFrom(Entity entity) Prepares this entity in new dimension by copying NBT data from entity in old dimensionvoidPrimedTnt.restoreFrom(Entity entity) Prepares this entity in new dimension by copying NBT data from entity in old dimensionvoidItemEntity.setThrower(Entity thrower) -
Uses of Entity in net.minecraft.world.entity.monster
Subclasses of Entity in net.minecraft.world.entity.monsterModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields 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 booleanStrider.canAddPassenger(Entity passenger) booleanCaveSpider.doHurtTarget(Entity entity) booleanCreeper.doHurtTarget(Entity entity) booleanHusk.doHurtTarget(Entity entity) booleanRavager.doHurtTarget(Entity entity) booleanWitherSkeleton.doHurtTarget(Entity entity) booleanZoglin.doHurtTarget(Entity entity) booleanZombie.doHurtTarget(Entity entity) protected Vec3Slime.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3Strider.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) CaveSpider.getVehicleAttachmentPoint(Entity entity) Spider.getVehicleAttachmentPoint(Entity entity) booleanRavager.hasLineOfSight(Entity entity) booleanAbstractIllager.isAlliedTo(Entity entity) Returns whether this Entity is on the same team as the given Entity.booleanEvoker.isAlliedTo(Entity entity) Returns whether this Entity is on the same team as the given Entity.voidApplies a velocity to the entities, to push them away from each other.voidApplies a velocity to the entities, to push them away from eachother.voidVex.restoreFrom(Entity entity) Prepares this entity in new dimension by copying NBT data from entity in old dimensionbooleanShulker.startRiding(Entity entity, boolean force) private voidRavager.strongKnockback(Entity entity) (package private) booleanEnderMan.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 EntityPiglin.getTopPassenger(Entity vehicle, int maxPosition) Methods in net.minecraft.world.entity.monster.piglin with parameters of type EntityModifier and TypeMethodDescriptionprivate EntityPiglin.getTopPassenger(Entity vehicle, int maxPosition) booleanPiglin.startRiding(Entity entity, boolean force) private static booleanPiglinAi.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.angerBySuspectAngerManagement.filterAngerManagement.suspectsMethods in net.minecraft.world.entity.monster.warden that return EntityMethods in net.minecraft.world.entity.monster.warden with parameters of type EntityModifier and TypeMethodDescriptionstatic voidWarden.applyDarknessAround(ServerLevel level, Vec3 pos, Entity source, int radius) protected booleanbooleanWarden.canTargetEntity(Entity entity) voidAngerManagement.clearAnger(Entity entity) voidWarden.clearAnger(Entity entity) intbooleanWarden.doHurtTarget(Entity entity) protected voidintAngerManagement.getActiveAnger(Entity entity) intAngerManagement.increaseAnger(Entity entity, int offset) voidWarden.increaseAngerAt(Entity entity) voidWarden.increaseAngerAt(Entity entity, int offset, boolean playListeningSound) voidWarden.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> voidAngerManagement.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) voidVillager.onReputationEventFrom(ReputationEventType type, Entity target) private voidVillager.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 TypeMethodDescriptionvoidAttacks for the player the targeted entity with the currently equipped item.booleanPlayer.canInteractWithEntity(Entity entity, double distance) voidCalled when the entity is dealt a critical hit.protected floatPlayer.getEnchantedDamage(Entity entity, float damage, DamageSource damageSource) Player.interactOn(Entity entityToInteractOn, InteractionHand hand) voidCalled 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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.projectile declared as EntityModifier and TypeFieldDescriptionprivate EntityProjectile.cachedOwnerprivate EntityShulkerBullet.finalTargetprivate EntityFishingHook.hookedInprivate EntityProjectile.lastDeflectedByFields 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 voidThrownPotion.applySplash(Iterable<MobEffectInstance> effects, Entity p_entity) protected booleanAbstractArrow.canHitEntity(Entity target) protected booleanAbstractHurtingProjectile.canHitEntity(Entity target) protected booleanFishingHook.canHitEntity(Entity target) protected booleanProjectile.canHitEntity(Entity target) protected booleanShulkerBullet.canHitEntity(Entity target) booleanProjectile.deflect(ProjectileDeflection deflection, Entity entity, Entity owner, boolean deflectedByPlayer) voidProjectileDeflection.deflect(Projectile projectile, Entity entity, RandomSource random) static EntityHitResultProjectileUtil.getEntityHitResult(Entity shooter, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, double distance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) Gets the EntityHitResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, float inflationAmount) Gets the EntityHitResult representing the entity hitprivate static HitResultProjectileUtil.getHitResult(Vec3 pos, Entity projectile, Predicate<Entity> filter, Vec3 deltaMovement, Level level, float margin, ClipContext.Block clipContext) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity projectile, Predicate<Entity> filter) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity projectile, Predicate<Entity> filter, ClipContext.Block clipContext) static HitResultProjectileUtil.getHitResultOnViewVector(Entity projectile, Predicate<Entity> filter, double scale) private static booleanThrownEnderpearl.isAllowedToTeleportOwner(Entity entity, Level level) protected voidAbstractHurtingProjectile.onDeflection(Entity entity, boolean deflectedByPlayer) protected voidProjectile.onDeflection(Entity entity, boolean deflectedByPlayer) protected booleanprotected voidFishingHook.pullEntity(Entity p_entity) voidProjectile.restoreFrom(Entity entity) Prepares this entity in new dimension by copying NBT data from entity in old dimensionstatic voidProjectileUtil.rotateTowardsMovement(Entity projectile, float rotationSpeed) private voidFishingHook.setHookedEntity(Entity hookedEntity) voidvoidvoidvoidProjectile.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 EntityHitResultProjectileUtil.getEntityHitResult(Entity shooter, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, double distance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) Gets the EntityHitResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, float inflationAmount) Gets the EntityHitResult representing the entity hitprivate static HitResultProjectileUtil.getHitResult(Vec3 pos, Entity projectile, Predicate<Entity> filter, Vec3 deltaMovement, Level level, float margin, ClipContext.Block clipContext) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity projectile, Predicate<Entity> filter) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity projectile, Predicate<Entity> filter, ClipContext.Block clipContext) static HitResultProjectileUtil.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 TypeClassDescriptionclassclassclassMethods in net.minecraft.world.entity.projectile.windcharge with parameters of type EntityModifier and TypeMethodDescriptionbooleanAbstractWindCharge.canCollideWith(Entity entity) protected booleanAbstractWindCharge.canHitEntity(Entity target) booleanWindCharge.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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassMethods in net.minecraft.world.entity.vehicle with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanBoat.canAddPassenger(Entity passenger) booleanAbstractMinecart.canCollideWith(Entity entity) booleanBoat.canCollideWith(Entity entity) static booleanBoat.canVehicleCollide(Entity vehicle, Entity entity) default voidContainerEntity.chestVehicleDestroyed(DamageSource damageSource, Level level, Entity p_entity) protected voidBoat.clampRotation(Entity entityToUpdate) Applies this boat's yaw to the given entity.voidBoat.elasticRangeLeashBehaviour(Entity leashHolder, float distance) protected Vec3AbstractMinecart.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3Boat.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) booleanBoat.hasEnoughSpaceFor(Entity entity) voidBoat.onPassengerTurned(Entity entityToUpdate) Applies this entity's orientation (pitch/yaw) to another entity.protected voidBoat.positionRider(Entity passenger, Entity.MoveFunction callback) voidApplies a velocity to the entities, to push them away from each other.voidApplies 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 EntityItemStack.entityRepresentationThe 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 TypeMethodDescriptionfloatItem.getAttackDamageBonus(Entity target, float damage, DamageSource damageSource) floatMaceItem.getAttackDamageBonus(Entity target, float damage, DamageSource damageSource) voidCompassItem.inventoryTick(ItemStack stack, Level level, Entity entity, int itemSlot, boolean isSelected) Called each tick as long the item is in a player's inventory.voidItem.inventoryTick(ItemStack stack, Level level, Entity entity, int slotId, boolean isSelected) Called each tick as long the item is in a player's inventory.voidItemStack.inventoryTick(Level level, Entity entity, int inventorySlot, boolean isCurrentItem) Called each tick as long theItemStackin in player's inventory.voidMapItem.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 voidprivate static Predicate<LivingEntity> MaceItem.knockbackPredicate(Player player, Entity entity) private voidBundleItem.playDropContentsSound(Entity entity) private voidBundleItem.playInsertSound(Entity entity) private voidBundleItem.playRemoveOneSound(Entity entity) voidItemStack.setEntityRepresentation(Entity entity) voidMapItem.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 LootContextEnchantment.blockHitContext(ServerLevel level, int enchantmentLevel, Entity entity, Vec3 origin, BlockState state) static LootContextEnchantment.damageContext(ServerLevel level, int enchantmentLevel, Entity entity, DamageSource damageSource) voidEnchantment.doPostAttack(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, EnchantmentTarget target, Entity entity, DamageSource damageSource) static voidEnchantment.doPostAttack(TargetedConditionalEffect<EnchantmentEntityEffect> effect, ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity p_entity, DamageSource damageSource) static voidEnchantmentHelper.doPostAttackEffects(ServerLevel level, Entity entity, DamageSource damageSource) static voidEnchantmentHelper.doPostAttackEffectsWithItemSource(ServerLevel level, Entity entity, DamageSource damageSource, ItemStack itemSource) static LootContextEnchantment.entityContext(ServerLevel level, int enchantmentLevel, Entity entity, Vec3 origin) static intEnchantmentHelper.getFishingLuckBonus(ServerLevel level, ItemStack stack, Entity entity) static floatEnchantmentHelper.getFishingTimeReduction(ServerLevel level, ItemStack stack, Entity entity) static intEnchantmentHelper.getTridentReturnToOwnerAcceleration(ServerLevel level, ItemStack stack, Entity entity) booleanEnchantment.isImmuneToDamage(ServerLevel level, int enchantmentLevel, Entity entity, DamageSource damageSource) static LootContextEnchantment.locationContext(ServerLevel level, int enchantmentLevel, Entity entity, boolean enchantmentActive) static floatEnchantmentHelper.modifyArmorEffectiveness(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float armorEffectiveness) voidEnchantment.modifyArmorEffectivness(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat armorEffectiveness) voidEnchantment.modifyDamage(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat damage) static floatEnchantmentHelper.modifyDamage(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float damage) voidEnchantment.modifyDamageFilteredValue(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> componentType, ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat value) voidEnchantment.modifyDamageProtection(ServerLevel level, int enchantmentLevel, ItemStack stack, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat damageProtection) voidEnchantment.modifyEntityFilteredValue(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> componentType, ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat value) voidEnchantment.modifyFallBasedDamage(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat fallBasedDamage) static floatEnchantmentHelper.modifyFallBasedDamage(ServerLevel level, ItemStack tool, Entity enity, DamageSource damageSource, float fallBasedDamage) voidEnchantment.modifyFishingLuckBonus(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat fishingLuckBonus) voidEnchantment.modifyFishingTimeReduction(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat fishingTimeReduction) voidEnchantment.modifyKnockback(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat knockback) static floatEnchantmentHelper.modifyKnockback(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float knockback) voidEnchantment.modifyMobExperience(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat mobExperience) voidEnchantment.modifyProjectileCount(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat projectileCount) voidEnchantment.modifyProjectileSpread(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat projectileSpread) voidEnchantment.modifyTridentReturnToOwnerAcceleration(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat tridentReturnToOwnerAcceleration) voidEnchantment.onHitBlock(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, BlockState state) static voidEnchantmentHelper.onHitBlock(ServerLevel level, ItemStack stack, LivingEntity owner, Entity entity, EquipmentSlot slot, Vec3 pos, BlockState state, Consumer<Item> onBreak) voidEnchantment.onProjectileSpawned(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity) static intEnchantmentHelper.processMobExperience(ServerLevel level, Entity killer, Entity mob, int experience) static intEnchantmentHelper.processProjectileCount(ServerLevel level, ItemStack tool, Entity entity, int projectileCount) static floatEnchantmentHelper.processProjectileSpread(ServerLevel level, ItemStack tool, Entity entity, float projectileSpread) voidEnchantment.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 TypeMethodDescriptionvoidAllOf.EntityEffects.apply(ServerLevel p_346093_, int p_345940_, EnchantedItemInUse p_344929_, Entity p_345319_, Vec3 p_345200_) voidApplyMobEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidDamageEntity.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidDamageItem.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidEnchantmentEntityEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidExplodeEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidIgnite.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidPlaySoundEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidReplaceBlock.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidReplaceDisk.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidRunFunction.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidSetBlockProperties.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidSpawnParticlesEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidSummonEntityEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity p_entity, Vec3 origin) private DamageSourceExplodeEffect.getDamageSource(Entity entity, Vec3 pos) voidAllOf.LocationBasedEffects.onChangedBlock(ServerLevel p_345329_, int p_345154_, EnchantedItemInUse p_344984_, Entity p_345671_, Vec3 p_344781_, boolean p_345113_) voidEnchantmentAttributeEffect.onChangedBlock(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, boolean applyTransientEffects) default voidEnchantmentEntityEffect.onChangedBlock(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, boolean applyTransientEffects) voidEnchantmentLocationBasedEffect.onChangedBlock(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, boolean applyTransientEffects) voidAllOf.LocationBasedEffects.onDeactivated(EnchantedItemInUse p_346024_, Entity p_346234_, Vec3 p_346036_, int p_345698_) voidEnchantmentAttributeEffect.onDeactivated(EnchantedItemInUse item, Entity entity, Vec3 pos, int enchantmentLevel) default voidEnchantmentLocationBasedEffect.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 EntityBaseSpawner.displayEntityCached instance of the entity to render inside the spawner.private final EntityEntityBasedExplosionDamageCalculator.sourceprivate final EntityExplosion.sourceMethods 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 EntityLevel.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 booleanLevelWriter.addFreshEntity(Entity entity) default voidServerLevelAccessor.addFreshEntityWithPassengers(Entity entity) private VoxelShapeCollisionGetter.borderCollision(Entity entity, AABB box) voidLevel.broadcastDamageEvent(Entity entity, DamageSource damageSource) voidLevel.broadcastEntityEvent(Entity entity, byte state) Sends aClientboundEntityEventPacketto all tracked players of that entity.default booleanCollisionGetter.collidesWithSuffocatingBlock(Entity entity, AABB box) booleanLevel.destroyBlock(BlockPos pos, boolean dropBlock, Entity entity, int recursionLeft) default booleanLevelWriter.destroyBlock(BlockPos pos, boolean dropBlock, Entity entity) booleanLevelWriter.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 voiddefault voiddefault Iterable<VoxelShape> CollisionGetter.getBlockCollisions(Entity entity, AABB collisionBox) default Iterable<VoxelShape> CollisionGetter.getCollisions(Entity entity, AABB collisionBox) static DamageSourceExplosion.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) floatExplosionDamageCalculator.getEntityDamageAmount(Explosion explosion, Entity entity) private static LivingEntityExplosion.getIndirectSourceEntityInternal(Entity source) floatExplosionDamageCalculator.getKnockbackMultiplier(Entity entity) floatSimpleExplosionDamageCalculator.getKnockbackMultiplier(Entity entity) default PlayerEntityGetter.getNearestPlayer(Entity entity, double distance) static floatExplosion.getSeenPercent(Vec3 explosionVector, Entity entity) default booleanCollisionGetter.isUnobstructed(Entity entity) default booleanCollisionGetter.isUnobstructed(Entity entity, VoxelShape shape) default booleanCommonLevelAccessor.isUnobstructed(Entity entity, VoxelShape shape) default booleanEntityGetter.isUnobstructed(Entity p_entity, VoxelShape shape) booleanLevel.loadedAndEntityCanStandOn(BlockPos pos, Entity entity) booleanLevel.loadedAndEntityCanStandOnFace(BlockPos pos, Entity entity, Direction direction) private ExplosionDamageCalculatorExplosion.makeDamageCalculator(Entity entity) default booleanCollisionGetter.noBlockCollision(Entity entity, AABB boundingBox) default booleanCollisionGetter.noCollision(Entity entity) default booleanCollisionGetter.noCollision(Entity entity, AABB collisionBox) voidLevel.playLocalSound(Entity entity, SoundEvent sound, SoundSource category, float volume, float pitch) abstract voidLevel.playSeededSound(Player player, Entity entity, Holder<SoundEvent> sound, SoundSource category, float volume, float pitch, long seed) voidLevel.playSound(Entity entity, BlockPos pos, SoundEvent sound, SoundSource category, float volume, float pitch) voidLevel.playSound(Player player, Entity entity, SoundEvent event, SoundSource category, float volume, float pitch) booleanExplosionDamageCalculator.shouldDamageEntity(Explosion explosion, Entity entity) booleanSimpleExplosionDamageCalculator.shouldDamageEntity(Explosion explosion, Entity entity) booleanLevel.shouldTickDeath(Entity entity) Method parameters in net.minecraft.world.level with type arguments of type EntityModifier and TypeMethodDescriptionstatic NaturalSpawner.SpawnStateNaturalSpawner.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 PlayerEntityGetter.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 TypeMethodDescriptionvoidSculkSensorBlock.activate(Entity entity, Level level, BlockPos pos, BlockState state, int power, int frequency) (package private) static BlockStateComposterBlock.addItem(Entity entity, BlockState state, LevelAccessor level, BlockPos pos, ItemStack stack) booleanBellBlock.attemptToRing(Entity entity, Level level, BlockPos pos, Direction direction) private voidprivate voidprivate static Vec3EndGatewayBlock.calculateExitMovement(Entity entity) private booleanTurtleEggBlock.canDestroyEgg(Level level, Entity entity) private static booleanBigDripleafBlock.canEntityTilt(BlockPos pos, Entity entity) static booleanPowderSnowBlock.canEntityWalkOnPowderSnow(Entity entity) static voidRespawnAnchorBlock.charge(Entity entity, Level level, BlockPos pos, BlockState state) private voidBasePressurePlateBlock.checkPressed(Entity entity, Level level, BlockPos pos, BlockState state, int currentSignal) private static DimensionTransitionNetherPortalBlock.createDimensionTransition(ServerLevel level, BlockUtil.FoundRectangle rectangle, Direction.Axis axis, Vec3 offset, Entity entity, Vec3 speed, float yRot, float xRot, DimensionTransition.PostDimensionTransition postDimensionTransition) private voidTurtleEggBlock.destroyEgg(Level level, BlockState state, BlockPos pos, Entity entity, int chance) private static booleanHoneyBlock.doesEntityDoHoneyBlockSlideEffects(Entity entity) private voidHoneyBlock.doSlideMovement(Entity entity) static voidCampfireBlock.dowse(Entity entity, LevelAccessor level, BlockPos pos, BlockState state) static voidBlock.dropResources(BlockState state, Level level, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool) (package private) static BlockStateComposterBlock.empty(Entity entity, BlockState state, LevelAccessor level, BlockPos pos) protected voidBaseFireBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidBasePressurePlateBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidBigDripleafBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidBubbleColumnBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidButtonBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidCactusBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidCampfireBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidCropBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidDetectorRailBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidEndGatewayBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidEndPortalBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidFrogspawnBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidHoneyBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidHopperBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidLavaCauldronBlock.entityInside(BlockState p_153506_, Level p_153507_, BlockPos p_153508_, Entity p_153509_) protected voidLayeredCauldronBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidNetherPortalBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) voidPitcherCropBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidPowderSnowBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidSweetBerryBushBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidTripWireBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidWaterlilyBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidWebBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected voidWitherRoseBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity) static BlockStateComposterBlock.extractProduce(Entity entity, BlockState state, Level level, BlockPos pos) voidBedBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidFarmBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidHayBlock.fallOn(Level p_153362_, BlockState p_153363_, BlockPos p_153364_, Entity p_153365_, float p_153366_) voidHoneyBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidPointedDripstoneBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidPowderSnowBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidSlimeBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidTurtleEggBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, float fallDistance) private static DimensionTransitionNetherPortalBlock.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 DimensionTransitionNetherPortalBlock.getExitPortal(ServerLevel level, Entity entity, BlockPos pos, BlockPos exitPos, boolean isNether, WorldBorder worldBorder) intDropExperienceBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intRedStoneOreBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkCatalystBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkSensorBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkShriekerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSpawnerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) AnvilBlock.getFallDamageSource(Entity entity) default DamageSourceFallable.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) intNetherPortalBlock.getPortalTransitionTime(ServerLevel level, Entity entity) default intPortal.getPortalTransitionTime(ServerLevel level, Entity entity) static BlockStateComposterBlock.insertItem(Entity entity, BlockState state, ServerLevel level, ItemStack stack, BlockPos pos) protected booleanAbstractCauldronBlock.isEntityInsideContent(BlockState state, BlockPos pos, Entity entity) private booleanHoneyBlock.isSlidingDown(BlockPos pos, Entity entity) private voidHoneyBlock.maybeDoSlideAchievement(Entity entity, BlockPos pos) private voidHoneyBlock.maybeDoSlideEffects(Level level, Entity entity) private voidNoteBlock.playNote(Entity entity, BlockState state, Level level, BlockPos pos) private voidstatic voidLecternBlock.resetBookState(Entity entity, Level level, BlockPos pos, BlockState state, boolean hasBook) voidDoorBlock.setOpen(Entity entity, Level level, BlockState state, BlockPos pos, boolean open) static voidHoneyBlock.showJumpParticles(Entity entity) private static voidHoneyBlock.showParticles(Entity entity, int particleCount) static voidHoneyBlock.showSlideParticles(Entity entity) private static voidCarvedPumpkinBlock.spawnGolemInWorld(Level level, BlockPattern.BlockPatternMatch patternMatch, Entity golem, BlockPos pos) voidBlock.stepOn(Level level, BlockPos pos, BlockState state, Entity entity) voidMagmaBlock.stepOn(Level level, BlockPos pos, BlockState state, Entity entity) voidRedStoneOreBlock.stepOn(Level level, BlockPos pos, BlockState state, Entity entity) voidSculkSensorBlock.stepOn(Level level, BlockPos pos, BlockState state, Entity entity) voidSculkShriekerBlock.stepOn(Level level, BlockPos pos, BlockState state, Entity entity) voidSlimeBlock.stepOn(Level level, BlockPos pos, BlockState state, Entity entity) voidTurtleEggBlock.stepOn(Level level, BlockPos pos, BlockState state, Entity entity) static voidSculkSensorBlock.tryResonateVibration(Entity entity, Level level, BlockPos pos, int frequency) static voidFarmBlock.turnToDirt(Entity entity, BlockState state, Level level, BlockPos pos) voidBedBlock.updateEntityAfterFallOn(BlockGetter level, Entity entity) Called when an Entity lands on this Block.voidBlock.updateEntityAfterFallOn(BlockGetter level, Entity entity) Called when an Entity lands on this Block.voidSlimeBlock.updateEntityAfterFallOn(BlockGetter level, Entity entity) Called when an Entity lands on this Block.private static intTargetBlock.updateRedstoneOutput(LevelAccessor level, BlockState state, BlockHitResult hit, Entity projectile) static InteractionResultCaveVines.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 intBasePressurePlateBlock.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 TypeMethodDescriptionvoidBeehiveBlockEntity.addOccupant(Entity occupant) private static voidConduitBlockEntity.animationTick(Level level, BlockPos pos, List<BlockPos> positions, Entity entity, int tickCount) static voidHopperBlockEntity.entityInside(Level level, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity) static BeehiveBlockEntity.OccupantvoidSculkSensorBlockEntity.VibrationUser.onReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, Entity entity, Entity playerEntity, float distance) voidSculkShriekerBlockEntity.VibrationUser.onReceiveVibration(ServerLevel p_283372_, BlockPos p_281679_, Holder<GameEvent> p_316155_, Entity p_282286_, Entity p_281384_, float p_283119_) private voidSculkShriekerBlockEntity.shriek(ServerLevel level, Entity sourceEntity) static ServerPlayerSculkShriekerBlockEntity.tryGetPlayer(Entity p_entity) Method parameters in net.minecraft.world.level.block.entity with type arguments of type EntityModifier and TypeMethodDescriptionprivate static booleanBeehiveBlockEntity.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 EntityTrialSpawnerState.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 voidPistonMovingBlockEntity.fixEntityWithinPistonBase(BlockPos pos, Entity entity, Direction dir, double progress) private static booleanPistonMovingBlockEntity.matchesStickyCritera(AABB box, Entity entity, BlockPos pos) private static voidPistonMovingBlockEntity.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 booleanBlockBehaviour.BlockStateBase.entityCanStandOn(BlockGetter level, BlockPos pos, Entity entity) final booleanBlockBehaviour.BlockStateBase.entityCanStandOnFace(BlockGetter level, BlockPos pos, Entity entity, Direction face) voidBlockBehaviour.BlockStateBase.entityInside(Level level, BlockPos pos, Entity entity) protected voidBlockBehaviour.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 TypeMethodDescriptiondoubleWorldBorder.getDistanceToBorder(Entity entity) booleanWorldBorder.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 TypeMethodDescriptionvoidEntityStorage.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 EntityPersistentEntitySectionManager.Callback.realEntityprivate final EntityTransientEntitySectionManager.Callback.realEntityFields in net.minecraft.world.level.entity with type parameters of type EntityModifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity> EntityTickList.activeprivate it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity> EntityTickList.iteratedprivate it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity> EntityTickList.passiveMethods in net.minecraft.world.level.entity with parameters of type EntityModifier and TypeMethodDescriptionvoidbooleanvoidMethod 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 EntityGameEvent.Context.sourceEntityThe field for thesourceEntityrecord 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 thesourceEntityrecord component.Methods in net.minecraft.world.level.gameevent with parameters of type EntityModifier and TypeMethodDescriptionstatic GameEvent.Contextstatic GameEvent.ContextGameEvent.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 aContextrecord class.EntityPositionSource(Entity entity, float yOffset) Constructor parameters in net.minecraft.world.level.gameevent with type arguments of type EntityModifierConstructorDescriptionprivateEntityPositionSource(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 EntityVibrationInfo.entityThe field for theentityrecord component.Methods in net.minecraft.world.level.gameevent.vibrations that return EntityModifier and TypeMethodDescriptionVibrationInfo.entity()Returns the value of theentityrecord 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 UUIDVibrationInfo.getProjectileOwner(Entity entity) voidVibrationSystem.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 aVibrationInforecord 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 theNodeassociated 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 Vec3DimensionTransition.findAdjustedSharedSpawnPos(ServerLevel newLevel, Entity entity) static Vec3PortalShape.findCollisionFreePosition(Vec3 pos, ServerLevel level, Entity entity, EntityDimensions dimensions) static DimensionTransitionDimensionTransition.missingRespawnBlock(ServerLevel level, Entity entity, DimensionTransition.PostDimensionTransition postDimensionTransition) voidDimensionTransition.PostDimensionTransition.onTransition(Entity entity) private static voidDimensionTransition.placePortalTicket(Entity entity) private static voidDimensionTransition.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.paramMethods 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 EntityModifierConstructorDescriptionprivateEntityTarget(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_ENTITYstatic final LootContextParam<Entity> LootContextParams.DIRECT_ATTACKING_ENTITYstatic 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 booleanEntityHasScoreCondition.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 EntityModifierConstructorDescriptionprotectedEntityCollisionContext(boolean descending, double entityBottom, ItemStack heldItem, Predicate<FluidState> canStandOnFluid, Entity entity) protectedEntityCollisionContext(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 voidAttachmentInternals.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.providersMethods 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 ResourceLocationClientHooks.getArmorTexture(Entity entity, ItemStack armor, ArmorMaterial.Layer layer, boolean innerModel, EquipmentSlot slot) static booleanClientHooks.isNameplateInRenderDistance(Entity entity, double squareDistance) static voidClientHooks.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.Vector3dIClientBlockExtensions.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 CriticalHitEventCommonHooks.fireCriticalHit(Player player, Entity target, boolean vanillaCritical, float damageModifier) Fires theCriticalHitEventand returns the resulting event.static SweepAttackEventCommonHooks.fireSweepAttack(Player player, Entity target, boolean isVanillaSweep) Fires theSweepAttackEventand returns the resulting event.IMinecartCollisionHandler.getCollisionBox(AbstractMinecart cart, Entity other) This function replaced the function of the same name in EntityMinecart.static doubleCommonHooks.getEntityVisibilityMultiplier(LivingEntity entity, Entity lookingEntity, double originalMultiplier) @Nullable MerchantOfferBasicItemListing.getOffer(Entity p_219693_, RandomSource p_219694_) static voidCommonHooks.handleBlockDrops(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Fires theBlockDropsEventwhen block drops (items and experience) are determined.static booleanCommonHooks.isEntityInvulnerableTo(Entity entity, DamageSource source, boolean isInvul) Creates and posts anEntityInvulnerabilityCheckEvent.voidIMinecartCollisionHandler.onEntityCollision(AbstractMinecart cart, Entity other) This basically replaces the function of the same name in EntityMinecart.static voidCommonHooks.onEntityEnterSection(Entity entity, long packedOldPos, long packedNewPos) static booleanCommonHooks.onFarmlandTrample(Level level, BlockPos pos, BlockState state, float fallDistance, Entity entity) static @Nullable InteractionResultCommonHooks.onInteractEntity(Player player, Entity entity, InteractionHand hand) static @Nullable InteractionResultCommonHooks.onInteractEntityAt(Player player, Entity entity, HitResult ray, InteractionHand hand) static @Nullable InteractionResultCommonHooks.onInteractEntityAt(Player player, Entity entity, Vec3 vec3d, InteractionHand hand) static booleanCommonHooks.onPlayerAttackTarget(Player player, Entity target) static booleanCommonHooks.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 TypeMethodDescriptionbooleanPiglinNeutralArmorEntityPredicate.matches(Entity entity, ServerLevel level, @Nullable Vec3 position) booleanSnowBootsEntityPredicate.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 EntityIItemExtension.createEntity(Level level, Entity location, ItemStack stack) This function should return a new entity to replace the dropped item.private EntityIEntityExtension.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 booleanIBlockExtension.addRunningEffects(BlockState state, Level level, BlockPos pos, Entity entity) Allows a block to override the standard vanilla running particles.default booleanIBlockStateExtension.addRunningEffects(Level level, BlockPos pos, Entity entity) Allows a block to override the standard vanilla running particles.default voidIServerChunkCacheExtension.broadcast(Entity entity, CustomPacketPayload payload) Sends a payload to all players watching the given entity.default voidIServerChunkCacheExtension.broadcastAndSend(Entity entity, CustomPacketPayload payload) Sends a payload to all players watching the given entity.default booleanIEntityExtension.canBeRiddenUnderFluidType(FluidType type, Entity rider) Returns whether the entity can ride in this vehicle under the fluid.default booleanIBlockExtension.canEntityDestroy(BlockState state, BlockGetter level, BlockPos pos, Entity entity) Determines if this block is can be destroyed by the specified entities normal behavior.default booleanIBlockStateExtension.canEntityDestroy(BlockGetter level, BlockPos pos, Entity entity) Determines if this block is can be destroyed by the specified entities normal behavior.default booleanIBlockExtension.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 booleanIBlockStateExtension.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 voidIEntityExtension.copyAttachmentsFrom(Entity other, boolean isDeath) Copies the serialized attachments from another entity to this entity.default @Nullable EntityIItemExtension.createEntity(Level level, Entity location, ItemStack stack) This function should return a new entity to replace the dropped item.default @Nullable ResourceLocationIItemExtension.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 intIBlockExtension.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 intIBlockStateExtension.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 floatIBlockExtension.getFriction(BlockState state, LevelReader level, BlockPos pos, @Nullable Entity entity) Gets the slipperiness at the given location at the given state.default floatIBlockStateExtension.getFriction(LevelReader level, BlockPos pos, @Nullable Entity entity) Gets the slipperiness at the given location at the given state.default SoundTypeIBlockExtension.getSoundType(BlockState state, LevelReader level, BlockPos pos, @Nullable Entity entity) Sensitive version of getSoundTypedefault SoundTypeIBlockStateExtension.getSoundType(LevelReader level, BlockPos pos, @Nullable Entity entity) Sensitive version of getSoundTypedefault AABBIItemExtension.getSweepHitBox(ItemStack stack, Player player, Entity target) Get a bounding box (AABB) of a sweep attack.default AABBIItemStackExtension.getSweepHitBox(Player player, Entity target) Get a bounding box (AABB) of a sweep attack.default booleanIPlayerExtension.isCloseEnough(Entity entity, double dist) Utility check to see if the player is close enough to a target entity.default booleanIItemExtension.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 TypeClassDescriptionclassA 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 TypeMethodDescriptionbooleanTicketController.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 EntityVanillaGameEvent.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 booleanEventHooks.canEntityGrief(Level level, @Nullable Entity entity) Checks if an entity can perform a griefing action.static booleanEventHooks.canMountEntity(Entity entityMounting, Entity entityBeingMounted, boolean isMounting) static voidEventHooks.fireEntityTickPost(Entity entity) FiresEntityTickEvent.Post.static EntityTickEvent.PreEventHooks.fireEntityTickPre(Entity entity) FiresEntityTickEvent.Pre.static EntityEvent.SizeEventHooks.getEntitySizeForge(Entity entity, Pose pose, EntityDimensions size) static EntityEvent.SizeEventHooks.getEntitySizeForge(Entity entity, Pose pose, EntityDimensions oldSize, EntityDimensions newSize) static Vec3EventHooks.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 booleanEventHooks.onBlockPlace(@Nullable Entity entity, BlockSnapshot blockSnapshot, Direction direction) static booleanEventHooks.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 booleanEventHooks.onMultiBlockPlace(@Nullable Entity entity, List<BlockSnapshot> blockSnapshots, Direction direction) static PlayLevelSoundEvent.AtEntityEventHooks.onPlaySoundAtEntity(Entity entity, Holder<SoundEvent> name, SoundSource category, float volume, float pitch) static voidEventHooks.onStartEntityTracking(Entity entity, Player player) static voidEventHooks.onStopEntityTracking(Entity entity, Player player) Method parameters in net.neoforged.neoforge.event with type arguments of type EntityModifier and TypeMethodDescriptionstatic voidEventHooks.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 classFields in net.neoforged.neoforge.event.entity declared as EntityModifier and TypeFieldDescriptionprivate final EntityEntityEvent.entityprivate final EntityEntityMountEvent.entityBeingMountedprivate final EntityEntityMountEvent.entityMountingMethods 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 apredicatefor a givenentityTypeandoperationWith the option of changing theplacementTypeandheightmap.<T extends Entity>
voidRegisterSpawnPlacementsEvent.register(EntityType<T> entityType, SpawnPlacements.SpawnPredicate<T> predicate) Register an optional spawn placementpredicatefor a givenentityType<T extends Entity>
voidRegisterSpawnPlacementsEvent.register(EntityType<T> entityType, SpawnPlacements.SpawnPredicate<T> predicate, RegisterSpawnPlacementsEvent.Operation operation) Register apredicatefor a givenentityTypewith a givenoperationfor 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 EntityLivingEvent.LivingVisibilityEvent.lookingEntityprivate final EntityMobEffectEvent.Added.sourceFields 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.spawnerMethods in net.neoforged.neoforge.event.entity.living that return EntityModifier and TypeMethodDescription@Nullable EntityMobEffectEvent.Added.getEffectSource()@Nullable EntityLivingEvent.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 underlyingBlockEntityorEntitythat 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 EntityAttackEntityEvent.targetprivate final EntityCriticalHitEvent.targetprivate final EntityPlayerEvent.StartTracking.targetprivate final EntityPlayerEvent.StopTracking.targetprivate final EntityPlayerInteractEvent.EntityInteract.targetprivate final EntityPlayerInteractEvent.EntityInteractSpecific.targetprivate final EntitySweepAttackEvent.targetMethods 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 EntityBlockDropsEvent.breakerprivate final EntityBlockEvent.EntityPlaceEvent.entityprivate final EntityBlockEvent.FarmlandTrampleEvent.entityprivate final EntityExplosionKnockbackEvent.entityFields 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 EntityBlockDropsEvent.getBreaker()Returns the entity that broke the block, or null if unknown.@Nullable EntityBlockEvent.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 TypeMethodDescriptionbooleanFluidType.canExtinguish(Entity entity) Returns whether the entity can be extinguished by this fluid.booleanFluidType.canHydrate(Entity entity) Returns whether the entity can be hydrated by this fluid.booleanFluidType.canPushEntity(Entity entity) Returns whether the fluid can push an entity.booleanFluidType.canRideVehicleUnder(Entity vehicle, Entity rider) Returns whether the entity can ride in this vehicle under the fluid.booleanReturns whether the entity can swim in the fluid.floatFluidType.getFallDistanceModifier(Entity entity) Returns how much the fluid should scale the damage done to a falling entity when hitting the ground per tick.@Nullable SoundEventFluidType.getSound(Entity entity, SoundAction action) Returns a sound to play when a certain action is performed by the entity in the fluid.doubleFluidType.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 voidPacketDistributor.sendToPlayersTrackingEntity(Entity entity, CustomPacketPayload payload, CustomPacketPayload... payloads) Send the given payload(s) to all players tracking the given entitystatic voidPacketDistributor.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_UPDATEA tracker for timing entity updates