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 p_219716_, ServerLevel p_219717_, Vec3 p_219718_) booleanLightningBoltPredicate.matches(Entity p_299034_, ServerLevel p_299101_, Vec3 p_298929_) booleanbooleanbooleanPlayerPredicate.matches(Entity p_222484_, ServerLevel p_222485_, Vec3 p_222486_) booleanRaiderPredicate.matches(Entity p_338232_, ServerLevel p_338194_, Vec3 p_338564_) booleanSheepPredicate.matches(Entity p_368517_, ServerLevel p_368673_, Vec3 p_368505_) booleanSlimePredicate.matches(Entity p_223423_, ServerLevel p_223424_, Vec3 p_223425_) 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 p_393670_, AABB p_394410_) Methods in net.minecraft.client.multiplayer with parameters of type EntityModifier and TypeMethodDescriptionvoidvoidAttacks an entityvoidClientLevel.explode(Entity p_363686_, DamageSource p_365268_, ExplosionDamageCalculator p_363795_, double p_360494_, double p_360591_, double p_364949_, float p_361233_, boolean p_364900_, Level.ExplosionInteraction p_365033_, ParticleOptions p_361889_, ParticleOptions p_361473_, Holder<SoundEvent> p_362359_) ClientLevel.getPushableEntities(Entity p_393670_, AABB p_394410_) 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 p_394519_, int p_104655_, BlockPos p_104656_, int p_104657_) 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 p_312749_, SoundEvent p_312635_, SoundSource p_312007_, float p_312298_, float p_312772_) voidClientLevel.playSeededSound(Entity p_393665_, double p_263372_, double p_263404_, double p_263365_, Holder<SoundEvent> p_263335_, SoundSource p_263417_, float p_263416_, float p_263349_, long p_263408_) voidClientLevel.playSeededSound(Entity p_263536_, Entity p_394209_, Holder<SoundEvent> p_263518_, SoundSource p_263487_, float p_263538_, float p_263524_, long p_263509_) private voidClientPacketListener.postAddEntitySoundInstance(Entity entity) private static booleanClientPacketListener.setValuesFromPositionPacket(PositionMoveRotation positionMoveRotation, Set<Relative> relatives, Entity entity, boolean lerp) booleanClientLevel.shouldTickDeath(Entity p_194185_) 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 EntityMethods in net.minecraft.client.renderer with parameters of type EntityModifier and TypeMethodDescriptionvoidGameRenderer.checkEntityPostEffect(Entity entity) What shader to use when spectating this entityprivate static FogRenderer.MobEffectFogFunctionFogRenderer.getPriorityFogFunction(Entity entity, float partialTick) private HitResultGameRenderer.pick(Entity entity, double blockInteractionRange, double entityInteractionRange, float partialTick) private voidLevelRenderer.renderEntity(Entity entity, double camX, double camY, double camZ, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource) private voidLevelRenderer.renderHitOutline(PoseStack poseStack, VertexConsumer 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.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 p_388108_, ClientLevel p_387750_, int p_388073_, Entity p_388489_) protected abstract floatNeedleDirectionHelper.calculate(ItemStack stack, ClientLevel level, int seed, Entity entity) protected floatTime.calculate(ItemStack p_387493_, ClientLevel p_387362_, int p_388783_, Entity p_388056_) (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.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 p_237401_, Entity p_237402_, int p_237403_) ScoreContents.resolve(CommandSourceStack p_237444_, Entity p_237445_, int p_237446_) SelectorContents.resolve(CommandSourceStack p_237468_, Entity p_237469_, int p_237470_) TranslatableContents.resolve(CommandSourceStack p_237512_, Entity p_237513_, int p_237514_) -
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> modifer) private static intTagCommand.removeTag(CommandSourceStack source, Collection<? extends Entity> entities, String tagName) private static intItemCommands.setEntityItem(CommandSourceStack source, Collection<? extends Entity> targets, int slot, ItemStack item) private static doubleSpreadPlayersCommand.setPlayerPositions(Collection<? extends Entity> targets, ServerLevel level, SpreadPlayersCommand.Position[] positions, int maxHeight, boolean respectTeams) private static intSpreadPlayersCommand.spreadPlayers(CommandSourceStack source, Vec2 center, float spreadDistance, float maxRange, int maxHeight, boolean respectTeams, Collection<? extends Entity> targets) private static intTeleportCommand.teleportToEntity(CommandSourceStack source, Collection<? extends Entity> targets, Entity destination) private static intTeleportCommand.teleportToPos(CommandSourceStack source, Collection<? extends Entity> targets, ServerLevel level, Coordinates position, Coordinates rotation, 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> p_143494_, AABB p_143495_, Predicate<? super T> p_143496_) 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 p_9050_, DamageSource p_9052_) voidvoidprotected voidChunkMap.broadcastAndSend(Entity entity, Packet<?> packet) voidServerChunkCache.broadcastAndSend(Entity entity, Packet<?> packet) voidServerLevel.broadcastDamageEvent(Entity p_270420_, DamageSource p_270311_) 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 p_256039_, DamageSource p_255778_, ExplosionDamageCalculator p_256002_, double p_256067_, double p_256370_, double p_256153_, float p_256045_, boolean p_255686_, Level.ExplosionInteraction p_255827_, ParticleOptions p_312436_, ParticleOptions p_312391_, Holder<SoundEvent> p_320497_) protected floatServerPlayer.getEnchantedDamage(Entity p_346252_, float p_346142_, DamageSource p_345841_) WorldGenRegion.getEntities(Entity entity, AABB boundingBox, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.voidServerLevel.levelEvent(Entity p_393790_, int p_8685_, BlockPos p_8686_, int p_8687_) voidWorldGenRegion.levelEvent(Entity p_394406_, int p_9524_, BlockPos p_9525_, int p_9526_) voidServerPlayer.lookAt(EntityAnchorArgument.Anchor fromAnchor, Entity entity, EntityAnchorArgument.Anchor toAnchor) voidbooleanServerLevel.mayInteract(Entity p_393624_, BlockPos p_8697_) voidvoidServerLevel.EntityCallbacks.onDestroyed(Entity p_143359_) protected voidServerPlayer.onEffectAdded(MobEffectInstance p_143393_, Entity p_143394_) protected voidServerPlayer.onEffectUpdated(MobEffectInstance p_143396_, boolean p_143397_, Entity p_143398_) voidServerPlayer.onExplosionHit(Entity p_326351_) 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 p_393855_, double p_263393_, double p_263369_, double p_263354_, Holder<SoundEvent> p_263412_, SoundSource p_263338_, float p_263352_, float p_263390_, long p_263403_) voidServerLevel.playSeededSound(Entity p_263544_, Entity p_394316_, Holder<SoundEvent> p_263491_, SoundSource p_263542_, float p_263530_, float p_263520_, long p_263490_) voidWorldGenRegion.playSound(Entity p_394194_, BlockPos p_9529_, SoundEvent p_9530_, SoundSource p_9531_, float p_9532_, float p_9533_) protected voidChunkMap.removeEntity(Entity entity) voidServerChunkCache.removeEntity(Entity entity) voidbooleanServerPlayer.startRiding(Entity p_277395_, boolean p_278062_) 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 passangers.Method parameters in net.minecraft.server.level with type arguments of type EntityModifier and TypeMethodDescriptionvoidServerLevel.addLegacyChunkEntities(Stream<Entity> entities) voidServerLevel.addWorldGenChunkEntities(Stream<Entity> entities) private static voidServerLevel.dumpEntities(Writer writer, Iterable<Entity> entities) ServerLevel.getEntities(EntityTypeTest<Entity, T> typeTest, Predicate<? super T> predicate) <T extends Entity>
voidServerLevel.getEntities(EntityTypeTest<Entity, T> typeTest, Predicate<? super T> predicate, List<? super T> output) <T extends Entity>
voidServerLevel.getEntities(EntityTypeTest<Entity, T> typeTest, Predicate<? super T> predicate, List<? super T> output, int maxResults) WorldGenRegion.getEntities(Entity entity, AABB boundingBox, Predicate<? super Entity> predicate) Gets all entities within the specified AABB excluding the one passed into it.WorldGenRegion.getEntities(EntityTypeTest<Entity, T> p_143494_, AABB p_143495_, Predicate<? super T> p_143496_) 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.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 p_376760_, Entity p_294574_, Entity p_295692_, LivingEntity p_296483_, int p_296095_, double p_295178_) 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 classclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity declared as EntityModifier and TypeFieldDescriptionprivate 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 TypeMethodDescriptionEntityType.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) 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) Leashable.legacyElasticRangeLeashBehaviour(E entity, Entity leashHolder, float distance) static <T extends Entity>
EntityType.Builder<T> EntityType.Builder.of(EntityType.EntityFactory<T> factory, MobCategory category) private static <T extends Entity>
EntityType<T> EntityType.register(String key, EntityType.Builder<T> builder) 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.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) private EntityOminousItemSpawner.spawnProjectile(ServerLevel level, ProjectileItem projectileItem, ItemStack stack) Entity.teleport(TeleportTransition teleportTransition) private EntityEntity.teleportCrossDimension(ServerLevel level, 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(CompoundTag tag, Level level, EntitySpawnReason spawnReason) InsideBlockEffectType.effect()EntityType.getBaseClass()LightningBolt.getHitEntities()Entity.getIndirectPassengers()Entity.getIndirectPassengersStream()Entity.getPassengers()Entity.getPassengersAndSelf()Entity.getSelfAndPassengers()EntityType.loadEntitiesRecursive(List<? extends Tag> entityTags, Level level, EntitySpawnReason spawnReason) EntityType.loadStaticEntity(CompoundTag entityTag, 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 p_338681_) 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 p_338282_) booleanEntity.canCollideWith(Entity entity) protected booleandefault voidLeashable.closeRangeLeashBehaviour(Entity entity) voidPathfinderMob.closeRangeLeashBehaviour(Entity p_352153_) 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) protected booleanEntity.considersEntityAsAlly(Entity entity) protected booleanTamableAnimal.considersEntityAsAlly(Entity p_362625_) voidEntity.copyPosition(Entity entity) Sets this entity's location and angles to the location and angles of the passed in entity.private voidLivingEntity.dismountVehicle(Entity vehicle) floatEntity.distanceTo(Entity entity) Returns the distance to the entity.doubleEntity.distanceToSqr(Entity entity) Returns the squared distance to the entity.booleanLivingEntity.doHurtTarget(ServerLevel level, Entity source) booleanMob.doHurtTarget(ServerLevel p_376642_, Entity p_21372_) protected voidprotected voidLivingEntity.dropExperience(ServerLevel level, Entity entity) default voidLeashable.elasticRangeLeashBehaviour(Entity leashHolder, float distance) voidLivingEntity.forceAddEffect(MobEffectInstance instance, Entity entity) voidprotected static Vec3Entity.getDefaultPassengerAttachmentPoint(Entity vehicle, Entity passenger, EntityAttachments attachments) final intLivingEntity.getExperienceReward(ServerLevel level, Entity killer) protected floatLivingEntity.getKnockback(Entity attacker, DamageSource damageSource) protected Vec3Entity.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) Entity.getPassengerRidingPosition(Entity entity) LivingEntity.getPassengerRidingPosition(Entity p_295664_) PortalProcessor.getPortalDestination(ServerLevel level, Entity entity) Entity.getVehicleAttachmentPoint(Entity entity) doubleLivingEntity.getVisibilityPercent(Entity lookingEntity) default booleanLeashable.handleLeashAtDistance(Entity leashHolder, float distance) booleanPathfinderMob.handleLeashAtDistance(Entity p_352071_, float p_352237_) booleanTamableAnimal.handleLeashAtDistance(Entity p_352258_, float p_352278_) 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.legacyElasticRangeLeashBehaviour(E entity, Entity leashHolder, float distance) 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 p_273553_) 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) 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) voidInsideBlockEffectApplier.runAfter(InsideBlockEffectType type, Consumer<Entity> effect) voidInsideBlockEffectApplier.StepBasedCollector.runAfter(InsideBlockEffectType p_405004_, Consumer<Entity> p_404845_) voidInsideBlockEffectApplier.runBefore(InsideBlockEffectType type, Consumer<Entity> effect) voidInsideBlockEffectApplier.StepBasedCollector.runBefore(InsideBlockEffectType p_404988_, Consumer<Entity> p_405666_) Constructors in net.minecraft.world.entity with parameters of type EntityModifierConstructorDescriptionInterpolationHandler(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 Entity -
Uses of Entity in net.minecraft.world.entity.ai.control
Methods in net.minecraft.world.entity.ai.control with parameters of type EntityModifier and TypeMethodDescriptionprivate static doubleLookControl.getWantedY(Entity entity) voidSets the controlling mob's look vector to the provided entity's locationvoidSets position to look at using entity -
Uses of Entity in net.minecraft.world.entity.ai.goal
Fields in net.minecraft.world.entity.ai.goal declared as EntityMethods in net.minecraft.world.entity.ai.goal with parameters of type EntityModifier and TypeMethodDescriptionprotected 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 TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.animal with type parameters of type EntityMethods in net.minecraft.world.entity.animal with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanbooleanBee.doHurtTarget(ServerLevel p_376916_, Entity p_27722_) booleanIronGolem.doHurtTarget(ServerLevel p_376718_, Entity p_28837_) booleanPanda.doHurtTarget(ServerLevel p_376520_, Entity p_29091_) protected voidprotected voidstatic booleanParrot.imitateNearbyMobs(Level level, Entity parrot) protected voidChicken.positionRider(Entity p_289537_, Entity.MoveFunction p_289541_) -
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 p_388703_) 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 p_248594_) protected Vec3Camel.getPassengerAttachmentPoint(Entity p_295101_, EntityDimensions p_294765_, float p_294716_) booleanCamel.handleLeashAtDistance(Entity p_352419_, float p_352358_) -
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 p_295612_, EntityDimensions p_296023_, float p_295509_) protected Vec3Llama.getPassengerAttachmentPoint(Entity p_294968_, EntityDimensions p_296042_, float p_295134_) booleanAbstractHorse.handleLeashAtDistance(Entity p_352072_, float p_352350_) protected voidAbstractHorse.positionRider(Entity p_289569_, Entity.MoveFunction p_289558_) -
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 p_182394_, Entity p_182395_) 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 p_182397_, Entity p_182398_) 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 p_376660_, Entity p_31803_) private voidItemFrame.dropItem(ServerLevel level, Entity entity, boolean dropItem) voidLeashFenceKnotEntity.dropItem(ServerLevel p_376541_, Entity p_31837_) voidPainting.dropItem(ServerLevel p_376289_, Entity p_31925_) booleanArmorStand.skipAttackInteraction(Entity entity) Called when a player attacks an entity.booleanBlockAttachedEntity.skipAttackInteraction(Entity p_346423_) -
Uses of Entity in net.minecraft.world.entity.item
Subclasses of Entity in net.minecraft.world.entity.itemFields in net.minecraft.world.entity.item declared as EntityMethods in net.minecraft.world.entity.item that return EntityModifier and TypeMethodDescriptionItemEntity.getOwner()FallingBlockEntity.teleport(TeleportTransition p_379492_) ItemEntity.teleport(TeleportTransition p_379799_) PrimedTnt.teleport(TeleportTransition p_380065_) Methods in net.minecraft.world.entity.item with parameters of type EntityModifier and TypeMethodDescriptionvoidItemEntity.restoreFrom(Entity p_305965_) voidPrimedTnt.restoreFrom(Entity p_306185_) voidItemEntity.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) protected booleanAbstractIllager.considersEntityAsAlly(Entity p_360600_) protected booleanEvoker.considersEntityAsAlly(Entity p_365525_) booleanCaveSpider.doHurtTarget(ServerLevel p_376694_, Entity p_32257_) booleanCreeper.doHurtTarget(ServerLevel p_376663_, Entity p_32281_) booleanHusk.doHurtTarget(ServerLevel p_376715_, Entity p_32892_) booleanRavager.doHurtTarget(ServerLevel p_376340_, Entity p_33328_) booleanWitherSkeleton.doHurtTarget(ServerLevel p_376874_, Entity p_34169_) booleanZoglin.doHurtTarget(ServerLevel p_376335_, Entity p_34207_) booleanZombie.doHurtTarget(ServerLevel p_376343_, Entity p_34276_) protected Vec3Slime.getPassengerAttachmentPoint(Entity p_296103_, EntityDimensions p_295741_, float p_295572_) protected Vec3Strider.getPassengerAttachmentPoint(Entity p_294748_, EntityDimensions p_295089_, float p_295230_) CaveSpider.getVehicleAttachmentPoint(Entity p_316479_) Spider.getVehicleAttachmentPoint(Entity p_316696_) booleanRavager.hasLineOfSight(Entity p_149755_) 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 p_306094_) booleanShulker.startRiding(Entity p_149773_, boolean p_149774_) 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 p_389484_) protected booleanCreaking.canAddPassenger(Entity p_389469_) booleanCreaking.doHurtTarget(ServerLevel p_379943_, Entity p_379911_) -
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 EntityModifier and TypeMethodDescriptionbooleanHoglin.doHurtTarget(ServerLevel p_376928_, Entity p_34491_) -
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 p_376574_, Entity p_219472_) 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 EntityMethods in net.minecraft.world.entity.npc with parameters of type EntityModifier and TypeMethodDescriptionVillagerTrades.DyedArmorForEmeralds.getOffer(Entity p_219679_, RandomSource p_219680_) VillagerTrades.EmeraldForItems.getOffer(Entity p_219682_, RandomSource p_219683_) VillagerTrades.EmeraldsForVillagerTypeItem.getOffer(Entity p_219685_, RandomSource p_219686_) VillagerTrades.EnchantBookForEmeralds.getOffer(Entity p_219688_, RandomSource p_219689_) VillagerTrades.EnchantedItemForEmeralds.getOffer(Entity p_219691_, RandomSource p_219692_) VillagerTrades.FailureItemListing.getOffer(Entity p_302036_, RandomSource p_301986_) VillagerTrades.ItemListing.getOffer(Entity trader, RandomSource random) VillagerTrades.ItemsAndEmeraldsToItems.getOffer(Entity p_219696_, RandomSource p_219697_) VillagerTrades.ItemsForEmeralds.getOffer(Entity p_219699_, RandomSource p_219700_) VillagerTrades.SuspiciousStewForEmerald.getOffer(Entity p_219702_, RandomSource p_219703_) VillagerTrades.TippedArrowForItemsAndEmeralds.getOffer(Entity p_219705_, RandomSource p_219706_) VillagerTrades.TreasureMapForEmeralds.getOffer(Entity p_219708_, RandomSource p_219709_) VillagerTrades.TypeSpecificTrade.getOffer(Entity p_296480_, RandomSource p_295729_) 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 EntityProjectile.cachedOwnerprivate EntityShulkerBullet.finalTargetprivate EntityFishingHook.hookedInprivate EntityProjectile.lastDeflectedByFields in net.minecraft.world.entity.projectile with type parameters of type EntityMethods in net.minecraft.world.entity.projectile that return EntityModifier and TypeMethodDescriptionprotected Entityprotected EntityProjectile.getEffectSource()FishingHook.getHookedIn()Projectile.getOwner()ThrownEnderpearl.teleport(TeleportTransition p_379805_) Methods in net.minecraft.world.entity.projectile with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanAbstractArrow.canHitEntity(Entity p_36743_) protected booleanAbstractHurtingProjectile.canHitEntity(Entity p_36842_) protected booleanFishingHook.canHitEntity(Entity p_37135_) protected booleanProjectile.canHitEntity(Entity target) protected booleanShulkerBullet.canHitEntity(Entity p_37341_) booleanProjectile.deflect(ProjectileDeflection deflection, Entity entity, Entity owner, boolean deflectedByPlayer) voidProjectileDeflection.deflect(Projectile projectile, Entity entity, RandomSource random) static EntityHitResultProjectileUtil.getEntityHitResult(Entity shooter, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, double distance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) Gets the EntityHitResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, float inflationAmount) Gets the EntityHitResult representing the entity hitprivate static HitResultProjectileUtil.getHitResult(Vec3 pos, Entity projectile, Predicate<Entity> filter, Vec3 deltaMovement, Level level, float margin, ClipContext.Block clipContext) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity projectile, Predicate<Entity> filter) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity projectile, Predicate<Entity> filter, ClipContext.Block clipContext) static HitResultProjectileUtil.getHitResultOnViewVector(Entity projectile, Predicate<Entity> filter, double scale) private static booleanThrownEnderpearl.isAllowedToTeleportOwner(Entity entity, Level level) protected voidAbstractHurtingProjectile.onDeflection(Entity p_341940_, boolean p_341895_) protected voidProjectile.onDeflection(Entity entity, boolean deflectedByPlayer) protected abstract voidAbstractThrownPotion.onHitAsPotion(ServerLevel level, ItemStack stack, Entity entity) voidThrownLingeringPotion.onHitAsPotion(ServerLevel p_399902_, ItemStack p_400168_, Entity p_399551_) voidThrownSplashPotion.onHitAsPotion(ServerLevel p_399483_, ItemStack p_400156_, Entity p_400094_) protected booleanprotected voidFishingHook.pullEntity(Entity entity) voidProjectile.restoreFrom(Entity p_305838_) static voidProjectileUtil.rotateTowardsMovement(Entity projectile, float rotationSpeed) private voidFishingHook.setHookedEntity(Entity hookedEntity) voidvoidvoidvoidvoidProjectile.shootFromRotation(Entity shooter, float x, float y, float z, float velocity, float inaccuracy) Method parameters in net.minecraft.world.entity.projectile with type arguments of type EntityModifier and TypeMethodDescriptionstatic EntityHitResultProjectileUtil.getEntityHitResult(Entity shooter, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, double distance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) Gets the EntityHitResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, float inflationAmount) Gets the EntityHitResult representing the entity hitprivate static HitResultProjectileUtil.getHitResult(Vec3 pos, Entity projectile, Predicate<Entity> filter, Vec3 deltaMovement, Level level, float margin, ClipContext.Block clipContext) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity projectile, Predicate<Entity> filter) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity projectile, Predicate<Entity> filter, ClipContext.Block clipContext) static HitResultProjectileUtil.getHitResultOnViewVector(Entity projectile, Predicate<Entity> filter, double scale) Constructors in net.minecraft.world.entity.projectile with parameters of type EntityModifierConstructorDescriptionFireworkRocketEntity(Level level, Entity shooter, double x, double y, double z, ItemStack stack) FireworkRocketEntity(Level level, ItemStack stack, Entity shooter, double x, double y, double z, boolean shotAtAngle) ShulkerBullet(Level level, LivingEntity shooter, Entity finalTarget, Direction.Axis axis) -
Uses of Entity in net.minecraft.world.entity.projectile.windcharge
Subclasses of Entity in net.minecraft.world.entity.projectile.windchargeModifier and TypeClassDescriptionclassclassclassMethods in net.minecraft.world.entity.projectile.windcharge with parameters of type EntityModifier and TypeMethodDescriptionbooleanAbstractWindCharge.canCollideWith(Entity p_326023_) protected booleanAbstractWindCharge.canHitEntity(Entity p_326159_) booleanWindCharge.deflect(ProjectileDeflection p_350880_, Entity p_350728_, Entity p_350716_, boolean p_350553_) 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 p_376443_) booleanAbstractBoat.canCollideWith(Entity p_376785_) 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) voidAbstractBoat.elasticRangeLeashBehaviour(Entity p_376126_, float p_376596_) protected Vec3AbstractBoat.getPassengerAttachmentPoint(Entity p_376607_, EntityDimensions p_376417_, float p_376713_) protected Vec3AbstractMinecart.getPassengerAttachmentPoint(Entity p_294753_, EntityDimensions p_295251_, float p_296054_) booleanAbstractBoat.hasEnoughSpaceFor(Entity entity) voidAbstractBoat.onPassengerTurned(Entity p_376888_) protected voidAbstractBoat.positionRider(Entity p_376397_, Entity.MoveFunction p_376131_) protected voidMinecart.positionRider(Entity p_361111_, Entity.MoveFunction p_365490_) voidvoidApplies 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 p_344900_, float p_335575_, DamageSource p_344972_) private static doubleMaceItem.getKnockbackPower(Entity attacker, LivingEntity entity, Vec3 offset) voidCompassItem.inventoryTick(ItemStack p_40720_, ServerLevel p_401770_, Entity p_40722_, EquipmentSlot p_401781_) voidItem.inventoryTick(ItemStack stack, ServerLevel level, Entity entity, EquipmentSlot slot) voidItemStack.inventoryTick(Level level, Entity entity, EquipmentSlot slot) voidMapItem.inventoryTick(ItemStack p_42870_, ServerLevel p_401792_, Entity p_42872_, EquipmentSlot p_401885_) 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 enity, DamageSource damageSource, float fallBasedDamage) voidEnchantment.modifyFishingLuckBonus(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat fishingLuckBonus) voidEnchantment.modifyFishingTimeReduction(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat fishingTimeReduction) voidEnchantment.modifyKnockback(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat knockback) static floatEnchantmentHelper.modifyKnockback(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float knockback) voidEnchantment.modifyMobExperience(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat mobExperience) voidEnchantment.modifyProjectileCount(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat projectileCount) voidEnchantment.modifyProjectileSpread(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat projectileSpread) voidEnchantment.modifyTridentReturnToOwnerAcceleration(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat tridentReturnToOwnerAcceleration) voidEnchantment.onHitBlock(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, BlockState state) static voidEnchantmentHelper.onHitBlock(ServerLevel level, ItemStack stack, LivingEntity owner, Entity entity, EquipmentSlot slot, Vec3 pos, BlockState state, Consumer<Item> onBreak) voidEnchantment.onProjectileSpawned(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity) static intEnchantmentHelper.processMobExperience(ServerLevel level, Entity killer, Entity mob, int experience) static intEnchantmentHelper.processProjectileCount(ServerLevel level, ItemStack tool, Entity entity, int projectileCount) static floatEnchantmentHelper.processProjectileSpread(ServerLevel level, ItemStack tool, Entity entity, float projectileSpread) voidEnchantment.tick(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity) -
Uses of Entity in net.minecraft.world.item.enchantment.effects
Methods in net.minecraft.world.item.enchantment.effects with parameters of type EntityModifier and TypeMethodDescriptionvoidAllOf.EntityEffects.apply(ServerLevel p_346093_, int p_345940_, EnchantedItemInUse p_344929_, Entity p_345319_, Vec3 p_345200_) voidApplyMobEffect.apply(ServerLevel p_345355_, int p_346112_, EnchantedItemInUse p_344766_, Entity p_345996_, Vec3 p_345315_) voidChangeItemDamage.apply(ServerLevel p_379674_, int p_379927_, EnchantedItemInUse p_380376_, Entity p_379570_, Vec3 p_380002_) voidDamageEntity.apply(ServerLevel p_345710_, int p_344734_, EnchantedItemInUse p_345002_, Entity p_345450_, Vec3 p_345442_) voidEnchantmentEntityEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidExplodeEffect.apply(ServerLevel p_346186_, int p_345966_, EnchantedItemInUse p_346324_, Entity p_345305_, Vec3 p_344916_) voidIgnite.apply(ServerLevel p_345606_, int p_344968_, EnchantedItemInUse p_346032_, Entity p_346370_, Vec3 p_344775_) voidPlaySoundEffect.apply(ServerLevel p_344971_, int p_344872_, EnchantedItemInUse p_345016_, Entity p_346106_, Vec3 p_345017_) voidReplaceBlock.apply(ServerLevel p_345756_, int p_346215_, EnchantedItemInUse p_345202_, Entity p_346293_, Vec3 p_345339_) voidReplaceDisk.apply(ServerLevel p_353045_, int p_353076_, EnchantedItemInUse p_353050_, Entity p_353038_, Vec3 p_353044_) voidRunFunction.apply(ServerLevel p_346152_, int p_344788_, EnchantedItemInUse p_344801_, Entity p_346210_, Vec3 p_345413_) voidSetBlockProperties.apply(ServerLevel p_346105_, int p_345373_, EnchantedItemInUse p_346028_, Entity p_346068_, Vec3 p_345511_) voidSpawnParticlesEffect.apply(ServerLevel p_345529_, int p_346425_, EnchantedItemInUse p_346391_, Entity p_345668_, Vec3 p_344842_) voidSummonEntityEffect.apply(ServerLevel p_345900_, int p_346183_, EnchantedItemInUse p_345549_, Entity p_346414_, Vec3 p_346284_) 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 p_346176_, int p_345071_, EnchantedItemInUse p_345394_, Entity p_345539_, Vec3 p_346261_, boolean p_345801_) default voidEnchantmentEntityEffect.onChangedBlock(ServerLevel p_345419_, int p_345173_, EnchantedItemInUse p_344724_, Entity p_346126_, Vec3 p_345614_, boolean p_346410_) 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 p_346016_, Entity p_346371_, Vec3 p_345145_, int p_346185_) 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> p_151528_, AABB p_151529_, Predicate<? super T> p_151530_) <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 p_186447_, AABB p_186448_) default List<VoxelShape> EntityGetter.getEntityCollisions(Entity entity, AABB collisionBox) PathNavigationRegion.getEntityCollisions(Entity p_186557_, AABB p_186558_) floatExplosionDamageCalculator.getEntityDamageAmount(Explosion explosion, Entity entity, float seenPercent) static LivingEntityExplosion.getIndirectSourceEntity(Entity source) floatExplosionDamageCalculator.getKnockbackMultiplier(Entity entity) floatSimpleExplosionDamageCalculator.getKnockbackMultiplier(Entity p_345651_) default PlayerEntityGetter.getNearestPlayer(Entity entity, double distance) 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 p_346248_, Entity p_344983_) 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> p_151528_, AABB p_151529_, Predicate<? super T> p_151530_) <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 p_404795_) protected voidBasePressurePlateBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405011_) protected voidBigDripleafBlock.entityInside(BlockState p_152266_, Level p_152267_, BlockPos p_152268_, Entity p_152269_, InsideBlockEffectApplier p_405262_) protected voidBubbleColumnBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_404857_) protected voidButtonBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405475_) protected voidCactusBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405001_) protected voidCampfireBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405507_) protected voidCropBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405324_) protected voidDetectorRailBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405668_) protected voidEndGatewayBlock.entityInside(BlockState p_350647_, Level p_350785_, BlockPos p_350610_, Entity p_350849_, InsideBlockEffectApplier p_405476_) protected voidEndPortalBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405056_) protected voidEyeblossomBlock.entityInside(BlockState p_382817_, Level p_383060_, BlockPos p_383146_, Entity p_383054_, InsideBlockEffectApplier p_405247_) protected voidFrogspawnBlock.entityInside(BlockState p_221204_, Level p_221205_, BlockPos p_221206_, Entity p_221207_, InsideBlockEffectApplier p_405189_) protected voidHoneyBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_404924_) protected voidHopperBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405580_) protected voidLavaCauldronBlock.entityInside(BlockState p_153506_, Level p_153507_, BlockPos p_153508_, Entity p_153509_, InsideBlockEffectApplier p_404841_) protected voidLayeredCauldronBlock.entityInside(BlockState p_153534_, Level p_153535_, BlockPos p_153536_, Entity p_153537_, InsideBlockEffectApplier p_405060_) protected voidNetherPortalBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405383_) voidPitcherCropBlock.entityInside(BlockState p_279266_, Level p_279469_, BlockPos p_279119_, Entity p_279372_, InsideBlockEffectApplier p_404719_) protected voidPowderSnowBlock.entityInside(BlockState p_154263_, Level p_154264_, BlockPos p_154265_, Entity p_154266_, InsideBlockEffectApplier p_405853_) protected voidSweetBerryBushBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405414_) protected voidTripWireBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405466_) protected voidWaterlilyBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405495_) protected voidWebBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405438_) protected voidWitherRoseBlock.entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier p_405727_) static BlockStateComposterBlock.extractProduce(Entity entity, BlockState state, Level level, BlockPos pos) voidBedBlock.fallOn(Level p_152169_, BlockState p_152170_, BlockPos p_152171_, Entity p_152172_, double p_398028_) voidBlock.fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance) voidFarmBlock.fallOn(Level p_153227_, BlockState p_153228_, BlockPos p_153229_, Entity p_153230_, double p_397639_) voidHayBlock.fallOn(Level p_153362_, BlockState p_153363_, BlockPos p_153364_, Entity p_153365_, double p_397598_) voidHoneyBlock.fallOn(Level p_153372_, BlockState p_153373_, BlockPos p_153374_, Entity p_153375_, double p_396999_) voidPointedDripstoneBlock.fallOn(Level p_154047_, BlockState p_154048_, BlockPos p_154049_, Entity p_154050_, double p_397761_) voidPowderSnowBlock.fallOn(Level p_196695_, BlockState p_196696_, BlockPos p_196697_, Entity p_196698_, double p_397645_) voidSlimeBlock.fallOn(Level p_154567_, BlockState p_154568_, BlockPos p_154569_, Entity p_154570_, double p_397954_) voidTurtleEggBlock.fallOn(Level p_154845_, BlockState p_154846_, BlockPos p_154847_, Entity p_154848_, double p_397908_) 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 p_371319_, BlockGetter p_399758_, BlockPos p_371244_, Entity p_399952_) protected VoxelShapeNetherPortalBlock.getEntityInsideCollisionShape(BlockState p_400288_, BlockGetter p_400305_, BlockPos p_400030_, Entity p_399514_) protected VoxelShapePowderSnowBlock.getEntityInsideCollisionShape(BlockState p_399731_, BlockGetter p_399744_, BlockPos p_400088_, Entity p_399982_) protected VoxelShapeTripWireBlock.getEntityInsideCollisionShape(BlockState p_371595_, BlockGetter p_400245_, BlockPos p_371231_, Entity p_399588_) 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 p_254036_) default DamageSourceFallable.getFallDamageSource(Entity entity) PointedDripstoneBlock.getFallDamageSource(Entity p_254432_) EndGatewayBlock.getPortalDestination(ServerLevel p_350958_, Entity p_350650_, BlockPos p_350525_) EndPortalBlock.getPortalDestination(ServerLevel p_351032_, Entity p_350274_, BlockPos p_350589_) NetherPortalBlock.getPortalDestination(ServerLevel p_350444_, Entity p_350334_, BlockPos p_350764_) Portal.getPortalDestination(ServerLevel level, Entity entity, BlockPos pos) intNetherPortalBlock.getPortalTransitionTime(ServerLevel p_350689_, Entity p_350280_) default intPortal.getPortalTransitionTime(ServerLevel level, Entity entity) static BlockStateComposterBlock.insertItem(Entity entity, BlockState state, ServerLevel level, ItemStack stack, BlockPos pos) protected booleanAbstractCauldronBlock.isEntityInsideContent(BlockState state, BlockPos pos, Entity entity) private booleanHoneyBlock.isSlidingDown(BlockPos pos, Entity entity) private voidHoneyBlock.maybeDoSlideAchievement(Entity entity, BlockPos pos) private voidHoneyBlock.maybeDoSlideEffects(Level level, Entity entity) private voidNoteBlock.playNote(Entity entity, BlockState state, Level level, BlockPos pos) private voidstatic voidLecternBlock.resetBookState(Entity entity, Level level, BlockPos pos, BlockState state, boolean hasBook) voidDoorBlock.setOpen(Entity entity, Level level, BlockState state, BlockPos pos, boolean open) static voidHoneyBlock.showJumpParticles(Entity entity) private static voidHoneyBlock.showParticles(Entity entity, int particleCount) static voidHoneyBlock.showSlideParticles(Entity entity) private static voidCarvedPumpkinBlock.spawnGolemInWorld(Level level, BlockPattern.BlockPatternMatch patternMatch, Entity golem, BlockPos pos) voidBlock.stepOn(Level level, BlockPos pos, BlockState state, Entity entity) voidMagmaBlock.stepOn(Level p_153777_, BlockPos p_153778_, BlockState p_153779_, Entity p_153780_) voidRedStoneOreBlock.stepOn(Level p_154299_, BlockPos p_154300_, BlockState p_154301_, Entity p_154302_) voidSculkSensorBlock.stepOn(Level p_222132_, BlockPos p_222133_, BlockState p_222134_, Entity p_222135_) voidSculkShriekerBlock.stepOn(Level p_222177_, BlockPos p_222178_, BlockState p_222179_, Entity p_222180_) voidSlimeBlock.stepOn(Level p_154573_, BlockPos p_154574_, BlockState p_154575_, Entity p_154576_) voidTurtleEggBlock.stepOn(Level p_154857_, BlockPos p_154858_, BlockState p_154859_, Entity p_154860_) 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 p_49483_, Entity p_49484_) voidBlock.updateEntityMovementAfterFallOn(BlockGetter level, Entity entity) voidSlimeBlock.updateEntityMovementAfterFallOn(BlockGetter p_56406_, Entity p_56407_) 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 p_282851_, BlockPos p_281608_, Holder<GameEvent> p_316423_, Entity p_282123_, Entity p_283090_, float p_283130_) 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 TypeMethodDescriptionTrialSpawnerData.getOrCreateDisplayEntity(TrialSpawner spawner, Level level, TrialSpawnerState spawnerState) private static EntityTrialSpawnerState.selectEntityToSpawnItemAbove(List<Player> player, Set<UUID> currentMobs, TrialSpawner spawner, BlockPos pos, ServerLevel level) Methods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type EntityModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<BlockEntity, Entity> TrialSpawner.getOwner()Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type EntityModifier and TypeMethodDescriptionTrialSpawnerState.calculatePositionAbove(Entity entity, ServerLevel level) Method parameters in net.minecraft.world.level.block.entity.trialspawner with type arguments of type EntityModifier and TypeMethodDescriptionPlayerDetector.EntitySelector.getEntities(ServerLevel level, EntityTypeTest<Entity, T> typeTest, AABB boundingBox, Predicate<? super T> predicate) -
Uses of Entity in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston with parameters of type EntityModifier and TypeMethodDescriptionprivate static voidPistonMovingBlockEntity.fixEntityWithinPistonBase(BlockPos pos, Entity entity, Direction dir, double progress) private static booleanPistonMovingBlockEntity.matchesStickyCritera(AABB box, Entity entity, BlockPos pos) private static voidPistonMovingBlockEntity.moveEntityByPiston(Direction noClipDirection, Entity entity, double progress, Direction direction) -
Uses of Entity in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type EntityModifier and TypeMethodDescriptionfinal booleanBlockBehaviour.BlockStateBase.entityCanStandOn(BlockGetter level, BlockPos pos, Entity entity) final booleanBlockBehaviour.BlockStateBase.entityCanStandOnFace(BlockGetter level, BlockPos pos, Entity entity, Direction face) voidBlockBehaviour.BlockStateBase.entityInside(Level level, BlockPos pos, Entity entity, 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 p_156551_) Method parameters in net.minecraft.world.level.chunk.storage with type arguments of type EntityModifier and TypeMethodDescriptionvoidEntityStorage.storeEntities(ChunkEntities<Entity> p_156559_) -
Uses of Entity in net.minecraft.world.level.dimension.end
Fields in net.minecraft.world.level.dimension.end with type parameters of type Entity -
Uses of Entity in net.minecraft.world.level.entity
Fields in net.minecraft.world.level.entity declared as EntityModifier and TypeFieldDescriptionprivate final EntityPersistentEntitySectionManager.Callback.realEntityprivate final EntityTransientEntitySectionManager.Callback.realEntityFields in net.minecraft.world.level.entity with type parameters of type EntityModifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity> EntityTickList.activeprivate it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity> EntityTickList.iteratedprivate it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity> EntityTickList.passiveMethods in net.minecraft.world.level.entity with parameters of type EntityModifier and TypeMethodDescriptionvoidbooleanvoidMethod parameters in net.minecraft.world.level.entity with type arguments of type Entity -
Uses of Entity in net.minecraft.world.level.gameevent
Fields in net.minecraft.world.level.gameevent declared as EntityModifier and TypeFieldDescriptionprivate final EntityGameEvent.Context.sourceEntityThe field for thesourceEntityrecord component.Fields in net.minecraft.world.level.gameevent with type parameters of type EntityMethods in net.minecraft.world.level.gameevent that return EntityModifier and TypeMethodDescriptionGameEvent.Context.sourceEntity()Returns the value of thesourceEntityrecord component.Methods in net.minecraft.world.level.gameevent with parameters of type EntityModifier and TypeMethodDescriptionstatic GameEvent.Contextstatic GameEvent.ContextGameEvent.Context.of(Entity sourceEntity, BlockState affectedState) Constructors in net.minecraft.world.level.gameevent with parameters of type EntityModifierConstructorDescriptionContext(Entity sourceEntity, BlockState affectedState) Creates an instance of aContextrecord class.EntityPositionSource(Entity entity, float yOffset) Constructor parameters in net.minecraft.world.level.gameevent with type arguments of type EntityModifierConstructorDescriptionprivateEntityPositionSource(com.mojang.datafixers.util.Either<Entity, com.mojang.datafixers.util.Either<UUID, Integer>> entityOrUuidOrId, float yOffset) -
Uses of Entity in net.minecraft.world.level.gameevent.vibrations
Fields in net.minecraft.world.level.gameevent.vibrations declared as EntityModifier and TypeFieldDescriptionprivate final EntityVibrationInfo.entityThe field for theentityrecord component.Methods in net.minecraft.world.level.gameevent.vibrations that return EntityModifier and TypeMethodDescriptionVibrationInfo.entity()Returns the value of theentityrecord component.Methods in net.minecraft.world.level.gameevent.vibrations that return types with arguments of type EntityModifier and TypeMethodDescriptionVibrationInfo.getEntity(ServerLevel level) VibrationInfo.getProjectileOwner(ServerLevel level) Methods in net.minecraft.world.level.gameevent.vibrations with parameters of type EntityModifier and TypeMethodDescriptionprivate static UUIDVibrationInfo.getProjectileOwner(Entity entity) voidVibrationSystem.User.onReceiveVibration(ServerLevel level, BlockPos pos, Holder<GameEvent> gameEvent, Entity entity, Entity playerEntity, float distance) Constructors in net.minecraft.world.level.gameevent.vibrations with parameters of type EntityModifierConstructorDescriptionVibrationInfo(Holder<GameEvent> gameEvent, float distance, Vec3 pos, UUID uuid, UUID projectileOwnerUuid, Entity entity) Creates an instance of aVibrationInforecord class.VibrationInfo(Holder<GameEvent> p_316851_, float p_250190_, Vec3 p_251692_, Entity p_316868_) -
Uses of Entity in net.minecraft.world.level.levelgen.structure.templatesystem
Methods in net.minecraft.world.level.levelgen.structure.templatesystem that return types with arguments of type EntityModifier and TypeMethodDescriptionStructureTemplate.createEntityIgnoreException(ServerLevelAccessor level, CompoundTag tag) -
Uses of Entity in net.minecraft.world.level.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 p_405274_, BlockPos p_404936_, Entity p_405835_, InsideBlockEffectApplier p_404807_) protected voidWaterFluid.entityInside(Level p_404956_, BlockPos p_405311_, Entity p_405780_, InsideBlockEffectApplier p_405240_) -
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.placementContext(Entity entity) 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.neoforged.neoforge.attachment
Methods in net.neoforged.neoforge.attachment with parameters of type EntityModifier and TypeMethodDescriptionstatic voidAttachmentInternals.copyEntityAttachments(Entity from, Entity to, boolean isDeath) Do not call directly, useIEntityExtension.copyAttachmentsFrom(Entity, boolean). -
Uses of Entity in net.neoforged.neoforge.capabilities
Fields in net.neoforged.neoforge.capabilities with type parameters of type EntityModifier and TypeFieldDescription(package private) final Map<EntityType<?>, List<ICapabilityProvider<Entity, C, T>>> EntityCapability.providersMethods in net.neoforged.neoforge.capabilities with type parameters of type EntityModifier and TypeMethodDescriptionRegisterCapabilitiesEvent.registerEntity(EntityCapability<T, C> capability, EntityType<E> entityType, ICapabilityProvider<? super E, C, T> provider) Register a capability provider for some entity type.Methods in net.neoforged.neoforge.capabilities with parameters of type Entity -
Uses of Entity in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type EntityModifier and TypeMethodDescriptionstatic 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 org.joml.Vector3dIClientBlockExtensions.getFogColor(BlockState state, LevelReader level, BlockPos pos, Entity entity, org.joml.Vector3d originalColor, float partialTick) NOT CURRENTLY IMPLEMENTED -
Uses of Entity in net.neoforged.neoforge.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