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
Methods 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) booleanFishingHookPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanLightningBoltPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanbooleanbooleanPlayerPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanRaiderPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanSheepPredicate.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 TypeMethodDescriptionvoidChanneledLightningTrigger.trigger(ServerPlayer player, Collection<? extends Entity> entityTriggered) voidKilledByArrowTrigger.trigger(ServerPlayer player, Collection<Entity> victims, ItemStack firedFromWeapon) voidLightningStrikeTrigger.trigger(ServerPlayer player, LightningBolt lightning, List<Entity> nearbyEntities) -
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.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()ClientLevel.getPushableEntities(Entity entity, AABB boundingBox) Methods in net.minecraft.client.multiplayer with parameters of type EntityModifier and TypeMethodDescriptionvoidvoidAttacks an entityvoidClientLevel.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) ClientLevel.getPushableEntities(Entity entity, AABB boundingBox) voidMultiPlayerGameMode.handlePickItemFromEntity(Entity entity, boolean includeData) MultiPlayerGameMode.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.booleanClientLevel.isTickingEntity(Entity entity) voidClientLevel.levelEvent(Entity entity, int type, BlockPos pos, int data) 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 source, float volume, float pitch) voidClientLevel.playSeededSound(Entity entity, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidClientLevel.playSeededSound(Entity entity, Entity sourceEntity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) private voidClientPacketListener.postAddEntitySoundInstance(Entity entity) private static booleanClientPacketListener.setValuesFromPositionPacket(PositionMoveRotation positionMoveRotation, Set<Relative> relatives, Entity entity, boolean lerp) booleanClientLevel.shouldTickDeath(Entity entity) voidClientLevel.tickNonPassenger(Entity 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, ClientLevel level, Entity itemEntity, Entity target) ItemPickupParticle(EntityRenderDispatcher entityRenderDispatcher, ClientLevel level, Entity itemEntity, Entity target, Vec3 speed) TrackingEmitter(ClientLevel level, Entity entity, ParticleOptions particleType) TrackingEmitter(ClientLevel level, Entity entity, ParticleOptions particleType, int lifetime) TrackingEmitter(ClientLevel level, Entity entity, ParticleOptions particleType, int lifetime, Vec3 speedVector) -
Uses of Entity in net.minecraft.client.player
Subclasses of Entity in net.minecraft.client.playerMethods in net.minecraft.client.player with parameters of type EntityModifier and TypeMethodDescriptionvoidCalled when the entity is dealt a critical hit.voidbooleanLocalPlayer.startRiding(Entity entity, boolean force) private booleanLocalPlayer.vehicleCanSprint(Entity vehicle) -
Uses of Entity in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer with type parameters of type EntityModifier and TypeFieldDescriptionprivate static final Comparator<Entity> LevelRenderer.ENTITY_COMPARATORLevelRenderer.visibleEntitiesMethods in net.minecraft.client.renderer with parameters of type EntityModifier and TypeMethodDescriptionvoidGameRenderer.checkEntityPostEffect(Entity entity) What shader to use when spectating this entityprivate 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 buffer, Entity entity, double camX, double camY, double camZ, BlockPos pos, BlockState state, int color) Method parameters in net.minecraft.client.renderer with type arguments of type EntityModifier and TypeMethodDescriptionprivate booleanLevelRenderer.collectVisibleEntities(Camera camera, Frustum frustum, List<Entity> output) private voidLevelRenderer.renderEntities(PoseStack poseStack, MultiBufferSource.BufferSource bufferSource, Camera camera, DeltaTracker deltaTracker, List<Entity> entities) -
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,S extends EntityRenderState> interfaceEntityRendererProvider<T extends Entity>classNoopRenderer<T extends Entity>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 xOffset, double yOffset, double zOffset, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight) private <E extends Entity,S extends EntityRenderState>
voidEntityRenderDispatcher.render(E entity, double xOffset, double yOffset, double zOffset, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, EntityRenderer<? super E, S> renderer) <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 EntityGuardianRenderer.getEntityToLookAt(Guardian guardian) private static EntityEntityRenderer.getServerSideEntity(Entity entity) Methods in net.minecraft.client.renderer.entity with parameters of type EntityModifier and TypeMethodDescriptiondoubleEntityRenderDispatcher.distanceToSqr(Entity entity) private static EntityEntityRenderer.getServerSideEntity(Entity entity) void -
Uses of Entity in net.minecraft.client.renderer.entity.state
Methods in net.minecraft.client.renderer.entity.state with parameters of type EntityModifier and TypeMethodDescriptionvoidItemClusterRenderState.extractItemGroupRenderState(Entity entity, ItemStack stack, ItemModelResolver itemModelResolver) -
Uses of Entity in net.minecraft.client.renderer.fog.environment
Methods in net.minecraft.client.renderer.fog.environment with parameters of type EntityModifier and TypeMethodDescriptionbooleanAtmosphericFogEnvironment.isApplicable(FogType p_423642_, Entity p_423662_) booleanDimensionOrBossFogEnvironment.isApplicable(FogType p_423493_, Entity p_423455_) abstract booleanFogEnvironment.isApplicable(FogType fogType, Entity entity) booleanLavaFogEnvironment.isApplicable(FogType p_423685_, Entity p_423469_) booleanMobEffectFogEnvironment.isApplicable(FogType p_423548_, Entity p_423681_) booleanPowderedSnowFogEnvironment.isApplicable(FogType p_423443_, Entity p_423658_) booleanWaterFogEnvironment.isApplicable(FogType p_423569_, Entity p_423444_) voidAtmosphericFogEnvironment.setupFog(FogData p_423515_, Entity p_423566_, BlockPos p_423678_, ClientLevel p_423511_, float p_423456_, DeltaTracker p_423432_) voidBlindnessFogEnvironment.setupFog(FogData p_423496_, Entity p_423549_, BlockPos p_423480_, ClientLevel p_423609_, float p_423576_, DeltaTracker p_423570_) voidDarknessFogEnvironment.setupFog(FogData p_423539_, Entity p_423433_, BlockPos p_423453_, ClientLevel p_423550_, float p_423598_, DeltaTracker p_423497_) voidDimensionOrBossFogEnvironment.setupFog(FogData p_423624_, Entity p_423437_, BlockPos p_423499_, ClientLevel p_423676_, float p_423577_, DeltaTracker p_423458_) abstract voidFogEnvironment.setupFog(FogData fogData, Entity entity, BlockPos pos, ClientLevel level, float renderDistance, DeltaTracker deltaTracker) voidLavaFogEnvironment.setupFog(FogData p_423517_, Entity p_423438_, BlockPos p_423587_, ClientLevel p_423495_, float p_423631_, DeltaTracker p_423491_) voidPowderedSnowFogEnvironment.setupFog(FogData p_423470_, Entity p_423599_, BlockPos p_423534_, ClientLevel p_423516_, float p_423481_, DeltaTracker p_423655_) voidWaterFogEnvironment.setupFog(FogData p_423613_, Entity p_423611_, BlockPos p_423436_, ClientLevel p_423530_, float p_423585_, DeltaTracker p_423472_) -
Uses of Entity in net.minecraft.client.renderer.item
Methods in net.minecraft.client.renderer.item with parameters of type EntityModifier and TypeMethodDescriptionvoidItemModelResolver.updateForNonLiving(ItemStackRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, Entity entity) -
Uses of Entity in net.minecraft.client.renderer.item.properties.numeric
Methods in net.minecraft.client.renderer.item.properties.numeric with parameters of type EntityModifier and TypeMethodDescriptionprotected floatCompassAngleState.calculate(ItemStack stack, ClientLevel level, int seed, Entity entity) protected abstract floatNeedleDirectionHelper.calculate(ItemStack stack, ClientLevel level, int seed, Entity entity) protected floatTime.calculate(ItemStack stack, ClientLevel level, int seed, Entity entity) (package private) abstract GlobalPosCompassAngleState.CompassTarget.get(ClientLevel level, ItemStack stack, Entity entity) (package private) abstract floatTime.TimeSource.get(ClientLevel level, ItemStack stack, Entity entity, RandomSource random) private static doubleCompassAngleState.getAngleFromEntityToPos(Entity entity, BlockPos pos) private floatCompassAngleState.getRotationTowardsCompassTarget(Entity entity, long gameTime, BlockPos targetPos) private static floatCompassAngleState.getWrappedVisualRotationY(Entity entity) private static booleanCompassAngleState.isValidCompassTargetPos(Entity entity, GlobalPos pos) -
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.client.waypoints
Methods in net.minecraft.client.waypoints with parameters of type EntityModifier and TypeMethodDescriptionvoidClientWaypointManager.forEachWaypoint(Entity entity, Consumer<TrackedWaypoint> action) -
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.static ComponentComponentArgument.getResolvedComponent(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name, Entity entity) 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,T>
voidGameTestHelper.assertEntityData(BlockPos pos, EntityType<E> type, Predicate<E> predicate) <E extends Entity & InventoryCarrier>
voidGameTestHelper.assertEntityInventoryContains(BlockPos pos, EntityType<E> entityType, Item item) <E extends Entity,T>
voidGameTestHelper.assertEntityProperty(E entity, Function<E, T> valueGetter, T expectedValue, Component message) <E extends Entity>
voidGameTestHelper.assertEntityProperty(E entity, Predicate<E> predicate, Component message) <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 boundingBox, Component message) voidvoidGameTestHelper.hurt(Entity entity, DamageSource damageSource, float amount) voidStructureUtils.lookedAtTestPos(BlockPos pos, Entity entity, ServerLevel level) Method parameters in net.minecraft.gametest.framework with type arguments of type EntityModifier and TypeMethodDescriptionvoidGameTestHelper.killAllEntitiesOfClass(Class<? extends Entity> entityClass) -
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 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 ClientboundMoveVehiclePacketClientboundMoveVehiclePacket.fromEntity(Entity entity) static ServerboundMoveVehiclePacketServerboundMoveVehiclePacket.fromEntity(Entity entity) 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) 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) 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 EntityLookAt.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) LookAt.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 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 Stream<ResourceLocation> AttributeCommand.getAttributeModifiers(Entity entity, Holder<Attribute> attribute) 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) voidLookAt.LookAtEntity.perform(CommandSourceStack p_380255_, Entity p_379889_) voidLookAt.LookAtPosition.perform(CommandSourceStack p_379815_, Entity p_379917_) voidLookAt.perform(CommandSourceStack source, Entity entity) private static voidTeleportCommand.performTeleport(CommandSourceStack source, Entity target, ServerLevel level, double x, double y, double z, Set<Relative> relatives, float yRot, float xRot, LookAt lookAt) private static intAttributeCommand.removeModifier(CommandSourceStack source, Entity entity, Holder<Attribute> attribute, ResourceLocation id) private static intAttributeCommand.resetAttributeBase(CommandSourceStack source, Entity entity, Holder<Attribute> attribute) private static intRotateCommand.rotate(CommandSourceStack source, Entity entity, Coordinates coordinates) private static intRotateCommand.rotate(CommandSourceStack source, Entity entity, LookAt lookAt) 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> 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> modifier) 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, LookAt lookAt) Constructors in net.minecraft.server.commands with parameters of type EntityModifierConstructorDescriptionLookAtEntity(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.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.mountedOrDismounted(List<Entity> entities) 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. summon command, interdimensional teleportsvoidAttacks for the player the targeted entity with the currently equipped item.voidServerPlayer.awardKillScore(Entity entity, 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) voidServerLevel.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.ChunkMap.getPlayersWatching(Entity entity) voidServerLevel.levelEvent(Entity entity, int type, BlockPos pos, int data) voidWorldGenRegion.levelEvent(Entity entity, int type, BlockPos pos, int data) voidServerPlayer.lookAt(EntityAnchorArgument.Anchor fromAnchor, Entity entity, EntityAnchorArgument.Anchor toAnchor) voidbooleanServerLevel.mayInteract(Entity entity, BlockPos pos) 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(Entity entity, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidServerLevel.playSeededSound(Entity entity, Entity sourceEntity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidWorldGenRegion.playSound(Entity entity, BlockPos pos, SoundEvent sound, SoundSource source, float volume, float pitch) protected voidChunkMap.removeEntity(Entity entity) voidServerChunkCache.removeEntity(Entity entity) voidbooleanServerPlayer.startRiding(Entity vehicle, boolean force) voidCalled when the entity picks up an item.voidServerLevel.tickNonPassenger(Entity entity) private voidServerLevel.tickPassenger(Entity ridingEntity, Entity passengerEntity) booleanServerLevel.tryAddFreshEntityWithPassengers(Entity entity) Attempts to summon an entity and it's passengers.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.mountedOrDismounted(List<Entity> entities) Constructors in net.minecraft.server.level with parameters of type EntityModifierConstructorDescriptionServerEntity(ServerLevel level, Entity entity, int updateInterval, boolean trackDelta, Consumer<Packet<?>> broadcast, BiConsumer<Packet<?>, List<UUID>> broadcastWithIgnore) 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.isEntityCollidingWithAnythingNew(LevelReader level, Entity entity, AABB box, double x, double y, double z) 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 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(ServerLevel level, Entity source, Entity indirectSource, LivingEntity entity, int amplifier, double health) voidMobEffect.applyInstantenousEffect(ServerLevel level, Entity source, Entity indirectSource, LivingEntity entity, 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 classclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity declared as EntityModifier and TypeFieldDescriptionprivate final EntityEntity.EntityPathElement.entityThe field for theentityrecord component.private final EntityInterpolationHandler.entityLeashable.LeashData.leashHolderprivate EntityEntity.vehicleFields in net.minecraft.world.entity with type parameters of type EntityModifier and TypeFieldDescriptionprivate final Map<InsideBlockEffectType, List<Consumer<Entity>>> InsideBlockEffectApplier.StepBasedCollector.afterEffectsInStepprivate final Map<InsideBlockEffectType, List<Consumer<Entity>>> InsideBlockEffectApplier.StepBasedCollector.beforeEffectsInStepEntitySelector.CAN_BE_COLLIDED_WITHSelects entities which are collidable with and aren't spectatorsEntitySelector.CAN_BE_PICKEDEntitySelector.CONTAINER_ENTITY_SELECTORSelects only entities which are container entitiesInsideBlockEffectType.effectEntitySelector.ENTITY_NOT_BEING_RIDDENSelects only entities which are neither ridden by anything nor ride on anythingEntitySelector.ENTITY_STILL_ALIVESelects only entities which are aliveInsideBlockEffectApplier.StepBasedCollector.finalEffectsLightningBolt.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 ImmutableList<Entity> Entity.passengersAreaEffectCloud.victimsMethods in net.minecraft.world.entity with type parameters of type EntityModifier and TypeMethodDescriptionLeashable.angularFriction(E entity) EntityType.appendComponentsConfig(Consumer<T> consumer, ItemStack stack) EntityType.appendCustomEntityStackConfig(Consumer<T> consumer, Level level, ItemStack stack, LivingEntity owner) EntityType.appendDefaultStackConfig(Consumer<T> consumer, Level level, ItemStack stack, LivingEntity owner) static <T extends Entity>
booleanSpawnPlacements.checkSpawnRules(EntityType<T> entityType, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random) private static <E extends Entity & Leashable>
List<Leashable.Wrench> Leashable.computeElasticInteraction(E entity, Entity leashHolder, List<Vec3> entityAttachmentPoint, List<Vec3> leasherAttachmentPoint) EntityType.createDefaultStackConfig(Level level, ItemStack stack, LivingEntity owner) static <T extends Entity>
EntityType.Builder<T> EntityType.Builder.createNothing(MobCategory category) Leashable.dropLeash(E entity, boolean broadcastPacket, boolean dropItem) Leashable.getLeashHolder(E entity) 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) private static <T extends Entity>
EntityType<T> EntityType.register(ResourceKey<EntityType<?>> key, EntityType.Builder<T> builder) Leashable.restoreLeashFromSave(E entity, Leashable.LeashData leashData) Leashable.setLeashedTo(E entity, Entity leashHolder, boolean broadcastPacket) Leashable.tickLeash(ServerLevel level, E entity) Methods in net.minecraft.world.entity that return EntityModifier and TypeMethodDescriptionEntity.EntityPathElement.entity()Returns the value of theentityrecord component.Entity.getControlledVehicle()Entity.getFirstPassenger()default EntityLeashable.getLeashHolder()Leashable.getLeashHolder(E entity) TraceableEntity.getOwner()Entity.getRootVehicle()Entity.getVehicle()static EntityEntityType.loadEntityRecursive(CompoundTag entityTag, Level level, EntitySpawnReason spawnReason, Function<Entity, Entity> adapter) static EntityEntityType.loadEntityRecursive(ValueInput input, Level level, EntitySpawnReason spawnReason, Function<Entity, Entity> adapter) private EntityOminousItemSpawner.spawnProjectile(ServerLevel level, ProjectileItem projectileItem, ItemStack stack) Entity.teleport(TeleportTransition teleportTransition) private EntityEntity.teleportCrossDimension(ServerLevel oldLevel, ServerLevel newLevel, TeleportTransition teleportTransition) private EntityEntity.teleportSameDimension(ServerLevel level, TeleportTransition teleportTransition) Methods in net.minecraft.world.entity that return types with arguments of type EntityModifier and TypeMethodDescriptionEntityType.create(ValueInput input, Level level, EntitySpawnReason spawnReason) InsideBlockEffectType.effect()EntityType.getBaseClass()LightningBolt.getHitEntities()Entity.getIndirectPassengers()Entity.getIndirectPassengersStream()Entity.getPassengers()Entity.getPassengersAndSelf()Entity.getSelfAndPassengers()EntityType.loadEntitiesRecursive(ValueInput.ValueInputList input, Level level, EntitySpawnReason spawnReason) EntityType.loadStaticEntity(ValueInput input, Level level, EntitySpawnReason spawnReason) 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) voidInsideBlockEffectApplier.StepBasedCollector.applyAndClear(Entity entity) voidEntity.awardKillScore(Entity entity, DamageSource damageSource) private TeleportTransitionEntity.calculatePassengerTransition(TeleportTransition teleportTransition, Entity entity) protected booleanEntity.canAddPassenger(Entity passenger) protected booleanMarker.canAddPassenger(Entity p_265289_) protected booleanOminousItemSpawner.canAddPassenger(Entity passenger) booleanEntity.canBeCollidedWith(Entity entity) booleanEntity.canCollideWith(Entity entity) default booleanLeashable.canHaveALeashAttachedTo(Entity entity) protected booleandefault booleanLeashable.checkElasticInteractions(Entity entity, Leashable.LeashData leashData) default 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) private static <E extends Entity & Leashable>
List<Leashable.Wrench> Leashable.computeElasticInteraction(E entity, Entity leashHolder, List<Vec3> entityAttachmentPoint, List<Vec3> leasherAttachmentPoint) protected booleanEntity.considersEntityAsAlly(Entity entity) protected booleanTamableAnimal.considersEntityAsAlly(Entity entity) voidEntity.copyPosition(Entity entity) Sets this entity's location and angles to the location and angles of the passed in entity.static Vec3[]Leashable.createQuadLeashOffsets(Entity entity, double zOffset, double z, double x, double y) 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(ServerLevel level, Entity source) booleanMob.doHurtTarget(ServerLevel level, Entity source) protected voidprotected voidLivingEntity.dropExperience(ServerLevel level, Entity entity) voidLivingEntity.forceAddEffect(MobEffectInstance instance, Entity entity) voidprotected static Vec3Entity.getDefaultPassengerAttachmentPoint(Entity vehicle, Entity passenger, EntityAttachments attachments) final intLivingEntity.getExperienceReward(ServerLevel level, Entity killer) private static Vec3Leashable.getHolderMovement(Entity holder) 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) protected static voidEntity.handleOnAboveBubbleColumn(Entity entity, boolean downwards, BlockPos pos) protected static voidEntity.handleOnInsideBubbleColumn(Entity entity, boolean downwards) booleanEntity.hasIndirectPassenger(Entity entity) booleanLivingEntity.hasLineOfSight(Entity entity) booleanLivingEntity.hasLineOfSight(Entity entity, ClipContext.Block block, ClipContext.Fluid fluid, double y) booleanEntity.hasPassenger(Entity entity) booleanReturnstrueif Entity argument is equal to this Entityfinal booleanEntity.isAlliedTo(Entity entity) Returns whether this Entity is on the same team as the given Entity.booleanEntity.isPassengerOfSameVehicle(Entity entity) Leashable.leashableInArea(Entity entity, Predicate<Leashable> predicate) Leashable.leashableLeashedTo(Entity entity) default doubleLeashable.leashDistanceTo(Entity entity) voidChanges the X and Y rotation so that this entity is facing the given entity.static PositionMoveRotationprotected 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.voidstatic voidEntityType.updateCustomEntityTag(Level level, LivingEntity owner, Entity entity, CustomData customData) default voidLeashable.whenLeashedTo(Entity entity) voidPathfinderMob.whenLeashedTo(Entity entity) Method parameters in net.minecraft.world.entity with type arguments of type EntityModifier and TypeMethodDescriptionbooleanEntity.hasPassenger(Predicate<Entity> predicate) static EntityEntityType.loadEntityRecursive(CompoundTag entityTag, Level level, EntitySpawnReason spawnReason, Function<Entity, Entity> adapter) static EntityEntityType.loadEntityRecursive(CompoundTag entityTag, Level level, EntitySpawnReason spawnReason, Function<Entity, Entity> adapter) static EntityEntityType.loadEntityRecursive(ValueInput input, Level level, EntitySpawnReason spawnReason, Function<Entity, Entity> adapter) static EntityEntityType.loadEntityRecursive(ValueInput input, Level level, EntitySpawnReason spawnReason, Function<Entity, Entity> adapter) voidInsideBlockEffectApplier.runAfter(InsideBlockEffectType type, Consumer<Entity> effect) voidInsideBlockEffectApplier.StepBasedCollector.runAfter(InsideBlockEffectType type, Consumer<Entity> effect) voidInsideBlockEffectApplier.runBefore(InsideBlockEffectType type, Consumer<Entity> effect) voidInsideBlockEffectApplier.StepBasedCollector.runBefore(InsideBlockEffectType type, Consumer<Entity> effect) Constructors in net.minecraft.world.entity with parameters of type EntityModifierConstructorDescription(package private)EntityPathElement(Entity entity) Creates an instance of aEntityPathElementrecord class.InterpolationHandler(Entity entity) InterpolationHandler(Entity entity, int interpolationSteps) InterpolationHandler(Entity entity, int interpolationSteps, Consumer<InterpolationHandler> onInterpolationStart) InterpolationHandler(Entity entity, Consumer<InterpolationHandler> onInterpolationStart) (package private)Constructor parameters in net.minecraft.world.entity with type arguments 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 EntityModifierConstructorDescriptionEntityTracker(Entity entity, boolean trackEyeHeight) EntityTracker(Entity entity, boolean trackEyeHeight, boolean targetEyeHeight) -
Uses of Entity in net.minecraft.world.entity.ai.control
Methods in net.minecraft.world.entity.ai.control with parameters of type 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 static ServerLevelGoal.getServerLevel(Entity entity) protected 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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields 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 voidHappyGhast.addPassenger(Entity passenger) protected booleanHappyGhast.canAddPassenger(Entity passenger) booleanHappyGhast.canBeCollidedWith(@Nullable Entity entity) protected booleanbooleanBee.doHurtTarget(ServerLevel level, Entity source) booleanIronGolem.doHurtTarget(ServerLevel level, Entity source) booleanPanda.doHurtTarget(ServerLevel level, Entity source) protected voidprotected voidstatic booleanParrot.imitateNearbyMobs(Level level, Entity parrot) protected voidChicken.positionRider(Entity passenger, Entity.MoveFunction callback) protected voidHappyGhast.removePassenger(Entity passenger) -
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 TypeMethodDescriptionprotected booleanAllay.considersEntityAsAlly(Entity entity) private booleanAllay.isLikedPlayer(Entity entity) voidAllay.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) -
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) protected voidAbstractHorse.positionRider(Entity passenger, Entity.MoveFunction callback) -
Uses of Entity in net.minecraft.world.entity.animal.sheep
Subclasses of Entity in net.minecraft.world.entity.animal.sheep -
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.animal.wolf
Subclasses of Entity in net.minecraft.world.entity.animal.wolf -
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 EntityModifier and TypeMethodDescriptionprivate voidEnderDragon.hurt(ServerLevel level, List<Entity> entities) private voidEnderDragon.knockBack(ServerLevel level, List<Entity> targets) -
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 voidBlockAttachedEntity.dropItem(ServerLevel level, Entity entity) voidItemFrame.dropItem(ServerLevel level, Entity entity) private voidItemFrame.dropItem(ServerLevel level, Entity entity, boolean dropItem) voidLeashFenceKnotEntity.dropItem(ServerLevel level, Entity entity) voidPainting.dropItem(ServerLevel level, Entity entity) 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 with type parameters of type EntityMethods in net.minecraft.world.entity.item that return EntityModifier and TypeMethodDescriptionItemEntity.getOwner()FallingBlockEntity.teleport(TeleportTransition teleportTransition) ItemEntity.teleport(TeleportTransition teleportTransition) PrimedTnt.teleport(TeleportTransition teleportTransition) 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 EntityModifier and TypeFieldDescriptionRavager.ROAR_TARGET_WITH_GRIEFINGRavager.ROAR_TARGET_WITHOUT_GRIEFINGMethods in net.minecraft.world.entity.monster with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanStrider.canAddPassenger(Entity passenger) booleanShulker.canBeCollidedWith(Entity entity) protected booleanAbstractIllager.considersEntityAsAlly(Entity entity) protected booleanEvoker.considersEntityAsAlly(Entity entity) booleanCaveSpider.doHurtTarget(ServerLevel p_376694_, Entity p_32257_) booleanCreeper.doHurtTarget(ServerLevel level, Entity source) booleanHusk.doHurtTarget(ServerLevel level, Entity source) booleanRavager.doHurtTarget(ServerLevel level, Entity source) booleanWitherSkeleton.doHurtTarget(ServerLevel level, Entity source) booleanZoglin.doHurtTarget(ServerLevel level, Entity source) booleanZombie.doHurtTarget(ServerLevel level, Entity source) protected Vec3Slime.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3Strider.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) CaveSpider.getVehicleAttachmentPoint(Entity p_316479_) Spider.getVehicleAttachmentPoint(Entity entity) booleanRavager.hasLineOfSight(Entity 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.creaking
Subclasses of Entity in net.minecraft.world.entity.monster.creakingMethods in net.minecraft.world.entity.monster.creaking with parameters of type EntityModifier and TypeMethodDescriptionprotected voidCreaking.addPassenger(Entity passenger) protected booleanCreaking.canAddPassenger(Entity passenger) booleanCreaking.doHurtTarget(ServerLevel level, Entity source) -
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(ServerLevel level, Entity source) 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.teleport(TeleportTransition teleportTransition) 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) voidprivate void -
Uses of Entity in net.minecraft.world.entity.projectile
Subclasses of Entity in net.minecraft.world.entity.projectileModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.projectile declared as EntityModifier and TypeFieldDescriptionprivate EntityFishingHook.hookedInprivate EntityProjectile.lastDeflectedByFields in net.minecraft.world.entity.projectile with type parameters of type EntityModifier and TypeFieldDescriptionprivate EntityReference<Entity> ShulkerBullet.finalTargetprotected EntityReference<Entity> Projectile.ownerAbstractArrow.piercedAndKilledEntitiesMethods in net.minecraft.world.entity.projectile that return EntityModifier and TypeMethodDescriptionprivate static EntityThrownEnderpearl.findOwnerInAnyDimension(ServerLevel level, UUID uuid) Projectile.getEffectSource()FishingHook.getHookedIn()Projectile.getOwner()ThrownEnderpearl.getOwner()ThrownEnderpearl.teleport(TeleportTransition teleportTransition) Methods in net.minecraft.world.entity.projectile with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanAbstractArrow.canHitEntity(Entity target) protected booleanAbstractHurtingProjectile.canHitEntity(Entity target) protected booleanFishingHook.canHitEntity(Entity target) protected booleanProjectile.canHitEntity(Entity target) protected booleanShulkerBullet.canHitEntity(Entity target) static floatProjectileUtil.computeMargin(Entity entity) 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, 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 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 voidShulkerBullet.selectNextMoveDirection(Direction.Axis axis, Entity target) 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, float inflationAmount) Gets the EntityHitResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Projectile projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) private 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) protected voidProjectile.setOwner(EntityReference<Entity> owner) protected voidThrownEnderpearl.setOwner(EntityReference<Entity> owner) 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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassMethods in net.minecraft.world.entity.vehicle with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanAbstractBoat.canAddPassenger(Entity passenger) booleanAbstractBoat.canBeCollidedWith(Entity entity) booleanAbstractBoat.canCollideWith(Entity entity) booleanAbstractMinecart.canCollideWith(Entity entity) static booleanAbstractBoat.canVehicleCollide(Entity first, Entity second) default voidContainerEntity.chestVehicleDestroyed(DamageSource damageSource, ServerLevel level, Entity entity) protected voidAbstractBoat.clampRotation(Entity entity) protected Vec3AbstractBoat.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3AbstractMinecart.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) booleanAbstractBoat.hasEnoughSpaceFor(Entity entity) voidAbstractBoat.onPassengerTurned(Entity entityToUpdate) Applies this entity's orientation to another entity.protected voidAbstractBoat.positionRider(Entity passenger, Entity.MoveFunction callback) protected voidMinecart.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.Methods 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) private static doubleMaceItem.getKnockbackPower(Entity attacker, LivingEntity entity, Vec3 offset) voidCompassItem.inventoryTick(ItemStack stack, ServerLevel level, Entity entity, EquipmentSlot slot) voidItem.inventoryTick(ItemStack stack, ServerLevel level, Entity entity, EquipmentSlot slot) voidItemStack.inventoryTick(Level level, Entity entity, EquipmentSlot slot) voidMapItem.inventoryTick(ItemStack stack, ServerLevel level, Entity entity, EquipmentSlot slot) private static voidprivate static Predicate<LivingEntity> MaceItem.knockbackPredicate(Entity attacker, Entity target) private static voidBundleItem.playDropContentsSound(Level level, Entity entity) private static voidBundleItem.playInsertFailSound(Entity entity) private static voidBundleItem.playInsertSound(Entity entity) private static 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 entity, DamageSource damageSource) static voidEnchantmentHelper.doPostAttackEffects(ServerLevel level, Entity entity, DamageSource damageSource) static voidEnchantmentHelper.doPostAttackEffectsWithItemSource(ServerLevel level, Entity entity, DamageSource damageSource, ItemStack itemSource) static voidEnchantmentHelper.doPostAttackEffectsWithItemSourceOnBreak(ServerLevel level, Entity entity, DamageSource damageSource, ItemStack itemSource, Consumer<Item> onBreak) 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 entity, 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) voidChangeItemDamage.apply(ServerLevel p_379674_, int p_379927_, EnchantedItemInUse p_380376_, Entity p_379570_, Vec3 p_380002_) voidDamageEntity.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 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 EntityServerExplosion.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> entityClass, 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()ServerExplosion.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()Level.getPushableEntities(Entity entity, AABB boundingBox) 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) voidLevel.explode(Entity source, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction) voidLevel.explode(Entity source, double x, double y, double z, float radius, Level.ExplosionInteraction explosionInteraction) voidLevel.explode(Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, double x, double y, double z, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction) abstract voidLevel.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) voidLevel.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.getBlockAndLiquidCollisions(Entity entity, AABB collisionBox) default 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 entity, AABB collisionBox) PathNavigationRegion.getEntityCollisions(Entity entity, AABB collisionBox) floatExplosionDamageCalculator.getEntityDamageAmount(Explosion explosion, Entity entity, float seenPercent) static LivingEntityExplosion.getIndirectSourceEntity(Entity source) floatExplosionDamageCalculator.getKnockbackMultiplier(Entity entity) floatSimpleExplosionDamageCalculator.getKnockbackMultiplier(Entity entity) default PlayerEntityGetter.getNearestPlayer(Entity entity, double distance) default Iterable<VoxelShape> CollisionGetter.getPreMoveCollisions(Entity entity, AABB collisionBox, Vec3 pos) Level.getPushableEntities(Entity entity, AABB boundingBox) static floatServerExplosion.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 entity, VoxelShape shape) voidLevelAccessor.levelEvent(Entity entity, int type, BlockPos pos, int data) booleanLevel.loadedAndEntityCanStandOn(BlockPos pos, Entity entity) booleanLevel.loadedAndEntityCanStandOnFace(BlockPos pos, Entity entity, Direction direction) private ExplosionDamageCalculatorServerExplosion.makeDamageCalculator(Entity entity) booleanLevel.mayInteract(Entity entity, BlockPos pos) default booleanCollisionGetter.noBlockCollision(Entity entity, AABB boundingBox) default booleanCollisionGetter.noCollision(Entity entity) default booleanCollisionGetter.noCollision(Entity entity, AABB collisionBox) default booleanCollisionGetter.noCollision(Entity entity, AABB collisionBox, boolean checkLiquid) voidLevel.playLocalSound(Entity entity, SoundEvent sound, SoundSource source, float volume, float pitch) abstract voidLevel.playSeededSound(Entity entity, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidLevel.playSeededSound(Entity entity, double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch, long seed) abstract voidLevel.playSeededSound(Entity entity, Entity sourceEntity, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch, long seed) voidLevel.playSound(Entity entity, double x, double y, double z, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) voidLevel.playSound(Entity entity, double x, double y, double z, SoundEvent sound, SoundSource source) voidLevel.playSound(Entity entity, double x, double y, double z, SoundEvent sound, SoundSource source, float volume, float pitch) voidLevel.playSound(Entity entity, BlockPos pos, SoundEvent sound, SoundSource category, float volume, float pitch) voidLevel.playSound(Entity entity, Entity sourceEntity, SoundEvent sound, SoundSource source, float volume, float pitch) default voidLevelAccessor.playSound(Entity entity, BlockPos pos, SoundEvent sound, SoundSource source) voidLevelAccessor.playSound(Entity entity, BlockPos pos, SoundEvent sound, SoundSource source, 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) ServerExplosion(ServerLevel level, Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, Vec3 center, float radius, boolean fire, Explosion.BlockInteraction blockInteraction) -
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 booleanTurtleEggBlock.canDestroyEgg(ServerLevel 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 TeleportTransitionNetherPortalBlock.createDimensionTransition(ServerLevel level, BlockUtil.FoundRectangle rectangle, Direction.Axis axis, Vec3 offset, Entity entity, TeleportTransition.PostTeleportTransition postTeleportTransition) 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, InsideBlockEffectApplier effectApplier) protected voidBasePressurePlateBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidBigDripleafBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidBubbleColumnBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidButtonBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidCactusBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidCampfireBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidCropBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidDetectorRailBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidEndGatewayBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidEndPortalBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidEyeblossomBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidFrogspawnBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidHoneyBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidHopperBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidLavaCauldronBlock.entityInside(BlockState p_153506_, Level p_153507_, BlockPos p_153508_, Entity p_153509_, InsideBlockEffectApplier p_404841_) protected voidLayeredCauldronBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidNetherPortalBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) voidPitcherCropBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidPowderSnowBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidSweetBerryBushBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidTripWireBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidWaterlilyBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidWebBlock.entityInside(BlockState p_58180_, Level p_58181_, BlockPos p_58182_, Entity p_58183_, InsideBlockEffectApplier p_405438_) protected voidWitherRoseBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) static BlockStateComposterBlock.extractProduce(Entity entity, BlockState state, Level level, BlockPos pos) voidBedBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance) voidBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance) voidFarmBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance) voidHayBlock.fallOn(Level p_153362_, BlockState p_153363_, BlockPos p_153364_, Entity p_153365_, double p_397598_) voidHoneyBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance) voidPointedDripstoneBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance) voidPowderSnowBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance) voidSlimeBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance) voidTurtleEggBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance) static voidBaseFireBlock.fireIgnite(Entity entity) private static TeleportTransitionNetherPortalBlock.getDimensionTransitionFromExit(Entity entity, BlockPos pos, BlockUtil.FoundRectangle rectangle, ServerLevel level, TeleportTransition.PostTeleportTransition postTeleportTransition) Block.getDrops(BlockState state, ServerLevel level, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool) protected VoxelShapeEndPortalBlock.getEntityInsideCollisionShape(BlockState state, BlockGetter level, BlockPos pos, Entity entity) protected VoxelShapeLavaCauldronBlock.getEntityInsideCollisionShape(BlockState p_423606_, BlockGetter p_423559_, BlockPos p_423584_, Entity p_423629_) protected VoxelShapeLayeredCauldronBlock.getEntityInsideCollisionShape(BlockState state, BlockGetter level, BlockPos pos, Entity entity) protected VoxelShapePowderSnowBlock.getEntityInsideCollisionShape(BlockState state, BlockGetter level, BlockPos pos, Entity entity) protected VoxelShapeTripWireBlock.getEntityInsideCollisionShape(BlockState state, BlockGetter level, BlockPos pos, Entity entity) private TeleportTransitionNetherPortalBlock.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) 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.updateEntityMovementAfterFallOn(BlockGetter level, Entity entity) voidBlock.updateEntityMovementAfterFallOn(BlockGetter level, Entity entity) voidSlimeBlock.updateEntityMovementAfterFallOn(BlockGetter level, Entity entity) 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 TypeMethodDescriptionprivate voidTripWireBlock.checkPressed(Level level, BlockPos pos, List<? extends Entity> entities) protected 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 TypeMethodDescriptionprivate 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 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 TypeMethodDescriptionTrialSpawnerConfigs.customSpawnData(EntityType<T> entityType, Consumer<CompoundTag> tagConsumer) TrialSpawnerConfigs.customSpawnDataWithEquipment(EntityType<T> entityType, Consumer<CompoundTag> tagConsumer, ResourceKey<LootTable> lootTableKey) PlayerDetector.EntitySelector.getEntities(ServerLevel level, EntityTypeTest<Entity, T> typeTest, AABB boundingBox, Predicate<? super T> predicate) TrialSpawnerConfigs.spawnData(EntityType<T> entityType) TrialSpawnerConfigs.spawnDataWithEquipment(EntityType<T> entityType, ResourceKey<LootTable> lootTableKey) Methods in net.minecraft.world.level.block.entity.trialspawner that return EntityModifier and TypeMethodDescriptionTrialSpawnerStateData.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, InsideBlockEffectApplier effectApplier) protected voidBlockBehaviour.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) BlockBehaviour.BlockStateBase.getEntityInsideCollisionShape(BlockGetter level, BlockPos pos, Entity entity) protected VoxelShapeBlockBehaviour.getEntityInsideCollisionShape(BlockState state, BlockGetter 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(ProblemReporter problemReporter, ServerLevelAccessor level, CompoundTag tag) -
Uses of Entity in net.minecraft.world.level.material
Methods in net.minecraft.world.level.material with parameters of type EntityModifier and TypeMethodDescriptionprotected voidFluid.entityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) voidFluidState.entityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidLavaFluid.entityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) protected voidWaterFluid.entityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier) -
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 Vec3TeleportTransition.findAdjustedSharedSpawnPos(ServerLevel level, Entity entity) static Vec3PortalShape.findCollisionFreePosition(Vec3 pos, ServerLevel level, Entity entity, EntityDimensions dimensions) static TeleportTransitionTeleportTransition.missingRespawnBlock(ServerLevel level, Entity entity, TeleportTransition.PostTeleportTransition postTeleportTransition) voidTeleportTransition.PostTeleportTransition.onTransition(Entity entity) private static voidTeleportTransition.placePortalTicket(Entity entity) private static voidTeleportTransition.playPortalSound(Entity entity) Constructors in net.minecraft.world.level.portal with parameters of type EntityModifierConstructorDescriptionTeleportTransition(ServerLevel p_379938_, Entity p_379604_, TeleportTransition.PostTeleportTransition p_379683_) -
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 ContextKey<? extends Entity> LootContext.EntityTarget.paramMethods in net.minecraft.world.level.storage.loot that return types with arguments of type EntityModifier and TypeMethodDescriptionContextKey<? extends Entity> LootContext.EntityTarget.getParam()Constructor parameters in net.minecraft.world.level.storage.loot with type arguments of type EntityModifierConstructorDescriptionprivateEntityTarget(String name, ContextKey<? 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 ContextKey<Entity> LootContextParams.ATTACKING_ENTITYstatic final ContextKey<Entity> LootContextParams.DIRECT_ATTACKING_ENTITYstatic final ContextKey<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 EntityModifier and TypeMethodDescriptionstatic CollisionContextstatic CollisionContextstatic CollisionContextCollisionContext.withPosition(Entity entity, double bottom) Constructors in net.minecraft.world.phys.shapes with parameters of type EntityModifierConstructorDescriptionprotectedEntityCollisionContext(boolean descending, boolean placement, double entityBottom, ItemStack heldItem, Predicate<FluidState> canStandOnFluid, Entity entity) protectedEntityCollisionContext(Entity entity, boolean canStandOnFluid, boolean placement) 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.minecraft.world.waypoints
Methods in net.minecraft.world.waypoints with parameters of type EntityModifier and TypeMethodDescriptiondoubleTrackedWaypoint.AzimuthWaypoint.distanceSquared(Entity entity) doubleTrackedWaypoint.ChunkWaypoint.distanceSquared(Entity entity) abstract doubleTrackedWaypoint.distanceSquared(Entity entity) doubleTrackedWaypoint.EmptyWaypoint.distanceSquared(Entity entity) doubleTrackedWaypoint.Vec3iWaypoint.distanceSquared(Entity 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).static voidAttachmentSync.syncEntityUpdate(Entity entity, AttachmentType<?> type) static voidAttachmentSync.syncInitialEntityAttachments(Entity entity, ServerPlayer to, Consumer<Packet<? super ClientGamePacketListener>> packetConsumer) Handles initial syncing of entity attachments, except for a player's own attachments. -
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 voidClientHooks.loadEntityShader(@Nullable Entity entity, GameRenderer gameRenderer) 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
Fields in net.neoforged.neoforge.client.event declared as EntityMethods 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.Methods in net.neoforged.neoforge.client.event that return EntityModifier and TypeMethodDescriptionRenderNameTagEvent.CanRender.getEntity()Returns the entity whose nameplate is being rendered.Constructors in net.neoforged.neoforge.client.event with parameters of type EntityModifierConstructorDescriptionCanRender(Entity entity, EntityRenderState renderState, @Nullable Component content, EntityRenderer<?, ?> entityRenderer, 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 Vector3dIClientBlockExtensions.getFogColor(BlockState state, LevelReader level, BlockPos pos, Entity entity, Vector3d originalColor, float partialTick) NOT CURRENTLY IMPLEMENTED -
Uses of Entity in net.neoforged.neoforge.client.renderstate
Methods in net.neoforged.neoforge.client.renderstate with type parameters of type EntityModifier and TypeMethodDescriptionstatic <E extends Entity,S extends EntityRenderState>
voidRenderStateExtensions.onUpdateEntityRenderState(EntityRenderer<E, S> renderer, E entity, S renderState) <E extends Entity,S extends EntityRenderState>
voidRegisterRenderStateModifiersEvent.registerEntityModifier(TypeToken<? extends EntityRenderer<? extends E, ? extends S>> baseRenderer, BiConsumer<E, S> modifier) Registers a render state modifier forEntityRenderStates which are run after all vanilla data is extracted.<E extends Entity,S extends EntityRenderState>
voidRegisterRenderStateModifiersEvent.registerEntityModifier(Class<? extends EntityRenderer<? extends E, ? extends S>> baseRenderer, BiConsumer<E, S> modifier) Convenience method for cases where generics are not present.Method parameters in net.neoforged.neoforge.client.renderstate with type arguments of type EntityModifier and TypeMethodDescriptionprivate static voidRegisterRenderStateModifiersEvent.ensureParametersMatchBounds(TypeToken<? extends EntityRenderer<? extends Entity, ? extends EntityRenderState>> baseRenderer) -
Uses of Entity in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type EntityModifier and TypeMethodDescriptionstatic booleanCommonHooks.canMobEffectBeApplied(LivingEntity entity, MobEffectInstance effect, @Nullable Entity source) Checks if a mob effect can be applied to an entity by firingMobEffectEvent.Applicable.static 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(ServerLevel level, BlockPos pos, BlockState state, double 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) booleanTridentEntityPredicate.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 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.default voidIBlockExtension.playStepSound(BlockState state, Level level, BlockPos pos, Entity entity, float volumeMultiplier, float pitchMultiplier) Allows a block to override the standard step sound played in:playCombinationStepSounds(BlockState, BlockState, BlockPos, BlockPos)(primary step sound only)playMuffledStepSound(BlockState, BlockPos)(usually the secondary sound in a call to the above method)playStepSound(BlockPos, BlockState)(simple step sound) The volume and pitch of any sound played in this method should be multiplied with the provided multipliers to replicate the behaviour of the callers.default voidIBlockStateExtension.playStepSound(Level level, BlockPos pos, Entity entity, float volumeMultiplier, float pitchMultiplier) Allows a block to override the standard step sound played in:playCombinationStepSounds(BlockState, BlockState, BlockPos, BlockPos)(primary step sound only)playMuffledStepSound(BlockState, BlockPos)(usually the secondary sound in a call to the above method)playStepSound(BlockPos, BlockState)(simple step sound) The volume and pitch of any sound played in this method should be multiplied with the provided multipliers to replicate the behaviour of the callers. -
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 forceNaturalSpawning) 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(ServerLevel 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, ServerExplosion explosion, Entity entity, Vec3 initialVelocity, List<BlockPos> blocks) 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, ServerExplosion explosion, List<Entity> entities, List<BlockPos> blocks) 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(ServerLevel 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.sourceprivate final @Nullable EntityMobEffectEvent.Applicable.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 EntityMobEffectEvent.Applicable.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) Applicable(LivingEntity living, MobEffectInstance effectInstance, @Nullable 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, EntitySpawnReason 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, ServerExplosion explosion, Entity entity, Vec3 knockbackVelocity, List<BlockPos> blockList) FarmlandTrampleEvent(Level level, BlockPos pos, BlockState state, double 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.registries
Methods in net.neoforged.neoforge.registries with type parameters of type EntityModifier and TypeMethodDescription<E extends Entity>
DeferredHolder<EntityType<?>, EntityType<E>> DeferredRegister.Entities.registerEntityType(String name, EntityType.EntityFactory<E> factory, MobCategory category) Convenience method that constructs a builder.<E extends Entity>
DeferredHolder<EntityType<?>, EntityType<E>> DeferredRegister.Entities.registerEntityType(String name, EntityType.EntityFactory<E> factory, MobCategory category, UnaryOperator<EntityType.Builder<E>> builder) Convenience method that constructs a builder for use in the operator. -
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