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.criterion
Methods in net.minecraft.advancements.criterion with parameters of type EntityModifier and TypeMethodDescriptionstatic LootContextEntityPredicate.createContext(ServerPlayer pPlayer, Entity pEntity) static CompoundTagNbtPredicate.getEntityTagToCompare(Entity pEntity) booleanbooleanbooleanEntityPredicate.matches(ServerLevel pLevel, @Nullable Vec3 pPosition, @Nullable Entity pEntity) booleanEntityPredicate.matches(ServerPlayer pPlayer, @Nullable Entity pEntity) booleanEntitySubPredicate.matches(Entity pEntity, ServerLevel pLevel, @Nullable Vec3 pPosition) booleanFishingHookPredicate.matches(Entity p_468492_, ServerLevel p_467933_, @Nullable Vec3 p_469214_) booleanLightningBoltPredicate.matches(Entity p_468961_, ServerLevel p_468800_, @Nullable Vec3 p_468411_) booleanbooleanbooleanPlayerPredicate.matches(Entity p_468814_, ServerLevel p_469653_, @Nullable Vec3 p_468235_) booleanRaiderPredicate.matches(Entity p_468204_, ServerLevel p_468020_, @Nullable Vec3 p_468183_) booleanSheepPredicate.matches(Entity p_468089_, ServerLevel p_469476_, @Nullable Vec3 p_468038_) booleanSlimePredicate.matches(Entity p_468050_, ServerLevel p_469697_, @Nullable Vec3 p_469566_) voidEffectsChangedTrigger.trigger(ServerPlayer pPlayer, @Nullable Entity pSource) voidFallAfterExplosionTrigger.trigger(ServerPlayer pPlayer, Vec3 pPos, @Nullable Entity pEntity) voidKilledTrigger.trigger(ServerPlayer pPlayer, Entity pEntity, DamageSource pSource) voidPickedUpItemTrigger.trigger(ServerPlayer pPlayer, ItemStack pStack, @Nullable Entity pEntity) voidPlayerHurtEntityTrigger.trigger(ServerPlayer pPlayer, Entity pEntity, DamageSource pSource, float pAmountDealt, float pAmountTaken, boolean pBlocked) voidPlayerInteractTrigger.trigger(ServerPlayer pPlayer, ItemStack pItem, Entity pEntity) voidSummonedEntityTrigger.trigger(ServerPlayer pPlayer, Entity pEntity) voidTargetBlockTrigger.trigger(ServerPlayer pPlayer, Entity pProjectile, Vec3 pVector, int pSignalStrength) Method parameters in net.minecraft.advancements.criterion with type arguments of type EntityModifier and TypeMethodDescriptionvoidChanneledLightningTrigger.trigger(ServerPlayer pPlayer, Collection<? extends Entity> pEntityTriggered) voidKilledByArrowTrigger.trigger(ServerPlayer pPlayer, Collection<Entity> pVictims, @Nullable ItemStack pFiredFromWeapon) voidLightningStrikeTrigger.trigger(ServerPlayer pPlayer, LightningBolt pLightning, List<Entity> pNearbyEntities) -
Uses of Entity in net.minecraft.client
Fields in net.minecraft.client declared as EntityModifier and TypeFieldDescriptionprivate @Nullable EntityMinecraft.cameraEntity@Nullable EntityMinecraft.crosshairPickEntityprivate EntityCamera.entityMethods in net.minecraft.client that return EntityMethods in net.minecraft.client with parameters of type EntityModifier and TypeMethodDescriptionvoidMinecraft.setCameraEntity(@Nullable Entity pViewingEntity) voidCamera.setup(Level pLevel, Entity pEntity, boolean pDetached, boolean pMirror, float pPartialTickTime) booleanMinecraft.shouldEntityAppearGlowing(Entity pEntity) -
Uses of Entity in net.minecraft.client.entity
Subclasses of Entity in net.minecraft.client.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 pGuiGraphics, @Nullable Entity pEntity) Renders the vignette effect on the screen based on the distance to the world border and the entity's position.private voidGui.updateVignetteBrightness(Entity pEntity) 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 @Nullable EntityClientPacketListener.createEntityFromPacket(ClientboundAddEntityPacket pPacket) @Nullable EntityClientLevel.getEntity(int pId) 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 entityvoidClientDebugSubscriber.dropEntity(Entity pEntity) voidClientLevel.explode(@Nullable Entity p_363686_, @Nullable DamageSource p_365268_, @Nullable 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_, WeightedList<ExplosionParticleInfo> p_437196_, Holder<SoundEvent> p_362359_) ClientLevel.getPushableEntities(Entity p_393670_, AABB p_394410_) voidMultiPlayerGameMode.handlePickItemFromEntity(Entity pEntity, boolean pIncludeData) MultiPlayerGameMode.interact(Player pPlayer, Entity pTarget, InteractionHand pHand) Handles right-clicking an entity, sends a packet to the server.MultiPlayerGameMode.interactAt(Player pPlayer, Entity pTarget, EntityHitResult pRay, InteractionHand pHand) Handles right-clicking an entity from the entities side, sends a packet to the server.booleanClientLevel.isTickingEntity(Entity pEntity) voidClientLevel.levelEvent(@Nullable 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(@Nullable 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(@Nullable 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 pEntity) private static booleanClientPacketListener.setValuesFromPositionPacket(PositionMoveRotation pPositionMoveRotation, Set<Relative> pRelatives, Entity pEntity, boolean pLerp) booleanClientLevel.shouldTickDeath(Entity p_194185_) voidClientLevel.tickNonPassenger(Entity pEntity) private voidClientLevel.tickPassenger(Entity pMount, Entity pRider) <T> voidClientDebugSubscriber.updateEntity(long pGameTime, Entity pEntity, DebugSubscription.Update<T> pUpdate) -
Uses of Entity in net.minecraft.client.particle
Fields in net.minecraft.client.particle declared as EntityModifier and TypeFieldDescriptionprivate final EntityTrackingEmitter.entityprivate final EntityItemPickupParticle.targetMethods in net.minecraft.client.particle with parameters of type EntityModifier and TypeMethodDescriptionvoidParticleEngine.createTrackingEmitter(Entity pEntity, ParticleOptions pParticleData) voidParticleEngine.createTrackingEmitter(Entity pEntity, ParticleOptions pData, int pLifetime) Constructors in net.minecraft.client.particle with parameters of type EntityModifierConstructorDescriptionItemPickupParticle(ClientLevel pLevel, EntityRenderState pItemRenderState, Entity pTarget, Vec3 pSpeed) TrackingEmitter(ClientLevel pLevel, Entity pEntity, ParticleOptions pParticleType) TrackingEmitter(ClientLevel pLevel, Entity pEntity, ParticleOptions pParticleType, int pLifetime) TrackingEmitter(ClientLevel pLevel, Entity pEntity, ParticleOptions pParticleType, int pLifetime, Vec3 pSpeedVector) -
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.voidprivate static HitResultLocalPlayer.raycastHitResult(float pPartialTick, Entity pCameraEntity) booleanLocalPlayer.startRiding(Entity p_108667_, boolean p_108668_, boolean p_435382_) private booleanLocalPlayer.vehicleCanSprint(Entity pVehicle) -
Uses of Entity in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type EntityModifier and TypeMethodDescriptionvoidGameRenderer.checkEntityPostEffect(@Nullable Entity pEntity) What shader to use when spectating this entityprivate EntityRenderStateLevelRenderer.extractEntity(Entity pEntity, float pPartialTick) -
Uses of Entity in net.minecraft.client.renderer.blockentity
Methods in net.minecraft.client.renderer.blockentity with parameters of type EntityModifier and TypeMethodDescription(package private) static voidTrialSpawnerRenderer.extractSpawnerData(SpawnerRenderState pRenderState, float pPartialTick, @Nullable Entity pEntity, EntityRenderDispatcher pEntityRenderer, double pOSpin, double pSpin) -
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 EntityModifier and TypeMethodDescriptionprivate @Nullable EntityEntityHitboxDebugRenderer.getServerEntity(Entity pEntity) Methods in net.minecraft.client.renderer.debug that return types with arguments of type EntityModifier and TypeMethodDescriptionDebugRenderer.getTargetedEntity(@Nullable Entity pEntity, int pDistance) Methods in net.minecraft.client.renderer.debug with parameters of type EntityModifier and TypeMethodDescriptionprivate voidSupportBlockRenderer.drawHighlights(Entity pEntity, DoubleSupplier pBiasGetter, int pColor) private doubleprivate StringBeeDebugRenderer.getPosDescription(Entity pEntity, BlockPos pPos) private @Nullable EntityEntityHitboxDebugRenderer.getServerEntity(Entity pEntity) DebugRenderer.getTargetedEntity(@Nullable Entity pEntity, int pDistance) private booleanBeeDebugRenderer.isBeeSelected(Entity pEntity) private booleanBrainDebugRenderer.isMobSelected(Entity pEntity) private voidBeeDebugRenderer.renderBeeInfo(Entity pBee, DebugBeeInfo pBeeInfo, @Nullable DebugGoalInfo pGoalInfo) private voidBrainDebugRenderer.renderBrainInfo(Entity pEntity, DebugBrainDump pBrainDump) private voidEntityHitboxDebugRenderer.showHitboxes(Entity pEntity, float pPartialTick, boolean pIsServerEntity) -
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>
EntityRenderStateEntityRenderDispatcher.extractEntity(E pEntity, float pPartialTick) <E extends Entity>
intEntityRenderDispatcher.getPackedLightCoords(E pEntity, float pPartialTicks) <T extends Entity>
EntityRenderer<? super T, ?> EntityRenderDispatcher.getRenderer(T pEntity) static <T extends Entity>
voidEntityRenderers.register(EntityType<? extends T> pEntityType, EntityRendererProvider<T> pProvider) <E extends Entity>
booleanEntityRenderDispatcher.shouldRender(E pEntity, Frustum pFrustum, double pCamX, double pCamY, double pCamZ) Methods in net.minecraft.client.renderer.entity that return EntityModifier and TypeMethodDescriptionprivate static @Nullable EntityGuardianRenderer.getEntityToLookAt(Guardian pGuardian) private static @Nullable EntityEntityRenderer.getServerSideEntity(Entity pEntity) Methods in net.minecraft.client.renderer.entity with parameters of type EntityModifier and TypeMethodDescriptionprotected static booleanMobRenderer.checkMagicName(Entity pEntity, String pName) doubleEntityRenderDispatcher.distanceToSqr(Entity pEntity) private static @Nullable EntityEntityRenderer.getServerSideEntity(Entity pEntity) 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 pEntity, ItemStack pStack, ItemModelResolver pItemModelResolver) -
Uses of Entity in net.minecraft.client.renderer.fog.environment
Methods in net.minecraft.client.renderer.fog.environment with parameters of type EntityModifier and TypeMethodDescriptionbooleanAtmosphericFogEnvironment.isApplicable(@Nullable FogType p_423642_, Entity p_423662_) abstract booleanFogEnvironment.isApplicable(@Nullable FogType pFogType, Entity pEntity) booleanLavaFogEnvironment.isApplicable(@Nullable FogType p_423685_, Entity p_423469_) booleanMobEffectFogEnvironment.isApplicable(@Nullable FogType p_423548_, Entity p_423681_) booleanPowderedSnowFogEnvironment.isApplicable(@Nullable FogType p_423443_, Entity p_423658_) booleanWaterFogEnvironment.isApplicable(@Nullable FogType p_423569_, Entity p_423444_) -
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 pRenderState, ItemStack pStack, ItemDisplayContext pDisplayContext, Entity pEntity) -
Uses of Entity in net.minecraft.client.resources.sounds
Fields in net.minecraft.client.resources.sounds declared as EntityModifier and TypeFieldDescriptionprivate final EntityEntityBoundSoundInstance.entityprivate final EntityRidingEntitySoundInstance.entityConstructors in net.minecraft.client.resources.sounds with parameters of type EntityModifierConstructorDescriptionEntityBoundSoundInstance(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, Entity pEntity, long pSeed) RidingEntitySoundInstance(Player pPlayer, Entity pEntity, boolean pUnderwaterSound, SoundEvent pSoundEvent, SoundSource pSource, float pVolumeMin, float pVolumeMax, float pVolumeAmplifier) -
Uses of Entity in net.minecraft.client.waypoints
Methods in net.minecraft.client.waypoints with parameters of type EntityModifier and TypeMethodDescriptionvoidClientWaypointManager.forEachWaypoint(Entity pEntity, Consumer<TrackedWaypoint> pAction) -
Uses of Entity in net.minecraft.commands
Fields in net.minecraft.commands declared as EntityMethods in net.minecraft.commands that return EntityModifier and TypeMethodDescription@Nullable EntityCommandSourceStack.getEntity()CommandSourceStack.getEntityOrException()Methods in net.minecraft.commands with parameters of type EntityModifier and TypeMethodDescriptionCommandSourceStack.facing(Entity pEntity, EntityAnchorArgument.Anchor pAnchor) CommandSourceStack.withEntity(Entity pEntity) Constructors in net.minecraft.commands with parameters of type EntityModifierConstructorDescriptionCommandSourceStack(CommandSource pSource, Vec3 pWorldPosition, Vec2 pRotation, ServerLevel pLevel, PermissionSet pPermissionLevel, String pTextName, Component pDisplayName, MinecraftServer pServer, @Nullable Entity pEntity) privateCommandSourceStack(CommandSource pSource, Vec3 pWorldPosition, Vec2 pRotation, ServerLevel pLevel, PermissionSet pPermissions, String pTextName, Component pDisplayName, MinecraftServer pServer, @Nullable Entity pEntity, boolean pSilent, CommandResultCallback pResultCallback, EntityAnchorArgument.Anchor pAnchor, CommandSigningContext pSigningContext, TaskChainer pChatMessageChainer) -
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> pContext, String pName) 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> pContext, String pName) static Collection<? extends Entity> EntityArgument.getOptionalEntities(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) 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> pContext, String pName, @Nullable Entity pEntity) 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(MinMaxBounds.FloatDegrees pRange, ToFloatFunction<Entity> pRotationGetter) EntitySelector.findEntities(CommandSourceStack pSource) BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.getOrder()EntitySelector.getPredicate(Vec3 pPos, @Nullable AABB pBox, @Nullable FeatureFlagSet pEnabledFeatures) Method parameters in net.minecraft.commands.arguments.selector with type arguments of type EntityModifier and TypeMethodDescriptionprivate voidEntitySelector.addEntities(List<Entity> pEntities, ServerLevel pLevel, @Nullable AABB pBox, Predicate<Entity> pPredicate) private voidEntitySelector.addEntities(List<Entity> pEntities, ServerLevel pLevel, @Nullable AABB pBox, Predicate<Entity> pPredicate) voidEntitySelectorParser.addPredicate(Predicate<Entity> pPredicate) EntitySelectorParser.createRotationPredicate(MinMaxBounds.FloatDegrees pRange, ToFloatFunction<Entity> pRotationGetter) static ComponentvoidEntitySelectorParser.setOrder(BiConsumer<Vec3, List<? extends Entity>> pOrder) Constructor parameters in net.minecraft.commands.arguments.selector with type arguments of type EntityModifierConstructorDescriptionEntitySelector(int pMaxResults, boolean pIncludesEntities, boolean pWorldLimited, List<Predicate<Entity>> pContextFreePredicates, @Nullable MinMaxBounds.Doubles pRange, Function<Vec3, Vec3> pPosition, @Nullable AABB pAabb, BiConsumer<Vec3, List<? extends Entity>> pOrder, boolean pCurrentEntity, @Nullable String pPlayerName, @Nullable UUID pEntityUUID, @Nullable EntityType<?> pType, boolean pUsesSelector) EntitySelector(int pMaxResults, boolean pIncludesEntities, boolean pWorldLimited, List<Predicate<Entity>> pContextFreePredicates, @Nullable MinMaxBounds.Doubles pRange, Function<Vec3, Vec3> pPosition, @Nullable AABB pAabb, BiConsumer<Vec3, List<? extends Entity>> pOrder, boolean pCurrentEntity, @Nullable String pPlayerName, @Nullable UUID pEntityUUID, @Nullable EntityType<?> pType, boolean pUsesSelector) -
Uses of Entity in net.minecraft.core
Methods in net.minecraft.core with parameters of type EntityModifier and TypeMethodDescriptionstatic DirectionDirection.getFacingAxis(Entity pEntity, Direction.Axis pAxis) static Direction[]Direction.orderedByNearest(Entity pEntity) 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 pPos, EntityType<E> pType, Function<? super E, T> pEntityDataGetter, @Nullable T pExpectedValue) <E extends Entity,T>
voidGameTestHelper.assertEntityData(BlockPos pPos, EntityType<E> pType, Predicate<E> pPredicate) <E extends Entity,T>
voidGameTestHelper.assertEntityData(AABB pArea, EntityType<E> pType, Function<? super E, T> pEntityDataGetter, @Nullable T pExpectedValue) <E extends Entity & InventoryCarrier>
voidGameTestHelper.assertEntityInventoryContains(BlockPos pPos, EntityType<E> pEntityType, Item pItem) <E extends Entity,T>
voidGameTestHelper.assertEntityProperty(E pEntity, Function<E, T> pValueGetter, T pExpectedValue, Component pMessage) <E extends Entity>
voidGameTestHelper.assertEntityProperty(E pEntity, Predicate<E> pPredicate, Component pMessage) <E extends Entity>
EGameTestHelper.findClosestEntity(EntityType<E> pType, int pX, int pY, int pZ, double pRadius) GameTestHelper.findEntities(EntityType<E> pType, int pX, int pY, int pZ, double pRadius) GameTestHelper.findEntities(EntityType<E> pType, Vec3 pPos, double pRadius) <E extends Entity>
EGameTestHelper.findOneEntity(EntityType<E> pType) GameTestHelper.getEntities(EntityType<T> pEntityType) GameTestHelper.getEntities(EntityType<T> pEntityType, BlockPos pPos, double pRadius) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> pType, float pX, float pY, float pZ) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> pType, int pX, int pY, int pZ) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> pType, BlockPos pPos) GameTestHelper.spawn(EntityType<E> pType, BlockPos pPos, int pCount) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> pType, Vec3 pPos) GameTestHelper.spawn(EntityType<E> pType, Vec3 pPos, int pCount) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> pType, Vec3 pPos, @Nullable EntitySpawnReason pReason) <E extends Entity,T>
voidGameTestHelper.succeedWhenEntityData(BlockPos pPos, EntityType<E> pType, Function<E, T> pEntityDataGetter, T pTestEntityData) Methods in net.minecraft.gametest.framework with parameters of type EntityModifier and TypeMethodDescriptionvoidGameTestHelper.assertEntityInstancePresent(Entity pEntity, int pX, int pY, int pZ) voidGameTestHelper.assertEntityInstancePresent(Entity pEntity, BlockPos pPos) voidvoidGameTestHelper.hurt(Entity pEntity, DamageSource pDamageSource, float pAmount) voidStructureUtils.lookedAtTestPos(BlockPos pPos, Entity pEntity, ServerLevel pLevel) Method parameters in net.minecraft.gametest.framework with type arguments of type EntityModifier and TypeMethodDescriptionvoidGameTestHelper.killAllEntitiesOfClass(Class<? extends Entity> pEntityClass) -
Uses of Entity in net.minecraft.gizmos
Methods in net.minecraft.gizmos with parameters of type EntityModifier and TypeMethodDescriptionstatic GizmoPropertiesGizmos.billboardTextOverMob(Entity pEntity, int pLine, String pText, int pColor, float pScale) -
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> pChatTypeKey, Entity pEntity) default MutableComponentComponentContents.resolve(@Nullable CommandSourceStack pNbtPathPattern, @Nullable Entity pEntity, int pRecursionDepth) private static StyleComponentUtils.resolveStyle(@Nullable CommandSourceStack pCommandSourceStack, Style pStyle, @Nullable Entity pEntity, int pRecursionDepth) static Optional<MutableComponent> ComponentUtils.updateForEntity(@Nullable CommandSourceStack pCommandSourceStack, Optional<Component> pOptionalComponent, @Nullable Entity pEntity, int pRecursionDepth) static MutableComponentComponentUtils.updateForEntity(@Nullable CommandSourceStack pCommandSourceStack, Component pComponent, @Nullable Entity pEntity, int pRecursionDepth) -
Uses of Entity in net.minecraft.network.chat.contents
Methods in net.minecraft.network.chat.contents with parameters of type EntityModifier and TypeMethodDescriptionNbtContents.resolve(@Nullable CommandSourceStack p_237401_, @Nullable Entity p_237402_, int p_237403_) ScoreContents.resolve(@Nullable CommandSourceStack p_237444_, @Nullable Entity p_237445_, int p_237446_) SelectorContents.resolve(@Nullable CommandSourceStack p_237468_, @Nullable Entity p_237469_, int p_237470_) TranslatableContents.resolve(@Nullable CommandSourceStack p_237512_, @Nullable 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 TypeMethodDescription@Nullable Entity@Nullable Entity@Nullable Entity@Nullable Entity@Nullable Entity@Nullable Entity@Nullable EntityServerboundTeleportToEntityPacket.getEntity(ServerLevel pLevel) @Nullable EntityServerboundInteractPacket.getTarget(ServerLevel pLevel) Methods in net.minecraft.network.protocol.game with parameters of type EntityModifier and TypeMethodDescriptionstatic ServerboundInteractPacketServerboundInteractPacket.createAttackPacket(Entity pEntity, boolean pUsingSecondaryAction) static ServerboundInteractPacketServerboundInteractPacket.createInteractionPacket(Entity pEntity, boolean pUsingSecondaryAction, InteractionHand pHand) static ServerboundInteractPacketServerboundInteractPacket.createInteractionPacket(Entity pEntity, boolean pUsingSecondaryAction, InteractionHand pHand, Vec3 pInteractionLocation) static ClientboundMoveVehiclePacketClientboundMoveVehiclePacket.fromEntity(Entity pEntity) static ServerboundMoveVehiclePacketServerboundMoveVehiclePacket.fromEntity(Entity pEntity) static StringDebugEntityNameGenerator.getEntityName(Entity pEntity) Constructors in net.minecraft.network.protocol.game with parameters of type EntityModifierConstructorDescriptionClientboundAddEntityPacket(Entity pEntity, int pData, BlockPos pPos) ClientboundAddEntityPacket(Entity pEntity, ServerEntity pServerEntity) ClientboundAddEntityPacket(Entity pEntity, ServerEntity pServerEntity, int pData) ClientboundAnimatePacket(Entity pEntity, int pAction) ClientboundDamageEventPacket(Entity p_270474_, DamageSource p_270781_) ClientboundEntityEventPacket(Entity pEntity, byte pEventId) ClientboundPlayerLookAtPacket(EntityAnchorArgument.Anchor pFromAnchor, Entity pEntity, EntityAnchorArgument.Anchor pToAnchor) ClientboundRotateHeadPacket(Entity pEntity, byte pYHeadRot) ClientboundSetCameraPacket(Entity pCameraEntity) ClientboundSetEntityLinkPacket(Entity pSource, @Nullable Entity pDestination) ClientboundSetEntityMotionPacket(Entity pEntity) ClientboundSetPassengersPacket(Entity pVehicle) ClientboundSoundEntityPacket(Holder<SoundEvent> pSound, SoundSource pSource, Entity pEntity, float pVolume, float pPitch, long pSeed) ServerboundPlayerCommandPacket(Entity pEntity, ServerboundPlayerCommandPacket.Action pAction) ServerboundPlayerCommandPacket(Entity pEntity, ServerboundPlayerCommandPacket.Action pAction, int pData) -
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 pSource, Holder.Reference<EntityType<?>> pType, Vec3 pPos, CompoundTag pTag, boolean pRandomizeProperties) 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 pSource, Entity pEntity, Holder<Attribute> pAttribute, Identifier pId, double pAmount, AttributeModifier.Operation pOperation) private static intDamageCommand.damage(CommandSourceStack pSource, Entity pTarget, float pAmount, DamageSource pDamageType) private static intRideCommand.dismount(CommandSourceStack pSource, Entity pTarget) private static intLootCommand.dropKillLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, Entity pEntity, LootCommand.DropConsumer pDropConsumer) private static intItemCommands.entityToBlock(CommandSourceStack pSource, Entity pSourceEntity, int pSourceSlot, BlockPos pPos, int pSlot) private static intItemCommands.entityToBlock(CommandSourceStack pSource, Entity pSourceEntity, int pSourceSlot, BlockPos pPos, int pSlot, Holder<LootItemFunction> pModifier) private static intItemCommands.entityToEntities(CommandSourceStack pSource, Entity pSourceEntity, int pSourceSlot, Collection<? extends Entity> pTargets, int pSlot) private static intItemCommands.entityToEntities(CommandSourceStack pSource, Entity pSourceEntity, int pSourceSlot, Collection<? extends Entity> pTargets, int pSlot, Holder<LootItemFunction> pModifier) private static intAttributeCommand.getAttributeBase(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute, double pScale) private static AttributeInstanceAttributeCommand.getAttributeInstance(Entity pEntity, Holder<Attribute> pAttribute) private static intAttributeCommand.getAttributeModifier(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute, Identifier pId, double pScale) private static Stream<Identifier> AttributeCommand.getAttributeModifiers(Entity pEntity, Holder<Attribute> pAttribute) private static intAttributeCommand.getAttributeValue(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute, double pScale) private static LivingEntityAttributeCommand.getEntityWithAttribute(Entity pEntity, Holder<Attribute> pAttribute) private static LivingEntityAttributeCommand.getLivingEntity(Entity pTarget) private static intRideCommand.mount(CommandSourceStack pSource, Entity pTarget, Entity pVehicle) voidLookAt.LookAtEntity.perform(CommandSourceStack p_380255_, Entity p_379889_) voidLookAt.LookAtPosition.perform(CommandSourceStack p_379815_, Entity p_379917_) voidLookAt.perform(CommandSourceStack pSource, Entity pEntity) private static voidTeleportCommand.performTeleport(CommandSourceStack pSource, Entity pTarget, ServerLevel pLevel, double pX, double pY, double pZ, Set<Relative> pRelatives, float pYRot, float pXRot, @Nullable LookAt pLookAt) private static intAttributeCommand.removeModifier(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute, Identifier pId) private static intAttributeCommand.resetAttributeBase(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute) private static intRotateCommand.rotate(CommandSourceStack pSource, Entity pEntity, Coordinates pCoordinates) private static intRotateCommand.rotate(CommandSourceStack pSource, Entity pEntity, LookAt pLookAt) private static voidTeamMsgCommand.sendMessage(CommandSourceStack pSource, Entity pSender, PlayerTeam pTeam, List<ServerPlayer> pTeamMembers, PlayerChatMessage pChatMessage) private static intAttributeCommand.setAttributeBase(CommandSourceStack pSource, Entity pEntity, Holder<Attribute> pAttribute, double pValue) private static voidLootCommand.setSlots(Entity pTarget, List<ItemStack> pItems, int pStartSlot, int pNumSlots, List<ItemStack> pSetItems) private static intSpectateCommand.spectate(CommandSourceStack pSource, @Nullable Entity pTarget, ServerPlayer pPlayer) private static intTeleportCommand.teleportToEntity(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Entity pDestination) Method parameters in net.minecraft.server.commands with type arguments of type EntityModifier and TypeMethodDescriptionprivate static intTagCommand.addTag(CommandSourceStack pSource, Collection<? extends Entity> pEntities, String pTagName) private static intItemCommands.blockToEntities(CommandSourceStack pSource, BlockPos pPos, int pSourceSlot, Collection<? extends Entity> pTargets, int pSlot) private static intItemCommands.blockToEntities(CommandSourceStack pSource, BlockPos pPos, int pSourceSlot, Collection<? extends Entity> pTargets, int pSlot, Holder<LootItemFunction> pModifier) private static intEffectCommands.clearEffect(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Holder<MobEffect> pEffect) private static intEffectCommands.clearEffects(CommandSourceStack pSource, Collection<? extends Entity> pTargets) private static intEnchantCommand.enchant(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Holder<Enchantment> pEnchantment, int pLevel) private static intLootCommand.entityReplace(Collection<? extends Entity> pTargets, int pStartSlot, int pNumSlots, List<ItemStack> pItems, LootCommand.Callback pCallback) private static intItemCommands.entityToEntities(CommandSourceStack pSource, Entity pSourceEntity, int pSourceSlot, Collection<? extends Entity> pTargets, int pSlot) private static intItemCommands.entityToEntities(CommandSourceStack pSource, Entity pSourceEntity, int pSourceSlot, Collection<? extends Entity> pTargets, int pSlot, Holder<LootItemFunction> pModifier) private static com.mojang.brigadier.RedirectModifier<CommandSourceStack> ExecuteCommand.expandOneToManyEntityRelation(Function<Entity, Stream<Entity>> pRelation) private static com.mojang.brigadier.RedirectModifier<CommandSourceStack> ExecuteCommand.expandOneToManyEntityRelation(Function<Entity, Stream<Entity>> pRelation) private static com.mojang.brigadier.RedirectModifier<CommandSourceStack> ExecuteCommand.expandOneToOneEntityRelation(Function<Entity, Optional<Entity>> pRelation) private static com.mojang.brigadier.RedirectModifier<CommandSourceStack> ExecuteCommand.expandOneToOneEntityRelation(Function<Entity, Optional<Entity>> pRelation) private static intSpreadPlayersCommand.getNumberOfTeams(Collection<? extends Entity> pEntities) Gets the number of unique teams for the given list of entities.private static Collection<String> TagCommand.getTags(Collection<? extends Entity> pEntities) Gets all tags that are present on at least one of the given entities.private static intEffectCommands.giveEffect(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Holder<MobEffect> pEffect, @Nullable Integer pSeconds, int pAmplifier, boolean pShowParticles) private static intKillCommand.kill(CommandSourceStack pSource, Collection<? extends Entity> pTargets) private static intTagCommand.listTags(CommandSourceStack pSource, Collection<? extends Entity> pEntities) private static intItemCommands.modifyEntityItem(CommandSourceStack pSource, Collection<? extends Entity> pTargets, int pSourceSlot, Holder<LootItemFunction> pModifier) private static intTagCommand.removeTag(CommandSourceStack pSource, Collection<? extends Entity> pEntities, String pTagName) private static intItemCommands.setEntityItem(CommandSourceStack pSource, Collection<? extends Entity> pTargets, int pSlot, ItemStack pItem) private static doubleSpreadPlayersCommand.setPlayerPositions(Collection<? extends Entity> pTargets, ServerLevel pLevel, SpreadPlayersCommand.Position[] pPositions, int pMaxHeight, boolean pRespectTeams) private static intSpreadPlayersCommand.spreadPlayers(CommandSourceStack pSource, Vec2 pCenter, float pSpreadDistance, float pMaxRange, int pMaxHeight, boolean pRespectTeams, Collection<? extends Entity> pTargets) private static intTeleportCommand.teleportToEntity(CommandSourceStack pSource, Collection<? extends Entity> pTargets, Entity pDestination) private static intTeleportCommand.teleportToPos(CommandSourceStack pSource, Collection<? extends Entity> pTargets, ServerLevel pLevel, Coordinates pPosition, @Nullable Coordinates pRotation, @Nullable LookAt pLookAt) 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 @Nullable 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> pTypeTest, Predicate<? super T> pPredicate) <T extends Entity>
voidServerLevel.getEntities(EntityTypeTest<Entity, T> pTypeTest, Predicate<? super T> pPredicate, List<? super T> pOutput) <T extends Entity>
voidServerLevel.getEntities(EntityTypeTest<Entity, T> pTypeTest, Predicate<? super T> pPredicate, List<? super T> pOutput, int pMaxResults) 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()@Nullable EntityServerLevel.getEntity(int pId) Returns the Entity with the given ID, or null if it doesn't exist in this World.@Nullable EntityServerLevel.getEntityInAnyDimension(UUID p_439064_) @Nullable EntityServerLevel.getEntityOrPart(int pId) Deprecated.Methods in net.minecraft.server.level that return types with arguments of type EntityModifier and TypeMethodDescriptionServerLevel.getAllEntities()ServerLevel.getEntities()WorldGenRegion.getEntities(@Nullable Entity pEntity, AABB pBoundingBox, @Nullable Predicate<? super Entity> pPredicate) Gets all entities within the specified AABB excluding the one passed into it.Methods in net.minecraft.server.level with parameters of type EntityModifier and TypeMethodDescriptionvoidServerLevel.addDuringTeleport(Entity pEntity) protected voidvoidprivate booleanCalled when an entity is spawned in the world.booleanServerLevel.addFreshEntity(Entity pEntity) booleanWorldGenRegion.addFreshEntity(Entity pEntity) booleanServerLevel.addWithUUID(Entity pEntity) 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_) voidServerLevel.broadcastDamageEvent(Entity p_270420_, DamageSource p_270311_) voidServerLevel.broadcastEntityEvent(Entity pEntity, byte pState) Sends aClientboundEntityEventPacketto all tracked players of that entity.voidCalled when the entity is dealt a critical hit.booleanWorldGenRegion.destroyBlock(BlockPos pPos, boolean pDropBlock, @Nullable Entity pEntity, int pRecursionLeft) voidServerLevel.explode(@Nullable Entity p_256039_, @Nullable DamageSource p_255778_, @Nullable 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_, WeightedList<ExplosionParticleInfo> p_437303_, Holder<SoundEvent> p_320497_) protected floatServerPlayer.getEnchantedDamage(Entity p_346252_, float p_346142_, DamageSource p_345841_) WorldGenRegion.getEntities(@Nullable Entity pEntity, AABB pBoundingBox, @Nullable Predicate<? super Entity> pPredicate) Gets all entities within the specified AABB excluding the one passed into it.ChunkMap.getPlayersWatching(Entity entity) booleanChunkMap.isTrackedByAnyPlayer(Entity pEntity) voidServerLevel.levelEvent(@Nullable Entity p_393790_, int p_8685_, BlockPos p_8686_, int p_8687_) voidWorldGenRegion.levelEvent(@Nullable Entity p_394406_, int p_9524_, BlockPos p_9525_, int p_9526_) voidServerPlayer.lookAt(EntityAnchorArgument.Anchor pFromAnchor, Entity pEntity, EntityAnchorArgument.Anchor pToAnchor) voidbooleanServerLevel.mayInteract(Entity p_393624_, BlockPos p_8697_) voidvoidServerLevel.EntityCallbacks.onDestroyed(Entity p_143359_) protected voidServerPlayer.onEffectAdded(MobEffectInstance p_143393_, @Nullable Entity p_143394_) protected voidServerPlayer.onEffectUpdated(MobEffectInstance p_143396_, boolean p_143397_, @Nullable Entity p_143398_) voidServerPlayer.onExplosionHit(@Nullable Entity p_326351_) voidServerLevel.onReputationEvent(ReputationEventType pType, Entity pTarget, ReputationEventHandler pHost) 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(@Nullable 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(@Nullable Entity p_263544_, Entity p_394316_, Holder<SoundEvent> p_263491_, SoundSource p_263542_, float p_263530_, float p_263520_, long p_263490_) voidWorldGenRegion.playSound(@Nullable Entity p_394194_, BlockPos p_9529_, SoundEvent p_9530_, SoundSource p_9531_, float p_9532_, float p_9533_) protected voidChunkMap.removeEntity(Entity pEntity) voidServerChunkCache.removeEntity(Entity pEntity) voidChunkMap.sendToTrackingPlayers(Entity pEntity, Packet<? super ClientGamePacketListener> pPacket) voidServerChunkCache.sendToTrackingPlayers(Entity pEntity, Packet<? super ClientGamePacketListener> pPacket) protected voidChunkMap.sendToTrackingPlayersAndSelf(Entity pEntity, Packet<? super ClientGamePacketListener> pPacket) voidServerChunkCache.sendToTrackingPlayersAndSelf(Entity pEntity, Packet<? super ClientGamePacketListener> pPacket) voidChunkMap.sendToTrackingPlayersFiltered(Entity pEntity, Packet<? super ClientGamePacketListener> pPacket, Predicate<ServerPlayer> pFilter) voidbooleanServerPlayer.startRiding(Entity p_277395_, boolean p_278062_, boolean p_434333_) voidCalled when the entity picks up an item.voidServerLevel.tickNonPassenger(Entity pEntity) private voidServerLevel.tickPassenger(Entity pRidingEntity, Entity pPassengerEntity) booleanServerLevel.tryAddFreshEntityWithPassengers(Entity pEntity) Attempts to summon an entity and it's passengers.Method parameters in net.minecraft.server.level with type arguments of type EntityModifier and TypeMethodDescriptionvoidServerLevel.addLegacyChunkEntities(Stream<Entity> pEntities) voidServerLevel.addWorldGenChunkEntities(Stream<Entity> pEntities) private static voidServerLevel.dumpEntities(Writer pWriter, Iterable<Entity> pEntities) voidChunkMap.forEachEntityTrackedBy(ServerPlayer pPlayer, Consumer<Entity> pAction) ServerLevel.getEntities(EntityTypeTest<Entity, T> pTypeTest, Predicate<? super T> pPredicate) <T extends Entity>
voidServerLevel.getEntities(EntityTypeTest<Entity, T> pTypeTest, Predicate<? super T> pPredicate, List<? super T> pOutput) <T extends Entity>
voidServerLevel.getEntities(EntityTypeTest<Entity, T> pTypeTest, Predicate<? super T> pPredicate, List<? super T> pOutput, int pMaxResults) WorldGenRegion.getEntities(@Nullable Entity pEntity, AABB pBoundingBox, @Nullable Predicate<? super Entity> pPredicate) 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_) @Nullable PlayerWorldGenRegion.getNearestPlayer(double pX, double pY, double pZ, double pDistance, @Nullable Predicate<Entity> pPredicate) Constructors in net.minecraft.server.level with parameters of type EntityModifierConstructorDescriptionServerEntity(ServerLevel pLevel, Entity pEntity, int pUpdateInterval, boolean pTrackDelta, ServerEntity.Synchronizer pSynchronizer) TrackedEntity(Entity pEntity, int pRange, int pUpdateInterval, boolean pTrackDelta) -
Uses of Entity in net.minecraft.server.network
Fields in net.minecraft.server.network declared as EntityModifier and TypeFieldDescriptionprivate @Nullable EntityServerGamePacketListenerImpl.lastVehicleMethods in net.minecraft.server.network with parameters of type EntityModifier and TypeMethodDescriptionprivate intServerGamePacketListenerImpl.getMaximumFlyingTicks(Entity pEntity) private booleanServerGamePacketListenerImpl.isEntityCollidingWithAnythingNew(LevelReader pLevel, Entity pEntity, AABB pBox, double pX, double pY, double pZ) private booleanServerGamePacketListenerImpl.noBlocksAround(Entity pEntity) private voidServerGamePacketListenerImpl.resyncPlayerWithVehicle(Entity vehicle) ServerGamePacketListenerImpl.EntityInteraction.run(ServerPlayer pPlayer, Entity pEntity, InteractionHand pHand) -
Uses of Entity in net.minecraft.util.debug
Methods in net.minecraft.util.debug with parameters of type EntityModifier and TypeMethodDescriptionprivate voidLevelDebugSynchronizers.broadcastToTracking(Entity pEntity, DebugSubscription<?> pSubscription, Packet<? super ClientGamePacketListener> pPacket) <T> voidLevelDebugSynchronizers.clearEntityValue(Entity pEntity, DebugSubscription<T> pSubscription) voidLevelDebugSynchronizers.dropEntity(Entity pEntity) voidTrackingDebugSynchronizer.SourceSynchronizer.dropEntity(Entity pEntity) <T> @Nullable TDebugValueAccess.getEntityValue(DebugSubscription<T> pSubscription, Entity pEntity) voidLevelDebugSynchronizers.registerEntity(Entity pEntity) <T> voidLevelDebugSynchronizers.sendEntityValue(Entity pEntity, DebugSubscription<T> pSubscription, T pValue) protected voidTrackingDebugSynchronizer.sendInitialEntity(ServerPlayer pPlayer, Entity pEntity) protected voidTrackingDebugSynchronizer.SourceSynchronizer.sendInitialEntity(ServerPlayer p_449080_, Entity p_449559_) protected final voidTrackingDebugSynchronizer.sendToPlayersTrackingEntity(ServerLevel pLevel, Entity pEntity, Packet<? super ClientGamePacketListener> pPacket) voidLevelDebugSynchronizers.startTrackingEntity(ServerPlayer pPlayer, Entity pEntity) final voidTrackingDebugSynchronizer.startTrackingEntity(ServerPlayer pPlayer, Entity pEntity) Method parameters in net.minecraft.util.debug with type arguments of type EntityModifier and TypeMethodDescription<T> voidDebugValueAccess.forEachEntity(DebugSubscription<T> pSubscription, BiConsumer<Entity, T> pAction) -
Uses of Entity in net.minecraft.world
Methods in net.minecraft.world with parameters of type EntityModifier and TypeMethodDescriptionstatic voidContainers.dropContents(Level pLevel, Entity pEntityAt, Container pInventory) booleanTickRateManager.isEntityFrozen(Entity pEntity) -
Uses of Entity in net.minecraft.world.damagesource
Fields in net.minecraft.world.damagesource declared as EntityModifier and TypeFieldDescriptionprivate final @Nullable EntityDamageSource.causingEntityprivate final @Nullable EntityDamageSource.directEntityMethods in net.minecraft.world.damagesource that return EntityModifier and TypeMethodDescription@Nullable EntityDamageSource.getDirectEntity()@Nullable EntityDamageSource.getEntity()Methods in net.minecraft.world.damagesource with parameters of type EntityModifier and TypeMethodDescriptionDamageSources.arrow(AbstractArrow pArrow, @Nullable Entity pShooter) DamageSources.fallingBlock(Entity pEntity) DamageSources.fallingStalactite(Entity pEntity) DamageSources.fireworks(FireworkRocketEntity pFirework, @Nullable Entity pShooter) private static @Nullable ComponentCombatTracker.getDisplayName(@Nullable Entity pEntity) CombatTracker.getFallMessage(CombatEntry pCombatEntry, @Nullable Entity pEntity) private ComponentCombatTracker.getMessageForAssistedFall(Entity pEntity, Component pEntityDisplayName, String pHasWeaponTranslationKey, String pNoWeaponTranslationKey) DamageSources.indirectMagic(Entity pCausingEntity, @Nullable Entity pDirectEntity) DamageSources.mobProjectile(Entity pProjectile, @Nullable LivingEntity pThrower) DamageSources.source(ResourceKey<DamageType> pDamageTypeKey, @Nullable Entity pEntity) DamageSources.source(ResourceKey<DamageType> pDamageTypeKey, @Nullable Entity pCausingEntity, @Nullable Entity pDirectEntity) DamageSources.spit(Entity pSpit, @Nullable LivingEntity pThrower) DamageSources.windCharge(Entity pWindCharge, @Nullable LivingEntity pThrower) DamageSources.witherSkull(WitherSkull pWitherSkull, Entity pShooter) Constructors in net.minecraft.world.damagesource with parameters of type EntityModifierConstructorDescriptionDamageSource(Holder<DamageType> pType, @Nullable Entity pEntity) DamageSource(Holder<DamageType> pType, @Nullable Entity pDirectEntity, @Nullable Entity pCausingEntity) DamageSource(Holder<DamageType> pType, @Nullable Entity pDirectEntity, @Nullable Entity pCausingEntity, @Nullable Vec3 pDamageSourcePosition) -
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 pLevel, @Nullable Entity pSource, Vec3 pPos, double pRadius, MobEffectInstance pEffect, int pDuration) voidHealOrHarmMobEffect.applyInstantenousEffect(ServerLevel p_376760_, @Nullable Entity p_294574_, @Nullable Entity p_295692_, LivingEntity p_296483_, int p_296095_, double p_295178_) voidMobEffect.applyInstantenousEffect(ServerLevel pLevel, @Nullable Entity pSource, @Nullable Entity pIndirectSource, LivingEntity pEntity, int pAmplifier, double pHealth) -
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 TypeClassDescriptionclassclassclassclassstatic classstatic classstatic classclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity declared as EntityModifier and TypeFieldDescriptionprivate final EntityEntity.EntityPathElement.entityThe field for theentityrecord component.private final EntityInterpolationHandler.entity@Nullable EntityLeashable.LeashData.leashHolderprivate @Nullable 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.passengersprotected @Nullable it.unimi.dsi.fastutil.objects.Object2LongMap<Entity> LivingEntity.recentKineticEnemiesAreaEffectCloud.victimsMethods in net.minecraft.world.entity with type parameters of type EntityModifier and TypeMethodDescriptionLeashable.angularFriction(E pEntity) EntityType.appendComponentsConfig(Consumer<T> pConsumer, ItemStack pStack) EntityType.appendCustomEntityStackConfig(Consumer<T> pConsumer, Level pLevel, ItemStack pStack, @Nullable LivingEntity pOwner) EntityType.appendDefaultStackConfig(Consumer<T> pConsumer, Level pLevel, ItemStack pStack, @Nullable LivingEntity pOwner) static <T extends Entity>
booleanSpawnPlacements.checkSpawnRules(EntityType<T> pEntityType, ServerLevelAccessor pLevel, EntitySpawnReason pSpawnReason, BlockPos pPos, RandomSource pRandom) private static <E extends Entity & Leashable>
List<Leashable.Wrench> Leashable.computeElasticInteraction(E pEntity, Entity pLeashHolder, List<Vec3> pEntityAttachmentPoint, List<Vec3> pLeasherAttachmentPoint) EntityType.createDefaultStackConfig(Level pLevel, ItemStack pStack, @Nullable LivingEntity pOwner) static <T extends Entity>
EntityType.Builder<T> EntityType.Builder.createNothing(MobCategory pCategory) Leashable.dropLeash(E pEntity, boolean pBroadcastPacket, boolean pDropItem) Leashable.getLeashHolder(E pEntity) static <T extends Entity>
EntityType.Builder<T> EntityType.Builder.of(EntityType.EntityFactory<T> pFactory, MobCategory pCategory) private static <T extends Entity>
EntityType<T> EntityType.register(String pKey, EntityType.Builder<T> pBuilder) private static <T extends Entity>
EntityType<T> EntityType.register(ResourceKey<EntityType<?>> pKey, EntityType.Builder<T> pBuilder) Leashable.restoreLeashFromSave(E pEntity, Leashable.LeashData pLeashData) Leashable.setLeashedTo(E pEntity, Entity pLeashHolder, boolean pBroadcastPacket) Leashable.tickLeash(ServerLevel pLevel, E pEntity) Methods in net.minecraft.world.entity that return EntityModifier and TypeMethodDescriptionEntity.EntityPathElement.entity()Returns the value of theentityrecord component.@Nullable EntityEntity.getControlledVehicle()static @Nullable EntityEntityReference.getEntity(@Nullable EntityReference<Entity> pReference, Level pLevel) @Nullable EntityEntity.getFirstPassenger()default @Nullable EntityLeashable.getLeashHolder()Leashable.getLeashHolder(E pEntity) @Nullable EntityTraceableEntity.getOwner()Entity.getRootVehicle()@Nullable EntityEntity.getVehicle()static @Nullable EntityEntityType.loadEntityRecursive(CompoundTag pTag, Level pLevel, EntitySpawnReason pSpawnReason, EntityProcessor pProcessor) static @Nullable EntityEntityType.loadEntityRecursive(EntityType<?> pEntityType, CompoundTag pTag, Level pLevel, EntitySpawnReason pSpawnReason, EntityProcessor pProcessor) static @Nullable EntityEntityType.loadEntityRecursive(EntityType<?> pEntityType, ValueInput pValueInput, Level pLevel, EntitySpawnReason pSpawnReason, EntityProcessor pProcessor) static @Nullable EntityEntityType.loadEntityRecursive(ValueInput pValueInput, Level pLevel, EntitySpawnReason pSpawnReason, EntityProcessor pProcessor) private static EntityEntityType.loadPassengersRecursive(Entity pEntity, ValueInput pValueInput, Level pLevel, EntitySpawnReason pSpawnReason, EntityProcessor pProcessor) @Nullable Entityprivate EntityOminousItemSpawner.spawnProjectile(ServerLevel pLevel, ProjectileItem pProjectileItem, ItemStack pStack) @Nullable EntityEntity.teleport(TeleportTransition pTeleportTransition) private @Nullable EntityEntity.teleportCrossDimension(ServerLevel pOldLevel, ServerLevel pNewLevel, TeleportTransition pTeleportTransition) private EntityEntity.teleportSameDimension(ServerLevel pLevel, TeleportTransition pTeleportTransition) Methods in net.minecraft.world.entity that return types with arguments of type EntityModifier and TypeMethodDescriptionEntityType.create(EntityType<?> pEntityType, ValueInput pInput, Level pLevel, EntitySpawnReason pSpawnReason) EntityType.create(ValueInput pInput, Level pLevel, EntitySpawnReason pSpawnReason) InsideBlockEffectType.effect()EntityType.getBaseClass()LightningBolt.getHitEntities()Entity.getIndirectPassengers()Entity.getIndirectPassengersStream()Entity.getPassengers()Entity.getPassengersAndSelf()Entity.getSelfAndPassengers()EntityType.loadEntitiesRecursive(ValueInput.ValueInputList pInput, Level pLevel, EntitySpawnReason pSpawnReason) EntityType.loadStaticEntity(EntityType<?> pEntityType, ValueInput pValueInput, Level pLevel, EntitySpawnReason pSpawnReason) EntityType.loadStaticEntity(ValueInput pInput, Level pLevel, EntitySpawnReason pSpawnReason) EntitySelector.pushableBy(Entity pEntity) EntitySelector.withinDistance(double pX, double pY, double pZ, double pRange) Methods in net.minecraft.world.entity with parameters of type EntityModifier and TypeMethodDescriptionvoidbooleanLivingEntity.addEffect(MobEffectInstance pEffectInstance, @Nullable Entity pEntity) protected voidEntity.addPassenger(Entity pPassenger) protected voidMarker.addPassenger(Entity p_270306_) protected voidOminousItemSpawner.addPassenger(Entity p_338681_) voidInsideBlockEffectApplier.StepBasedCollector.applyAndClear(Entity pEntity) voidEntity.awardKillScore(Entity pEntity, DamageSource pDamageSource) private TeleportTransitionEntity.calculatePassengerTransition(TeleportTransition pTeleportTransition, Entity pEntity) protected booleanEntity.canAddPassenger(Entity pPassenger) protected booleanMarker.canAddPassenger(Entity p_265289_) protected booleanOminousItemSpawner.canAddPassenger(Entity p_338282_) booleanEntity.canBeCollidedWith(@Nullable Entity pEntity) booleanEntity.canCollideWith(Entity pEntity) default booleanLeashable.canHaveALeashAttachedTo(Entity pEntity) protected booleanvoidLivingEntity.causeExtraKnockback(Entity pEntity, float pKnockback, Vec3 pDeltaMovement) default booleanLeashable.checkElasticInteractions(Entity pEntity, Leashable.LeashData pLeashData) default voidLeashable.closeRangeLeashBehaviour(Entity pEntity) voidPathfinderMob.closeRangeLeashBehaviour(Entity p_352153_) booleanEntity.closerThan(Entity pEntity, double pDistance) booleanEntity.closerThan(Entity pEntity, double pHorizontalDistance, double pVerticalDistance) static List<VoxelShape> Entity.collectAllColliders(@Nullable Entity pEntity, Level pLevel, AABB pBoundingBox) private static List<VoxelShape> Entity.collectColliders(@Nullable Entity pEntity, Level pLevel, List<VoxelShape> pCollisions, AABB pBoundingBox) static Vec3Entity.collideBoundingBox(@Nullable Entity pEntity, Vec3 pVec, AABB pCollisionBox, Level pLevel, List<VoxelShape> pPotentialHits) private static <E extends Entity & Leashable>
List<Leashable.Wrench> Leashable.computeElasticInteraction(E pEntity, Entity pLeashHolder, List<Vec3> pEntityAttachmentPoint, List<Vec3> pLeasherAttachmentPoint) protected booleanEntity.considersEntityAsAlly(Entity pEntity) protected booleanTamableAnimal.considersEntityAsAlly(Entity p_362625_) voidEntity.copyPosition(Entity pEntity) Sets this entity's location and angles to the location and angles of the passed in entity.static Vec3[]Leashable.createQuadLeashOffsets(Entity pEntity, double pZOffset, double pZ, double pX, double pY) private voidLivingEntity.dismountVehicle(Entity pVehicle) floatEntity.distanceTo(Entity pEntity) Returns the distance to the entity.doubleEntity.distanceToSqr(Entity pEntity) Returns the squared distance to the entity.booleanLivingEntity.doHurtTarget(ServerLevel pLevel, Entity pSource) booleanMob.doHurtTarget(ServerLevel p_376642_, Entity p_21372_) protected voidprotected voidLivingEntity.dropExperience(ServerLevel pLevel, @Nullable Entity pEntity) booleanLivingEntity.dropFromEntityInteractLootTable(ServerLevel pLevel, ResourceKey<LootTable> pLootTable, @Nullable Entity pEntity, ItemStack pTool, BiConsumer<ServerLevel, ItemStack> pDropConsumer) voidLivingEntity.forceAddEffect(MobEffectInstance pInstance, @Nullable Entity pEntity) voidprotected static Vec3Entity.getDefaultPassengerAttachmentPoint(Entity pVehicle, Entity pPassenger, EntityAttachments pAttachments) final intLivingEntity.getExperienceReward(ServerLevel pLevel, @Nullable Entity pKiller) private static Vec3Leashable.getHolderMovement(Entity pHolder) protected floatLivingEntity.getKnockback(Entity pAttacker, DamageSource pDamageSource) protected Vec3Entity.getPassengerAttachmentPoint(Entity pEntity, EntityDimensions pDimensions, float pPartialTick) Entity.getPassengerRidingPosition(Entity pEntity) LivingEntity.getPassengerRidingPosition(Entity p_295664_) @Nullable TeleportTransitionPortalProcessor.getPortalDestination(ServerLevel pLevel, Entity pEntity) Entity.getVehicleAttachmentPoint(Entity pEntity) doubleLivingEntity.getVisibilityPercent(@Nullable Entity pLookingEntity) protected static voidEntity.handleOnAboveBubbleColumn(Entity pEntity, boolean pDownwards, BlockPos pPos) protected static voidEntity.handleOnInsideBubbleColumn(Entity pEntity, boolean pDownwards) booleanEntity.hasIndirectPassenger(Entity pEntity) booleanLivingEntity.hasLineOfSight(Entity pEntity) booleanLivingEntity.hasLineOfSight(Entity pEntity, ClipContext.Block pBlock, ClipContext.Fluid pFluid, double pY) booleanEntity.hasPassenger(Entity pEntity) booleanReturnstrueif Entity argument is equal to this Entityfinal booleanEntity.isAlliedTo(@Nullable Entity pEntity) Returns whether this Entity is on the same team as the given Entity.booleanEntity.isPassengerOfSameVehicle(Entity pEntity) Leashable.leashableInArea(Entity pEntity, Predicate<Leashable> pPredicate) Leashable.leashableLeashedTo(Entity pEntity) default doubleLeashable.leashDistanceTo(Entity pEntity) private static EntityEntityType.loadPassengersRecursive(Entity pEntity, ValueInput pValueInput, Level pLevel, EntitySpawnReason pSpawnReason, EntityProcessor pProcessor) voidChanges the X and Y rotation so that this entity is facing the given entity.static PositionMoveRotationprotected voidLivingEntity.onEffectAdded(MobEffectInstance pEffectInstance, @Nullable Entity pEntity) protected voidLivingEntity.onEffectUpdated(MobEffectInstance pEffectInstance, boolean pForced, @Nullable Entity pEntity) voidEntity.onExplosionHit(@Nullable Entity pEntity) voidEntity.onPassengerTurned(Entity pEntityToUpdate) Applies this entity's orientation to another entity.voidReputationEventHandler.onReputationEventFrom(ReputationEventType pType, Entity pTarget) final voidEntity.positionRider(Entity pPassenger) protected voidEntity.positionRider(Entity pPassenger, Entity.MoveFunction pCallback) @Nullable EntitybooleanPortalProcessor.processPortalTeleportation(ServerLevel pLevel, Entity pEntity, boolean pCanChangeDimensions) 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 pEntity) voidLivingEntity.rememberStabbedEntity(Entity pEntity) protected voidEntity.removePassenger(Entity pPassenger) voidEntity.restoreFrom(Entity pEntity) Prepares this entity in new dimension by copying NBT data from entity in old dimensionvoidLivingEntity.setLastHurtMob(Entity pEntity) Leashable.setLeashedTo(E pEntity, Entity pLeashHolder, boolean pBroadcastPacket) default voidLeashable.setLeashedTo(Entity pLeashHolder, boolean pBroadcastPacket) voidLeashable.LeashData.setLeashHolder(Entity pLeashHolder) booleanEntity.skipAttackInteraction(Entity pEntity) Called when a player attacks an entity.booleanInteraction.skipAttackInteraction(Entity p_273553_) booleanLivingEntity.stabAttack(EquipmentSlot pSlot, Entity pEntity, float pDamageAmount, boolean pDamage, boolean pKnockback, boolean pDismount) final booleanEntity.startRiding(Entity pVehicle) booleanEntity.startRiding(Entity pVehicle, boolean pForce, boolean pSendGameEvent) booleanMob.startRiding(Entity p_21396_, boolean p_21397_, boolean p_433558_) voidCalled when the entity picks up an item.void@Nullable Tstatic voidEntityType.updateCustomEntityTag(Level pLevel, @Nullable LivingEntity pOwner, @Nullable Entity pEntity, TypedEntityData<EntityType<?>> pData) booleanLivingEntity.wasRecentlyStabbed(Entity pEntity, int pContactCooldownTicks) default voidLeashable.whenLeashedTo(Entity pEntity) voidPathfinderMob.whenLeashedTo(Entity p_418459_) Method parameters in net.minecraft.world.entity with type arguments of type EntityModifier and TypeMethodDescriptionstatic @Nullable EntityEntityReference.getEntity(@Nullable EntityReference<Entity> pReference, Level pLevel) booleanEntity.hasPassenger(Predicate<Entity> pPredicate) voidInsideBlockEffectApplier.runAfter(InsideBlockEffectType pType, Consumer<Entity> pEffect) voidInsideBlockEffectApplier.StepBasedCollector.runAfter(InsideBlockEffectType p_405004_, Consumer<Entity> p_404845_) voidInsideBlockEffectApplier.runBefore(InsideBlockEffectType pType, Consumer<Entity> pEffect) voidInsideBlockEffectApplier.StepBasedCollector.runBefore(InsideBlockEffectType p_404988_, Consumer<Entity> p_405666_) intLivingEntity.stabbedEntities(Predicate<Entity> pPredicate) Constructors in net.minecraft.world.entity with parameters of type EntityModifierConstructorDescription(package private)EntityPathElement(Entity entity) Creates an instance of aEntityPathElementrecord class.InterpolationHandler(Entity pEntity) InterpolationHandler(Entity pEntity, int pInterpolationSteps) InterpolationHandler(Entity pEntity, int pInterpolationSteps, @Nullable Consumer<InterpolationHandler> pOnInterpolationStart) InterpolationHandler(Entity pEntity, @Nullable Consumer<InterpolationHandler> pOnInterpolationStart) (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 pEntity, Entity pVehicle, int pDistance) AnimalPanic.lookForWater(BlockGetter pLevel, Entity pEntity) static voidBehaviorUtils.setWalkAndLookTargetMemories(LivingEntity pLivingEntity, Entity pTarget, float pSpeed, int pDistance) 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 pMaxDistanceFromVehicle, BiPredicate<E, Entity> pShouldStopRiding) static OneShot<PathfinderMob> SetWalkTargetAwayFrom.entity(MemoryModuleType<? extends Entity> pWalkTargetAwayFromMemory, float pSpeedModifier, int pDesiredDistance, boolean pHasTarget) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type EntityModifierConstructorDescriptionEntityTracker(Entity pEntity, boolean pTrackEyeHeight) EntityTracker(Entity pEntity, boolean pTrackEyeHeight, boolean pTargetEyeHeight) -
Uses of Entity in net.minecraft.world.entity.ai.control
Methods in net.minecraft.world.entity.ai.control with parameters of type Entity -
Uses of Entity in net.minecraft.world.entity.ai.goal
Fields in net.minecraft.world.entity.ai.goal declared as EntityMethods in net.minecraft.world.entity.ai.goal with parameters of type EntityModifier and TypeMethodDescriptionprotected static ServerLevelGoal.getServerLevel(Entity pEntity) protected @Nullable BlockPosPanicGoal.lookForWater(BlockGetter pLevel, Entity pEntity, int pRange) -
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 pTargetEntity, float pSpeedModifier, int pCloseEnoughDist) 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 pEntity) 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.animal -
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(@Nullable Entity pEntity) voidAllay.VibrationUser.onReceiveVibration(ServerLevel p_281422_, BlockPos p_281449_, Holder<GameEvent> p_316630_, @Nullable Entity p_281794_, @Nullable 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.armadilloMethods in net.minecraft.world.entity.animal.armadillo with parameters of type EntityModifier and TypeMethodDescriptionbooleanArmadillo.brushOffScute(@Nullable Entity pEntity, ItemStack pStack) -
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.bee
Subclasses of Entity in net.minecraft.world.entity.animal.beeMethods in net.minecraft.world.entity.animal.bee with parameters of type EntityModifier and TypeMethodDescriptionbooleanBee.doHurtTarget(ServerLevel p_479519_, Entity p_480953_) -
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_) -
Uses of Entity in net.minecraft.world.entity.animal.chicken
Subclasses of Entity in net.minecraft.world.entity.animal.chickenMethods in net.minecraft.world.entity.animal.chicken with parameters of type EntityModifier and TypeMethodDescriptionprotected voidChicken.positionRider(Entity p_480146_, Entity.MoveFunction p_480620_) -
Uses of Entity in net.minecraft.world.entity.animal.cow
Subclasses of Entity in net.minecraft.world.entity.animal.cow -
Uses of Entity in net.minecraft.world.entity.animal.dolphin
Subclasses of Entity in net.minecraft.world.entity.animal.dolphinMethods in net.minecraft.world.entity.animal.dolphin with parameters of type Entity -
Uses of Entity in net.minecraft.world.entity.animal.equine
Subclasses of Entity in net.minecraft.world.entity.animal.equineModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassMethods in net.minecraft.world.entity.animal.equine with parameters of type EntityModifier and TypeMethodDescriptionprotected voidAbstractHorse.addPassenger(Entity p_481619_) protected Vec3AbstractHorse.getPassengerAttachmentPoint(Entity p_478678_, EntityDimensions p_480215_, float p_480662_) protected Vec3Llama.getPassengerAttachmentPoint(Entity p_481980_, EntityDimensions p_478389_, float p_478974_) protected voidAbstractHorse.positionRider(Entity p_481987_, Entity.MoveFunction p_481470_) -
Uses of Entity in net.minecraft.world.entity.animal.feline
Subclasses of Entity in net.minecraft.world.entity.animal.feline -
Uses of Entity in net.minecraft.world.entity.animal.fish
Subclasses of Entity in net.minecraft.world.entity.animal.fishModifier and TypeClassDescriptionclassclassclassclassclassclassclass -
Uses of Entity in net.minecraft.world.entity.animal.fox
Subclasses of Entity in net.minecraft.world.entity.animal.foxFields in net.minecraft.world.entity.animal.fox with type parameters of type Entity -
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.golem
Subclasses of Entity in net.minecraft.world.entity.animal.golemModifier and TypeClassDescriptionclassclassclassclassMethods in net.minecraft.world.entity.animal.golem with parameters of type EntityModifier and TypeMethodDescriptionbooleanIronGolem.doHurtTarget(ServerLevel p_480957_, Entity p_479181_) protected void -
Uses of Entity in net.minecraft.world.entity.animal.happyghast
Subclasses of Entity in net.minecraft.world.entity.animal.happyghastMethods in net.minecraft.world.entity.animal.happyghast with parameters of type EntityModifier and TypeMethodDescriptionprotected voidHappyGhast.addPassenger(Entity p_481270_) protected booleanHappyGhast.canAddPassenger(Entity p_479872_) booleanHappyGhast.canBeCollidedWith(@Nullable Entity p_480927_) protected voidHappyGhast.removePassenger(Entity p_478923_) -
Uses of Entity in net.minecraft.world.entity.animal.nautilus
Subclasses of Entity in net.minecraft.world.entity.animal.nautilusMethods in net.minecraft.world.entity.animal.nautilus with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanAbstractNautilus.canAddPassenger(Entity p_456039_) -
Uses of Entity in net.minecraft.world.entity.animal.panda
Subclasses of Entity in net.minecraft.world.entity.animal.pandaMethods in net.minecraft.world.entity.animal.panda with parameters of type EntityModifier and TypeMethodDescriptionbooleanPanda.doHurtTarget(ServerLevel p_479020_, Entity p_478005_) -
Uses of Entity in net.minecraft.world.entity.animal.parrot
Subclasses of Entity in net.minecraft.world.entity.animal.parrotMethods in net.minecraft.world.entity.animal.parrot with parameters of type EntityModifier and TypeMethodDescriptionprotected voidstatic booleanParrot.imitateNearbyMobs(Level pLevel, Entity pParrot) -
Uses of Entity in net.minecraft.world.entity.animal.pig
Subclasses of Entity in net.minecraft.world.entity.animal.pig -
Uses of Entity in net.minecraft.world.entity.animal.polarbear
Subclasses of Entity in net.minecraft.world.entity.animal.polarbear -
Uses of Entity in net.minecraft.world.entity.animal.rabbit
Subclasses of Entity in net.minecraft.world.entity.animal.rabbit -
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.squid
Subclasses of Entity in net.minecraft.world.entity.animal.squid -
Uses of Entity in net.minecraft.world.entity.animal.turtle
Subclasses of Entity in net.minecraft.world.entity.animal.turtle -
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.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_, @Nullable Entity p_182395_) protected booleanbooleanMethod parameters in net.minecraft.world.entity.boss.enderdragon with type arguments of type EntityModifier and TypeMethodDescriptionprivate voidEnderDragon.hurt(ServerLevel pLevel, List<Entity> pEntities) private voidEnderDragon.knockBack(ServerLevel pLevel, List<Entity> pTargets) -
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_, @Nullable 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 pLevel, @Nullable Entity pEntity) voidItemFrame.dropItem(ServerLevel p_376660_, @Nullable Entity p_31803_) private voidItemFrame.dropItem(ServerLevel pLevel, @Nullable Entity pEntity, boolean pDropItem) voidLeashFenceKnotEntity.dropItem(ServerLevel p_376541_, @Nullable Entity p_31837_) booleanArmorStand.skipAttackInteraction(Entity pEntity) Called when a player attacks an entity.booleanBlockAttachedEntity.skipAttackInteraction(Entity p_346423_) -
Uses of Entity in net.minecraft.world.entity.decoration.painting
Subclasses of Entity in net.minecraft.world.entity.decoration.paintingMethods in net.minecraft.world.entity.decoration.painting with parameters of type EntityModifier and TypeMethodDescriptionvoidPainting.dropItem(ServerLevel p_481337_, @Nullable Entity p_480824_) -
Uses of Entity in net.minecraft.world.entity.item
Subclasses of Entity in net.minecraft.world.entity.itemFields in net.minecraft.world.entity.item with type parameters of type EntityMethods in net.minecraft.world.entity.item that return EntityModifier and TypeMethodDescription@Nullable EntityItemEntity.getOwner()@Nullable EntityFallingBlockEntity.teleport(TeleportTransition p_379492_) @Nullable EntityItemEntity.teleport(TeleportTransition p_379799_) @Nullable EntityPrimedTnt.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 pThrower) -
Uses of Entity in net.minecraft.world.entity.monster
Subclasses of Entity in net.minecraft.world.entity.monsterModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields 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 pPassenger) booleanShulker.canBeCollidedWith(@Nullable Entity p_423540_) booleanCreeper.doHurtTarget(ServerLevel p_376663_, Entity p_32281_) booleanRavager.doHurtTarget(ServerLevel p_376340_, Entity p_33328_) booleanZoglin.doHurtTarget(ServerLevel p_376335_, Entity p_34207_) protected Vec3Slime.getPassengerAttachmentPoint(Entity p_296103_, EntityDimensions p_295741_, float p_295572_) protected Vec3Strider.getPassengerAttachmentPoint(Entity p_294748_, EntityDimensions p_295089_, float p_295230_) 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_, boolean p_435917_) private voidRavager.strongKnockback(Entity pEntity) (package private) booleanEnderMan.teleportTowards(Entity pTarget) 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 TypeMethodDescriptionbooleanCreaking.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.illager
Subclasses of Entity in net.minecraft.world.entity.monster.illagerModifier and TypeClassDescriptionclassclassclassclassclassclassMethods in net.minecraft.world.entity.monster.illager with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanAbstractIllager.considersEntityAsAlly(Entity p_481667_) protected booleanEvoker.considersEntityAsAlly(Entity p_481079_) -
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 pVehicle, int pMaxPosition) Methods in net.minecraft.world.entity.monster.piglin with parameters of type EntityModifier and TypeMethodDescriptionprivate EntityPiglin.getTopPassenger(Entity pVehicle, int pMaxPosition) booleanPiglin.startRiding(Entity p_34701_, boolean p_34702_, boolean p_435216_) private static booleanPiglinAi.wantsToStopRiding(Piglin pPiglin, Entity pVehicle) -
Uses of Entity in net.minecraft.world.entity.monster.skeleton
Subclasses of Entity in net.minecraft.world.entity.monster.skeletonModifier and TypeClassDescriptionclassclassclassclassclassclassMethods in net.minecraft.world.entity.monster.skeleton with parameters of type EntityModifier and TypeMethodDescriptionbooleanWitherSkeleton.doHurtTarget(ServerLevel p_480447_, Entity p_482120_) -
Uses of Entity in net.minecraft.world.entity.monster.spider
Subclasses of Entity in net.minecraft.world.entity.monster.spiderMethods in net.minecraft.world.entity.monster.spider with parameters of type EntityModifier and TypeMethodDescriptionbooleanCaveSpider.doHurtTarget(ServerLevel p_481729_, Entity p_477946_) CaveSpider.getVehicleAttachmentPoint(Entity p_480730_) Spider.getVehicleAttachmentPoint(Entity p_479261_) -
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 pLevel, Vec3 pPos, @Nullable Entity pSource, int pRadius) protected booleanbooleanWarden.canTargetEntity(@Nullable Entity pEntity) voidAngerManagement.clearAnger(Entity pEntity) voidWarden.clearAnger(Entity pEntity) intbooleanWarden.doHurtTarget(ServerLevel p_376574_, Entity p_219472_) protected voidintAngerManagement.getActiveAnger(@Nullable Entity pEntity) intAngerManagement.increaseAnger(Entity pEntity, int pOffset) voidWarden.increaseAngerAt(@Nullable Entity pEntity) voidWarden.increaseAngerAt(@Nullable Entity pEntity, int pOffset, boolean pPlayListeningSound) voidWarden.VibrationUser.onReceiveVibration(ServerLevel p_281325_, BlockPos p_282386_, Holder<GameEvent> p_316139_, @Nullable Entity p_281438_, @Nullable 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 pLevel, Predicate<Entity> pPredicate) Constructor parameters in net.minecraft.world.entity.monster.warden with type arguments of type Entity -
Uses of Entity in net.minecraft.world.entity.monster.zombie
Subclasses of Entity in net.minecraft.world.entity.monster.zombieModifier and TypeClassDescriptionclassclassclassclassclassMethods in net.minecraft.world.entity.monster.zombie with parameters of type EntityModifier and TypeMethodDescriptionbooleanHusk.doHurtTarget(ServerLevel p_478036_, Entity p_480930_) booleanZombie.doHurtTarget(ServerLevel p_481633_, Entity p_479879_) -
Uses of Entity in net.minecraft.world.entity.npc.villager
Subclasses of Entity in net.minecraft.world.entity.npc.villagerMethods in net.minecraft.world.entity.npc.villager that return EntityModifier and TypeMethodDescription@Nullable EntityAbstractVillager.teleport(TeleportTransition p_480216_) Methods in net.minecraft.world.entity.npc.villager with parameters of type EntityModifier and TypeMethodDescriptionVillagerTrades.DyedArmorForEmeralds.getOffer(ServerLevel p_481973_, Entity p_478085_, RandomSource p_481160_) VillagerTrades.EmeraldForItems.getOffer(ServerLevel p_478324_, Entity p_480825_, RandomSource p_479642_) @Nullable MerchantOfferVillagerTrades.EmeraldsForVillagerTypeItem.getOffer(ServerLevel p_480868_, Entity p_481641_, RandomSource p_479547_) VillagerTrades.EnchantBookForEmeralds.getOffer(ServerLevel p_478876_, Entity p_480584_, RandomSource p_482067_) VillagerTrades.EnchantedItemForEmeralds.getOffer(ServerLevel p_478730_, Entity p_479916_, RandomSource p_481070_) VillagerTrades.FailureItemListing.getOffer(ServerLevel p_478830_, Entity p_479289_, RandomSource p_481610_) @Nullable MerchantOfferVillagerTrades.ItemListing.getOffer(ServerLevel pLevel, Entity pEntity, RandomSource pRandom) @Nullable MerchantOfferVillagerTrades.ItemsAndEmeraldsToItems.getOffer(ServerLevel p_478330_, Entity p_479101_, RandomSource p_480985_) VillagerTrades.ItemsForEmeralds.getOffer(ServerLevel p_477929_, Entity p_480407_, RandomSource p_481153_) @Nullable MerchantOfferVillagerTrades.SuspiciousStewForEmerald.getOffer(ServerLevel p_479386_, Entity p_481734_, RandomSource p_479752_) VillagerTrades.TippedArrowForItemsAndEmeralds.getOffer(ServerLevel p_479268_, Entity p_481458_, RandomSource p_481298_) @Nullable MerchantOfferVillagerTrades.TreasureMapForEmeralds.getOffer(ServerLevel p_480271_, Entity p_479393_, RandomSource p_480345_) @Nullable MerchantOfferVillagerTrades.TypeSpecificTrade.getOffer(ServerLevel p_480453_, Entity p_480105_, RandomSource p_479990_) voidVillager.onReputationEventFrom(ReputationEventType pType, Entity pTarget) private voidVillager.tellWitnessesThatIWasMurdered(Entity pMurderer) -
Uses of Entity in net.minecraft.world.entity.npc.wanderingtrader
Subclasses of Entity in net.minecraft.world.entity.npc.wanderingtrader -
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.private voidPlayer.attackVisualEffects(Entity pTarget, boolean pCrit, boolean pSweepAttack, boolean pFullyCharged, boolean pIsStabAttack, float pEnchantedDamage) private booleanPlayer.canCriticalAttack(Entity pEntity) private booleanPlayer.cannotAttack(Entity pEntity) voidPlayer.causeExtraKnockback(Entity p_455908_, float p_454748_, Vec3 p_454874_) voidCalled when the entity is dealt a critical hit.private voidPlayer.damageStatsAndHearts(Entity pEntity, float pHealthBeforeAttack) private booleanPlayer.deflectProjectile(Entity pEntity) private voidPlayer.doSweepAttack(Entity pEntity, float pDamage, DamageSource pDamageSource, float pAttackStrengthScale) Deprecated.private voidPlayer.doSweepAttack(Entity pEntity, float pDamage, DamageSource pDamageSource, float pAttackStrengthScale, AABB sweepHitBox) protected floatPlayer.getEnchantedDamage(Entity pEntity, float pDamage, DamageSource pDamageSource) Player.interactOn(Entity pEntityToInteractOn, InteractionHand pHand) booleanPlayer.isWithinEntityInteractionRange(Entity pEntity, double pRange) private voidPlayer.itemAttackInteraction(Entity pTarget, ItemStack pStack, DamageSource pDamageSource, boolean pDoPostAttack) voidbooleanPlayer.stabAttack(EquipmentSlot p_454961_, Entity p_455450_, float p_454993_, boolean p_455515_, boolean p_455235_, boolean p_454651_) private void -
Uses of Entity in net.minecraft.world.entity.projectile
Subclasses of Entity in net.minecraft.world.entity.projectileModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassFields in net.minecraft.world.entity.projectile declared as EntityModifier and TypeFieldDescriptionprivate @Nullable EntityFishingHook.hookedInprivate @Nullable EntityProjectile.lastDeflectedByFields in net.minecraft.world.entity.projectile with type parameters of type EntityModifier and TypeFieldDescriptionprivate @Nullable EntityReference<Entity> ShulkerBullet.finalTargetprotected @Nullable EntityReference<Entity> Projectile.ownerMethods in net.minecraft.world.entity.projectile that return EntityModifier and TypeMethodDescriptionProjectile.getEffectSource()@Nullable EntityFishingHook.getHookedIn()@Nullable EntityProjectile.getOwner()Methods in net.minecraft.world.entity.projectile with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanFishingHook.canHitEntity(Entity p_37135_) protected booleanProjectile.canHitEntity(Entity pTarget) protected booleanShulkerBullet.canHitEntity(Entity p_37341_) static floatProjectileUtil.computeMargin(Entity pEntity) booleanProjectile.deflect(ProjectileDeflection pDeflection, @Nullable Entity pEntity, @Nullable EntityReference<Entity> pOwner, boolean pDeflectionByPlayer) voidProjectileDeflection.deflect(Projectile pProjectile, @Nullable Entity pEntity, RandomSource pRandom) static @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Entity pShooter, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter, double pDistance) Gets theEntityHitResultrepresenting the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level pLevel, Entity pProjectile, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter, float pInflationAmount) Gets the EntityHitResult representing the entity hitstatic com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity pEntity, AttackRange pAttackRange, Predicate<Entity> pPredicate, ClipContext.Block pClipContext) private static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity pEntity, Vec3 pPos, Vec3 pStart, Predicate<Entity> pPredicate, Vec3 pEnd, float pHitboxMargin, ClipContext.Block pClipContext) private static HitResultProjectileUtil.getHitResult(Vec3 pPos, Entity pProjectile, Predicate<Entity> pFilter, Vec3 pDeltaMovement, Level pLevel, float pMargin, ClipContext.Block pClipContext) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity pProjectile, Predicate<Entity> pFilter) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity pProjectile, Predicate<Entity> pFilter, ClipContext.Block pClipContext) static HitResultProjectileUtil.getHitResultOnViewVector(Entity pProjectile, Predicate<Entity> pFilter, double pScale) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level pLevel, Entity pEntity, Vec3 pStart, Vec3 pEnd, AABB pBox, Predicate<Entity> pPredicate, boolean pHitIfInside) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level pLevel, Entity pEntity, Vec3 pStart, Vec3 pEnd, AABB pBox, Predicate<Entity> pPredicate, float pMargin, ClipContext.Block pClipContext, boolean pHitIfInside) protected booleanprotected voidFishingHook.pullEntity(Entity pEntity) voidProjectile.restoreFrom(Entity p_305838_) static voidProjectileUtil.rotateTowardsMovement(Entity pProjectile, float pRotationSpeed) private voidShulkerBullet.selectNextMoveDirection(@Nullable Direction.Axis pAxis, @Nullable Entity pTarget) private voidFishingHook.setHookedEntity(@Nullable Entity pHookedEntity) voidvoidvoidProjectile.shootFromRotation(Entity pShooter, float pX, float pY, float pZ, float pVelocity, float pInaccuracy) Method parameters in net.minecraft.world.entity.projectile with type arguments of type EntityModifier and TypeMethodDescriptionbooleanProjectile.deflect(ProjectileDeflection pDeflection, @Nullable Entity pEntity, @Nullable EntityReference<Entity> pOwner, boolean pDeflectionByPlayer) static @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Entity pShooter, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter, double pDistance) Gets theEntityHitResultrepresenting the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level pLevel, Entity pProjectile, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter, float pInflationAmount) Gets the EntityHitResult representing the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level pLevel, Projectile pProjectile, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter) static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity pEntity, AttackRange pAttackRange, Predicate<Entity> pPredicate, ClipContext.Block pClipContext) private static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity pEntity, Vec3 pPos, Vec3 pStart, Predicate<Entity> pPredicate, Vec3 pEnd, float pHitboxMargin, ClipContext.Block pClipContext) private static HitResultProjectileUtil.getHitResult(Vec3 pPos, Entity pProjectile, Predicate<Entity> pFilter, Vec3 pDeltaMovement, Level pLevel, float pMargin, ClipContext.Block pClipContext) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity pProjectile, Predicate<Entity> pFilter) static HitResultProjectileUtil.getHitResultOnMoveVector(Entity pProjectile, Predicate<Entity> pFilter, ClipContext.Block pClipContext) static HitResultProjectileUtil.getHitResultOnViewVector(Entity pProjectile, Predicate<Entity> pFilter, double pScale) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level pLevel, Entity pEntity, Vec3 pStart, Vec3 pEnd, AABB pBox, Predicate<Entity> pPredicate, boolean pHitIfInside) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level pLevel, Entity pEntity, Vec3 pStart, Vec3 pEnd, AABB pBox, Predicate<Entity> pPredicate, float pMargin, ClipContext.Block pClipContext, boolean pHitIfInside) protected voidProjectile.setOwner(@Nullable EntityReference<Entity> pOwner) Constructors in net.minecraft.world.entity.projectile with parameters of type EntityModifierConstructorDescriptionFireworkRocketEntity(Level pLevel, @Nullable Entity pShooter, double pX, double pY, double pZ, ItemStack pStack) FireworkRocketEntity(Level pLevel, ItemStack pStack, Entity pShooter, double pX, double pY, double pZ, boolean pShotAtAngle) ShulkerBullet(Level pLevel, LivingEntity pShooter, Entity pFinalTarget, Direction.Axis pAxis) -
Uses of Entity in net.minecraft.world.entity.projectile.arrow
Subclasses of Entity in net.minecraft.world.entity.projectile.arrowModifier and TypeClassDescriptionclassclassclassclassFields in net.minecraft.world.entity.projectile.arrow with type parameters of type EntityMethods in net.minecraft.world.entity.projectile.arrow with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanAbstractArrow.canHitEntity(Entity p_478751_) void -
Uses of Entity in net.minecraft.world.entity.projectile.hurtingprojectile
Subclasses of Entity in net.minecraft.world.entity.projectile.hurtingprojectileModifier and TypeClassDescriptionclassclassclassclassclassclassMethods in net.minecraft.world.entity.projectile.hurtingprojectile with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanAbstractHurtingProjectile.canHitEntity(Entity p_481794_) -
Uses of Entity in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge
Subclasses of Entity in net.minecraft.world.entity.projectile.hurtingprojectile.windchargeModifier and TypeClassDescriptionclassclassclassMethods in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge with parameters of type EntityModifier and TypeMethodDescriptionbooleanAbstractWindCharge.canCollideWith(Entity p_481660_) protected booleanAbstractWindCharge.canHitEntity(Entity p_481024_) booleanWindCharge.deflect(ProjectileDeflection p_478545_, @Nullable Entity p_482092_, @Nullable EntityReference<Entity> p_480343_, boolean p_478437_) Method parameters in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge with type arguments of type EntityModifier and TypeMethodDescriptionbooleanWindCharge.deflect(ProjectileDeflection p_478545_, @Nullable Entity p_482092_, @Nullable EntityReference<Entity> p_480343_, boolean p_478437_) Constructors in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge with parameters of type EntityModifierConstructorDescriptionAbstractWindCharge(EntityType<? extends AbstractWindCharge> pEntityType, Level pLevel, Entity pOwner, double pX, double pY, double pZ) -
Uses of Entity in net.minecraft.world.entity.projectile.throwableitemprojectile
Subclasses of Entity in net.minecraft.world.entity.projectile.throwableitemprojectileModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassMethods in net.minecraft.world.entity.projectile.throwableitemprojectile that return EntityModifier and TypeMethodDescriptionprivate static @Nullable EntityThrownEnderpearl.findOwnerIncludingDeadPlayer(ServerLevel pLevel, UUID pUuid) @Nullable EntityThrownEnderpearl.getOwner()@Nullable EntityThrownEnderpearl.teleport(TeleportTransition p_478267_) Methods in net.minecraft.world.entity.projectile.throwableitemprojectile with parameters of type EntityModifier and TypeMethodDescriptionprivate static booleanThrownEnderpearl.isAllowedToTeleportOwner(Entity pEntity, Level pLevel) Method parameters in net.minecraft.world.entity.projectile.throwableitemprojectile with type arguments of type EntityModifier and TypeMethodDescriptionprotected voidThrownEnderpearl.setOwner(@Nullable EntityReference<Entity> p_482142_) -
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.vehicleMethods in net.minecraft.world.entity.vehicle with parameters of type EntityModifier and TypeMethodDescriptiondefault voidContainerEntity.chestVehicleDestroyed(DamageSource pDamageSource, ServerLevel pLevel, Entity pEntity) -
Uses of Entity in net.minecraft.world.entity.vehicle.boat
Subclasses of Entity in net.minecraft.world.entity.vehicle.boatModifier and TypeClassDescriptionclassclassclassclassclassclassMethods in net.minecraft.world.entity.vehicle.boat with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanAbstractBoat.canAddPassenger(Entity p_478625_) booleanAbstractBoat.canBeCollidedWith(@Nullable Entity p_479026_) booleanAbstractBoat.canCollideWith(Entity p_481742_) static booleanAbstractBoat.canVehicleCollide(Entity pFirst, Entity pSecond) protected voidAbstractBoat.clampRotation(Entity pEntity) protected Vec3AbstractBoat.getPassengerAttachmentPoint(Entity p_480937_, EntityDimensions p_479649_, float p_479693_) booleanAbstractBoat.hasEnoughSpaceFor(Entity pEntity) voidAbstractBoat.onPassengerTurned(Entity p_478930_) protected voidAbstractBoat.positionRider(Entity p_480092_, Entity.MoveFunction p_478788_) void -
Uses of Entity in net.minecraft.world.entity.vehicle.minecart
Subclasses of Entity in net.minecraft.world.entity.vehicle.minecartModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassMethods in net.minecraft.world.entity.vehicle.minecart with parameters of type EntityModifier and TypeMethodDescriptionbooleanAbstractMinecart.canCollideWith(Entity pEntity) protected Vec3AbstractMinecart.getPassengerAttachmentPoint(Entity p_479844_, EntityDimensions p_481765_, float p_481069_) protected voidMinecart.positionRider(Entity p_478277_, Entity.MoveFunction p_482199_) voidApplies a velocity to the entities, to push them away from each other. -
Uses of Entity in net.minecraft.world.item
Classes in net.minecraft.world.item with type parameters of type EntityFields in net.minecraft.world.item declared as EntityModifier and TypeFieldDescriptionprivate @Nullable 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 TypeMethodDescriptionvoidItemStack.causeUseVibration(Entity pEntity, Holder.Reference<GameEvent> pGameEvent) floatItem.getAttackDamageBonus(Entity pTarget, float pDamage, DamageSource pDamageSource) floatMaceItem.getAttackDamageBonus(Entity p_344900_, float p_335575_, DamageSource p_344972_) private static doubleMaceItem.getKnockbackPower(Entity pAttacker, LivingEntity pEntity, Vec3 pOffset) voidCompassItem.inventoryTick(ItemStack p_40720_, ServerLevel p_401770_, Entity p_40722_, @Nullable EquipmentSlot p_401781_) voidItem.inventoryTick(ItemStack pStack, ServerLevel pLevel, Entity pEntity, @Nullable EquipmentSlot pSlot) voidItemStack.inventoryTick(Level pLevel, Entity pEntity, @Nullable EquipmentSlot pSlot) voidMapItem.inventoryTick(ItemStack p_42870_, ServerLevel p_401792_, Entity p_42872_, @Nullable EquipmentSlot p_401885_) private static voidprivate static Predicate<LivingEntity> MaceItem.knockbackPredicate(Entity pAttacker, Entity pTarget) private static voidBundleItem.playDropContentsSound(Level pLevel, Entity pEntity) private static voidBundleItem.playInsertFailSound(Entity pEntity) private static voidBundleItem.playInsertSound(Entity pEntity) private static voidBundleItem.playRemoveOneSound(Entity pEntity) voidItemStack.setEntityRepresentation(@Nullable Entity pEntity) voidMapItem.update(Level pLevel, Entity pViewer, MapItemSavedData pData) -
Uses of Entity in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type EntityModifier and TypeMethodDescriptionstatic booleanPiercingWeapon.canHitEntity(Entity pAttacker, Entity pEntity) floatAttackRange.effectiveMaxRange(Entity pEntity) floatAttackRange.effectiveMinRange(Entity pEntity) AttackRange.getClosesetHit(Entity pEntity, float pPartialTick, Predicate<Entity> pPredicate) static Vec3voidvoidPiercingWeapon.makeHitSound(Entity pEntity) voidKineticWeapon.makeLocalHitSound(Entity pEntity) voidvoidMethod parameters in net.minecraft.world.item.component with type arguments of type EntityModifier and TypeMethodDescriptionAttackRange.getClosesetHit(Entity pEntity, float pPartialTick, Predicate<Entity> pPredicate) -
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 pLevel, int pEnchantmentLevel, Entity pEntity, Vec3 pOrigin, BlockState pState) static LootContextEnchantment.damageContext(ServerLevel pLevel, int pEnchantmentLevel, Entity pEntity, DamageSource pDamageSource) voidEnchantment.doLunge(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity) static voidEnchantmentHelper.doLungeEffects(ServerLevel pLevel, Entity pEntity) voidEnchantment.doPostAttack(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, EnchantmentTarget pTarget, Entity pEntity, DamageSource pDamageSource) static voidEnchantment.doPostAttack(TargetedConditionalEffect<EnchantmentEntityEffect> pEffect, ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, DamageSource pDamageSource) static voidEnchantmentHelper.doPostAttackEffects(ServerLevel pLevel, Entity pEntity, DamageSource pDamageSource) static voidEnchantmentHelper.doPostAttackEffectsWithItemSource(ServerLevel pLevel, Entity pEntity, DamageSource pDamageSource, @Nullable ItemStack pItemSource) static voidEnchantmentHelper.doPostAttackEffectsWithItemSourceOnBreak(ServerLevel pLevel, Entity pEntity, DamageSource pDamageSource, @Nullable ItemStack pItemSource, @Nullable Consumer<Item> pOnBreak) static LootContextEnchantment.entityContext(ServerLevel pLevel, int pEnchantmentLevel, Entity pEntity, Vec3 pOrigin) static intEnchantmentHelper.getFishingLuckBonus(ServerLevel pLevel, ItemStack pStack, Entity pEntity) static floatEnchantmentHelper.getFishingTimeReduction(ServerLevel pLevel, ItemStack pStack, Entity pEntity) static intEnchantmentHelper.getTridentReturnToOwnerAcceleration(ServerLevel pLevel, ItemStack pStack, Entity pEntity) booleanEnchantment.isImmuneToDamage(ServerLevel pLevel, int pEnchantmentLevel, Entity pEntity, DamageSource pDamageSource) static LootContextEnchantment.locationContext(ServerLevel pLevel, int pEnchantmentLevel, Entity pEntity, boolean pEnchantmentActive) static floatEnchantmentHelper.modifyArmorEffectiveness(ServerLevel pLevel, ItemStack pTool, Entity pEntity, DamageSource pDamageSource, float pArmorEffectiveness) voidEnchantment.modifyArmorEffectivness(ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, DamageSource pDamageSource, org.apache.commons.lang3.mutable.MutableFloat pArmorEffectiveness) voidEnchantment.modifyDamage(ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, DamageSource pDamageSource, org.apache.commons.lang3.mutable.MutableFloat pDamage) static floatEnchantmentHelper.modifyDamage(ServerLevel pLevel, ItemStack pTool, Entity pEntity, DamageSource pDamageSource, float pDamage) voidEnchantment.modifyDamageFilteredValue(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> pComponentType, ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, DamageSource pDamageSource, org.apache.commons.lang3.mutable.MutableFloat pValue) voidEnchantment.modifyDamageProtection(ServerLevel pLevel, int pEnchantmentLevel, ItemStack pStack, Entity pEntity, DamageSource pDamageSource, org.apache.commons.lang3.mutable.MutableFloat pDamageProtection) voidEnchantment.modifyEntityFilteredValue(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> pComponentType, ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, org.apache.commons.lang3.mutable.MutableFloat pValue) voidEnchantment.modifyFallBasedDamage(ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, DamageSource pDamageSource, org.apache.commons.lang3.mutable.MutableFloat pFallBasedDamage) static floatEnchantmentHelper.modifyFallBasedDamage(ServerLevel pLevel, ItemStack pTool, Entity pEntity, DamageSource pDamageSource, float pFallBasedDamage) voidEnchantment.modifyFishingLuckBonus(ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, org.apache.commons.lang3.mutable.MutableFloat pFishingLuckBonus) voidEnchantment.modifyFishingTimeReduction(ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, org.apache.commons.lang3.mutable.MutableFloat pFishingTimeReduction) voidEnchantment.modifyKnockback(ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, DamageSource pDamageSource, org.apache.commons.lang3.mutable.MutableFloat pKnockback) static floatEnchantmentHelper.modifyKnockback(ServerLevel pLevel, ItemStack pTool, Entity pEntity, DamageSource pDamageSource, float pKnockback) voidEnchantment.modifyMobExperience(ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, org.apache.commons.lang3.mutable.MutableFloat pMobExperience) voidEnchantment.modifyProjectileCount(ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, org.apache.commons.lang3.mutable.MutableFloat pProjectileCount) voidEnchantment.modifyProjectileSpread(ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, org.apache.commons.lang3.mutable.MutableFloat pProjectileSpread) voidEnchantment.modifyTridentReturnToOwnerAcceleration(ServerLevel pLevel, int pEnchantmentLevel, ItemStack pTool, Entity pEntity, org.apache.commons.lang3.mutable.MutableFloat pTridentReturnToOwnerAcceleration) voidEnchantment.onHitBlock(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pPos, BlockState pState) static voidEnchantmentHelper.onHitBlock(ServerLevel pLevel, ItemStack pStack, @Nullable LivingEntity pOwner, Entity pEntity, @Nullable EquipmentSlot pSlot, Vec3 pPos, BlockState pState, Consumer<Item> pOnBreak) voidEnchantment.onProjectileSpawned(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity) static intEnchantmentHelper.processMobExperience(ServerLevel pLevel, @Nullable Entity pKiller, Entity pMob, int pExperience) static intEnchantmentHelper.processProjectileCount(ServerLevel pLevel, ItemStack pTool, Entity pEntity, int pProjectileCount) static floatEnchantmentHelper.processProjectileSpread(ServerLevel pLevel, ItemStack pTool, Entity pEntity, float pProjectileSpread) voidEnchantment.tick(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity) -
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_) voidApplyEntityImpulse.apply(ServerLevel p_454879_, int p_454857_, EnchantedItemInUse p_455030_, Entity p_455129_, Vec3 p_455690_) voidApplyExhaustion.apply(ServerLevel p_458965_, int p_458920_, EnchantedItemInUse p_459091_, Entity p_459043_, Vec3 p_459113_) 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 pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) 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 @Nullable DamageSourceExplodeEffect.getDamageSource(Entity pEntity, Vec3 pPos) 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 pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pPos, boolean pApplyTransientEffects) 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 pItem, Entity pEntity, Vec3 pPos, int pEnchantmentLevel) -
Uses of Entity in net.minecraft.world.level
Fields in net.minecraft.world.level declared as EntityModifier and TypeFieldDescriptionprivate @Nullable EntityBaseSpawner.displayEntityCached instance of the entity to render inside the spawner.private final EntityEntityBasedExplosionDamageCalculator.sourceprivate final @Nullable EntityServerExplosion.sourceMethods in net.minecraft.world.level with type parameters of type EntityModifier and TypeMethodDescriptionEntityGetter.getEntities(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate) Level.getEntities(EntityTypeTest<Entity, T> p_151528_, AABB p_151529_, Predicate<? super T> p_151530_) <T extends Entity>
voidLevel.getEntities(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate, List<? super T> pOutput) <T extends Entity>
voidLevel.getEntities(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate, List<? super T> pOutput, int pMaxResults) EntityGetter.getEntitiesOfClass(Class<T> pEntityClass, AABB pArea) EntityGetter.getEntitiesOfClass(Class<T> pEntityClass, AABB pArea, Predicate<? super T> pFilter) <T extends Entity>
voidLevel.guardEntityTick(Consumer<T> pAction, T pEntity) <T extends Entity>
booleanLevel.hasEntities(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate) Methods in net.minecraft.world.level that return EntityModifier and TypeMethodDescription@Nullable EntityExplosion.getDirectSourceEntity()@Nullable EntityServerExplosion.getDirectSourceEntity()abstract @Nullable EntityLevel.getEntity(int pId) Returns the Entity with the given ID, or null if it doesn't exist in this Level.@Nullable Entity@Nullable EntityLevel.getEntityInAnyDimension(UUID pUuid) @Nullable EntityBaseSpawner.getOrCreateDisplayEntity(Level pLevel, BlockPos pPos) Methods in net.minecraft.world.level that return types with arguments of type EntityModifier and TypeMethodDescriptionEntityGetter.getEntities(@Nullable Entity pEntity, AABB pArea) Will get all entities within the specified AABB excluding the one passed into it.EntityGetter.getEntities(@Nullable Entity pEntity, AABB pArea, Predicate<? super Entity> pPredicate) Gets all entities within the specified AABB excluding the one passed into it.protected abstract LevelEntityGetter<Entity> Level.getEntities()Level.getEntities(@Nullable Entity pEntity, AABB pBoundingBox, Predicate<? super Entity> pPredicate) Gets all entities within the specified AABB excluding the one passed into it.@Nullable com.mojang.datafixers.util.Either<BlockEntity, Entity> BaseSpawner.getOwner()Level.getPushableEntities(Entity pEntity, AABB pBoundingBox) Methods in net.minecraft.world.level with parameters of type EntityModifier and TypeMethodDescriptiondefault booleanLevelWriter.addFreshEntity(Entity pEntity) default voidServerLevelAccessor.addFreshEntityWithPassengers(Entity pEntity) private @Nullable VoxelShapeCollisionGetter.borderCollision(Entity pEntity, AABB pBox) voidLevel.broadcastDamageEvent(Entity pEntity, DamageSource pDamageSource) voidLevel.broadcastEntityEvent(Entity pEntity, byte pState) Sends aClientboundEntityEventPacketto all tracked players of that entity.default booleanCollisionGetter.collidesWithSuffocatingBlock(@Nullable Entity pEntity, AABB pBox) booleanLevel.destroyBlock(BlockPos pPos, boolean pDropBlock, @Nullable Entity pEntity, int pRecursionLeft) default booleanLevelWriter.destroyBlock(BlockPos pPos, boolean pDropBlock, @Nullable Entity pEntity) booleanLevelWriter.destroyBlock(BlockPos pPos, boolean pDropBlock, @Nullable Entity pEntity, int pRecursionLeft) voidLevel.explode(@Nullable Entity pSource, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction) voidLevel.explode(@Nullable Entity pSource, double pX, double pY, double pZ, float pRadius, Level.ExplosionInteraction pExplosionInteraction) voidLevel.explode(@Nullable Entity pSource, @Nullable DamageSource pDamageSource, @Nullable ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction) abstract voidLevel.explode(@Nullable Entity pSource, @Nullable DamageSource pDamageSource, @Nullable ExplosionDamageCalculator pDamageCalculator, double pX, double pY, double pZ, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction, ParticleOptions pSmallExplosionParticles, ParticleOptions pLargeExplosionParticles, WeightedList<ExplosionParticleInfo> pBlockParticles, Holder<SoundEvent> pExplosionSound) voidLevel.explode(@Nullable Entity pSource, @Nullable DamageSource pDamageSource, @Nullable ExplosionDamageCalculator pDamageCalculator, Vec3 pPos, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction) CollisionGetter.findFreePosition(@Nullable Entity pEntity, VoxelShape pShape, Vec3 pPos, double pX, double pY, double pZ) CollisionGetter.findSupportingBlock(Entity pEntity, AABB pBox) default voiddefault voiddefault Iterable<VoxelShape> CollisionGetter.getBlockAndLiquidCollisions(@Nullable Entity pEntity, AABB pCollisionBox) default Iterable<VoxelShape> CollisionGetter.getBlockCollisions(@Nullable Entity pEntity, AABB pCollisionBox) default Iterable<VoxelShape> CollisionGetter.getCollisions(@Nullable Entity pEntity, AABB pCollisionBox) static DamageSourceExplosion.getDefaultDamageSource(Level pLevel, @Nullable Entity pSource) EntityGetter.getEntities(@Nullable Entity pEntity, AABB pArea) Will get all entities within the specified AABB excluding the one passed into it.EntityGetter.getEntities(@Nullable Entity pEntity, AABB pArea, Predicate<? super Entity> pPredicate) Gets all entities within the specified AABB excluding the one passed into it.Level.getEntities(@Nullable Entity pEntity, AABB pBoundingBox, Predicate<? super Entity> pPredicate) Gets all entities within the specified AABB excluding the one passed into it.CollisionGetter.getEntityCollisions(@Nullable Entity pEntity, AABB pCollisionBox) default List<VoxelShape> CommonLevelAccessor.getEntityCollisions(@Nullable Entity p_186447_, AABB p_186448_) default List<VoxelShape> EntityGetter.getEntityCollisions(@Nullable Entity pEntity, AABB pCollisionBox) PathNavigationRegion.getEntityCollisions(@Nullable Entity p_186557_, AABB p_186558_) floatExplosionDamageCalculator.getEntityDamageAmount(Explosion pExplosion, Entity pEntity, float pSeenPercent) static @Nullable LivingEntityExplosion.getIndirectSourceEntity(@Nullable Entity pSource) floatExplosionDamageCalculator.getKnockbackMultiplier(Entity pEntity) floatSimpleExplosionDamageCalculator.getKnockbackMultiplier(Entity p_345651_) default @Nullable PlayerEntityGetter.getNearestPlayer(Entity pEntity, double pDistance) default Iterable<VoxelShape> CollisionGetter.getPreMoveCollisions(@Nullable Entity pEntity, AABB pCollisionBox, Vec3 pPos) Level.getPushableEntities(Entity pEntity, AABB pBoundingBox) static floatServerExplosion.getSeenPercent(Vec3 pExplosionVector, Entity pEntity) default booleanCollisionGetter.isUnobstructed(@Nullable Entity pEntity, VoxelShape pShape) default booleanCollisionGetter.isUnobstructed(Entity pEntity) default booleanCommonLevelAccessor.isUnobstructed(@Nullable Entity pEntity, VoxelShape pShape) default booleanEntityGetter.isUnobstructed(@Nullable Entity pEntity, VoxelShape pShape) voidLevelAccessor.levelEvent(@Nullable Entity pEntity, int pType, BlockPos pPos, int pData) booleanLevel.loadedAndEntityCanStandOn(BlockPos pPos, Entity pEntity) booleanLevel.loadedAndEntityCanStandOnFace(BlockPos pPos, Entity pEntity, Direction pDirection) private ExplosionDamageCalculatorServerExplosion.makeDamageCalculator(@Nullable Entity pEntity) booleanLevel.mayInteract(Entity pEntity, BlockPos pPos) default booleanCollisionGetter.noBlockCollision(@Nullable Entity pEntity, AABB pBoundingBox) default booleanCollisionGetter.noBlockCollision(@Nullable Entity pEntity, AABB pBoundingBox, boolean pCheckLiquid) default booleanCollisionGetter.noBorderCollision(@Nullable Entity pEntity, AABB pBoundingBox) default booleanCollisionGetter.noCollision(@Nullable Entity pEntity, AABB pCollisionBox) default booleanCollisionGetter.noCollision(@Nullable Entity pEntity, AABB pCollisionBox, boolean pCheckLiquid) default booleanCollisionGetter.noCollision(Entity pEntity) default booleanCollisionGetter.noEntityCollision(@Nullable Entity pEntity, AABB pBoundIngBox) voidLevel.playLocalSound(Entity pEntity, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) abstract voidLevel.playSeededSound(@Nullable Entity pEntity, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) voidLevel.playSeededSound(@Nullable Entity pEntity, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) abstract voidLevel.playSeededSound(@Nullable Entity pEntity, Entity pSourceEntity, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch, long pSeed) voidLevel.playSound(@Nullable Entity pEntity, double pX, double pY, double pZ, Holder<SoundEvent> pSound, SoundSource pSource, float pVolume, float pPitch) voidLevel.playSound(@Nullable Entity pEntity, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pSource) voidLevel.playSound(@Nullable Entity pEntity, double pX, double pY, double pZ, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) voidLevel.playSound(@Nullable Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pCategory, float pVolume, float pPitch) voidLevel.playSound(@Nullable Entity pEntity, Entity pSourceEntity, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) default voidLevelAccessor.playSound(@Nullable Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pSource) voidLevelAccessor.playSound(@Nullable Entity pEntity, BlockPos pPos, SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch) booleanExplosionDamageCalculator.shouldDamageEntity(Explosion pExplosion, Entity pEntity) booleanSimpleExplosionDamageCalculator.shouldDamageEntity(Explosion p_346248_, Entity p_344983_) booleanLevel.shouldTickDeath(Entity pEntity) Method parameters in net.minecraft.world.level with type arguments of type EntityModifier and TypeMethodDescriptionstatic NaturalSpawner.SpawnStateNaturalSpawner.createState(int pSpawnableChunkCount, Iterable<Entity> pEntities, NaturalSpawner.ChunkGetter pChunkGetter, LocalMobCapCalculator pCalculator) EntityGetter.getEntities(@Nullable Entity pEntity, AABB pArea, Predicate<? super Entity> pPredicate) Gets all entities within the specified AABB excluding the one passed into it.EntityGetter.getEntities(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate) Level.getEntities(@Nullable Entity pEntity, AABB pBoundingBox, Predicate<? super Entity> pPredicate) 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> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate, List<? super T> pOutput) <T extends Entity>
voidLevel.getEntities(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate, List<? super T> pOutput, int pMaxResults) default @Nullable PlayerEntityGetter.getNearestPlayer(double pX, double pY, double pZ, double pDistance, @Nullable Predicate<Entity> pPredicate) <T extends Entity>
booleanLevel.hasEntities(EntityTypeTest<Entity, T> pEntityTypeTest, AABB pBounds, Predicate<? super T> pPredicate) Constructors in net.minecraft.world.level with parameters of type EntityModifierConstructorDescriptionBlockCollisions(CollisionGetter pCollisionGetter, @Nullable Entity pEntity, AABB pBox, boolean pOnlySuffocatingBlocks, BiFunction<BlockPos.MutableBlockPos, VoxelShape, T> pResultProvider) ClipContext(Vec3 pFrom, Vec3 pTo, ClipContext.Block pBlock, ClipContext.Fluid pFluid, Entity pEntity) ServerExplosion(ServerLevel pLevel, @Nullable Entity pSource, @Nullable DamageSource pDamageSource, @Nullable ExplosionDamageCalculator pDamageCalculator, Vec3 pCenter, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction) -
Uses of Entity in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type EntityModifier and TypeMethodDescriptionvoidSculkSensorBlock.activate(@Nullable Entity pEntity, Level pLevel, BlockPos pPos, BlockState pState, int pPower, int pFrequency) (package private) static BlockStateComposterBlock.addItem(@Nullable Entity pEntity, BlockState pState, LevelAccessor pLevel, BlockPos pPos, ItemStack pStack) booleanBellBlock.attemptToRing(@Nullable Entity pEntity, Level pLevel, BlockPos pPos, @Nullable Direction pDirection) private voidprivate voidprivate booleanTurtleEggBlock.canDestroyEgg(ServerLevel pLevel, Entity pEntity) private static booleanBigDripleafBlock.canEntityTilt(BlockPos pPos, Entity pEntity) static booleanPowderSnowBlock.canEntityWalkOnPowderSnow(Entity pEntity) static voidRespawnAnchorBlock.charge(@Nullable Entity pEntity, Level pLevel, BlockPos pPos, BlockState pState) private voidBasePressurePlateBlock.checkPressed(@Nullable Entity pEntity, Level pLevel, BlockPos pPos, BlockState pState, int pCurrentSignal) private static TeleportTransitionNetherPortalBlock.createDimensionTransition(ServerLevel pLevel, BlockUtil.FoundRectangle pRectangle, Direction.Axis pAxis, Vec3 pOffset, Entity pEntity, TeleportTransition.PostTeleportTransition pPostTeleportTransition) private voidTurtleEggBlock.destroyEgg(Level pLevel, BlockState pState, BlockPos pPos, Entity pEntity, int pChance) private static booleanHoneyBlock.doesEntityDoHoneyBlockSlideEffects(Entity pEntity) private voidHoneyBlock.doSlideMovement(Entity pEntity) static voidCampfireBlock.dowse(@Nullable Entity pEntity, LevelAccessor pLevel, BlockPos pPos, BlockState pState) protected static booleanBlock.dropFromBlockInteractLootTable(ServerLevel pLevel, ResourceKey<LootTable> pLootTable, BlockState pState, @Nullable BlockEntity pBlockEntity, @Nullable ItemStack pTool, @Nullable Entity pEntity, BiConsumer<ServerLevel, ItemStack> pDropConsumer) static voidBeehiveBlock.dropHoneycomb(ServerLevel pLevel, ItemStack pStack, BlockState pState, @Nullable BlockEntity pBlockEntity, @Nullable Entity pEntity, BlockPos pPos) static voidBlock.dropResources(BlockState pState, Level pLevel, BlockPos pPos, @Nullable BlockEntity pBlockEntity, @Nullable Entity pEntity, ItemStack pTool) (package private) static BlockStateComposterBlock.empty(@Nullable Entity pEntity, BlockState pState, LevelAccessor pLevel, BlockPos pPos) protected voidBaseFireBlock.entityInside(BlockState p_49260_, Level p_49261_, BlockPos p_49262_, Entity p_49263_, InsideBlockEffectApplier p_404795_, boolean p_451760_) protected voidBasePressurePlateBlock.entityInside(BlockState p_49314_, Level p_49315_, BlockPos p_49316_, Entity p_49317_, InsideBlockEffectApplier p_405011_, boolean p_451773_) protected voidBigDripleafBlock.entityInside(BlockState p_152266_, Level p_152267_, BlockPos p_152268_, Entity p_152269_, InsideBlockEffectApplier p_405262_, boolean p_451778_) protected voidBubbleColumnBlock.entityInside(BlockState p_50976_, Level p_50977_, BlockPos p_50978_, Entity p_50979_, InsideBlockEffectApplier p_404857_, boolean p_451771_) protected voidButtonBlock.entityInside(BlockState p_51083_, Level p_51084_, BlockPos p_51085_, Entity p_51086_, InsideBlockEffectApplier p_405475_, boolean p_451774_) protected voidCactusBlock.entityInside(BlockState p_51148_, Level p_51149_, BlockPos p_51150_, Entity p_51151_, InsideBlockEffectApplier p_405001_, boolean p_451763_) protected voidCampfireBlock.entityInside(BlockState p_51269_, Level p_51270_, BlockPos p_51271_, Entity p_51272_, InsideBlockEffectApplier p_405507_, boolean p_451776_) protected voidCropBlock.entityInside(BlockState p_52277_, Level p_52278_, BlockPos p_52279_, Entity p_52280_, InsideBlockEffectApplier p_405324_, boolean p_451780_) protected voidDetectorRailBlock.entityInside(BlockState p_52458_, Level p_52459_, BlockPos p_52460_, Entity p_52461_, InsideBlockEffectApplier p_405668_, boolean p_451766_) protected voidEndGatewayBlock.entityInside(BlockState p_350647_, Level p_350785_, BlockPos p_350610_, Entity p_350849_, InsideBlockEffectApplier p_405476_, boolean p_451756_) protected voidEndPortalBlock.entityInside(BlockState p_53025_, Level p_53026_, BlockPos p_53027_, Entity p_53028_, InsideBlockEffectApplier p_405056_, boolean p_451764_) protected voidEyeblossomBlock.entityInside(BlockState p_382817_, Level p_383060_, BlockPos p_383146_, Entity p_383054_, InsideBlockEffectApplier p_405247_, boolean p_451769_) protected voidFrogspawnBlock.entityInside(BlockState p_221204_, Level p_221205_, BlockPos p_221206_, Entity p_221207_, InsideBlockEffectApplier p_405189_, boolean p_451775_) protected voidHoneyBlock.entityInside(BlockState p_54003_, Level p_54004_, BlockPos p_54005_, Entity p_54006_, InsideBlockEffectApplier p_404924_, boolean p_451779_) protected voidHopperBlock.entityInside(BlockState p_54066_, Level p_54067_, BlockPos p_54068_, Entity p_54069_, InsideBlockEffectApplier p_405580_, boolean p_451755_) protected voidLavaCauldronBlock.entityInside(BlockState p_153506_, Level p_153507_, BlockPos p_153508_, Entity p_153509_, InsideBlockEffectApplier p_404841_, boolean p_451751_) protected voidLayeredCauldronBlock.entityInside(BlockState p_153534_, Level p_153535_, BlockPos p_153536_, Entity p_153537_, InsideBlockEffectApplier p_405060_, boolean p_451753_) protected voidNetherPortalBlock.entityInside(BlockState p_54915_, Level p_54916_, BlockPos p_54917_, Entity p_54918_, InsideBlockEffectApplier p_405383_, boolean p_451762_) voidPitcherCropBlock.entityInside(BlockState p_279266_, Level p_279469_, BlockPos p_279119_, Entity p_279372_, InsideBlockEffectApplier p_404719_, boolean p_451761_) protected voidPowderSnowBlock.entityInside(BlockState p_154263_, Level p_154264_, BlockPos p_154265_, Entity p_154266_, InsideBlockEffectApplier p_405853_, boolean p_451759_) protected voidSweetBerryBushBlock.entityInside(BlockState p_57270_, Level p_57271_, BlockPos p_57272_, Entity p_57273_, InsideBlockEffectApplier p_405414_, boolean p_451767_) protected voidTripWireBlock.entityInside(BlockState p_57625_, Level p_57626_, BlockPos p_57627_, Entity p_57628_, InsideBlockEffectApplier p_405466_, boolean p_451757_) protected voidWaterlilyBlock.entityInside(BlockState p_58164_, Level p_58165_, BlockPos p_58166_, Entity p_58167_, InsideBlockEffectApplier p_405495_, boolean p_451765_) protected voidWebBlock.entityInside(BlockState p_58180_, Level p_58181_, BlockPos p_58182_, Entity p_58183_, InsideBlockEffectApplier p_405438_, boolean p_451752_) protected voidWitherRoseBlock.entityInside(BlockState p_58238_, Level p_58239_, BlockPos p_58240_, Entity p_58241_, InsideBlockEffectApplier p_405727_, boolean p_451770_) static BlockStateComposterBlock.extractProduce(Entity pEntity, BlockState pState, Level pLevel, BlockPos pPos) voidBedBlock.fallOn(Level p_152169_, BlockState p_152170_, BlockPos p_152171_, Entity p_152172_, double p_398028_) voidBlock.fallOn(Level pLevel, BlockState pState, BlockPos pPos, Entity pEntity, double pFallDistance) 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 pEntity) private static TeleportTransitionNetherPortalBlock.getDimensionTransitionFromExit(Entity pEntity, BlockPos pPos, BlockUtil.FoundRectangle pRectangle, ServerLevel pLevel, TeleportTransition.PostTeleportTransition pPostTeleportTransition) Block.getDrops(BlockState pState, ServerLevel pLevel, BlockPos pPos, @Nullable BlockEntity pBlockEntity, @Nullable Entity pEntity, ItemStack pTool) protected VoxelShapeEndPortalBlock.getEntityInsideCollisionShape(BlockState p_371319_, BlockGetter p_399758_, BlockPos p_371244_, Entity p_399952_) protected VoxelShapeLavaCauldronBlock.getEntityInsideCollisionShape(BlockState p_423606_, BlockGetter p_423559_, BlockPos p_423584_, Entity p_423629_) protected VoxelShapeLayeredCauldronBlock.getEntityInsideCollisionShape(BlockState p_423555_, BlockGetter p_423560_, BlockPos p_423649_, Entity p_423623_) 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 @Nullable TeleportTransitionNetherPortalBlock.getExitPortal(ServerLevel pLevel, Entity pEntity, BlockPos pPos, BlockPos pExitPos, boolean pIsNether, WorldBorder pWorldBorder) intDropExperienceBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) intRedStoneOreBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) intSculkCatalystBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) intSculkSensorBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) intSculkShriekerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) intSpawnerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) AnvilBlock.getFallDamageSource(Entity p_254036_) default DamageSourceFallable.getFallDamageSource(Entity pEntity) PointedDripstoneBlock.getFallDamageSource(Entity p_254432_) @Nullable TeleportTransitionEndGatewayBlock.getPortalDestination(ServerLevel p_350958_, Entity p_350650_, BlockPos p_350525_) @Nullable TeleportTransitionEndPortalBlock.getPortalDestination(ServerLevel p_351032_, Entity p_350274_, BlockPos p_350589_) @Nullable TeleportTransitionNetherPortalBlock.getPortalDestination(ServerLevel p_350444_, Entity p_350334_, BlockPos p_350764_) @Nullable TeleportTransitionPortal.getPortalDestination(ServerLevel pLevel, Entity pEntity, BlockPos pPos) intNetherPortalBlock.getPortalTransitionTime(ServerLevel p_350689_, Entity p_350280_) default intPortal.getPortalTransitionTime(ServerLevel pLevel, Entity pEntity) static BlockStateComposterBlock.insertItem(Entity pEntity, BlockState pState, ServerLevel pLevel, ItemStack pStack, BlockPos pPos) private booleanHoneyBlock.isSlidingDown(BlockPos pPos, Entity pEntity) private voidHoneyBlock.maybeDoSlideAchievement(Entity pEntity, BlockPos pPos) private voidHoneyBlock.maybeDoSlideEffects(Level pLevel, Entity pEntity) private voidNoteBlock.playNote(@Nullable Entity pEntity, BlockState pState, Level pLevel, BlockPos pPos) private voidstatic voidLecternBlock.resetBookState(@Nullable Entity pEntity, Level pLevel, BlockPos pPos, BlockState pState, boolean pHasBook) voidDoorBlock.setOpen(@Nullable Entity pEntity, Level pLevel, BlockState pState, BlockPos pPos, boolean pOpen) static voidHoneyBlock.showJumpParticles(Entity pEntity) private static voidHoneyBlock.showParticles(Entity pEntity, int pParticleCount) static voidHoneyBlock.showSlideParticles(Entity pEntity) private static voidCarvedPumpkinBlock.spawnGolemInWorld(Level pLevel, BlockPattern.BlockPatternMatch pPatternMatch, Entity pGolem, BlockPos pPos) voidBlock.stepOn(Level pLevel, BlockPos pPos, BlockState pState, Entity pEntity) 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(@Nullable Entity pEntity, Level pLevel, BlockPos pPos, int pFrequency) static voidFarmBlock.turnToDirt(@Nullable Entity pEntity, BlockState pState, Level pLevel, BlockPos pPos) voidBedBlock.updateEntityMovementAfterFallOn(BlockGetter p_49483_, Entity p_49484_) voidBlock.updateEntityMovementAfterFallOn(BlockGetter pLevel, Entity pEntity) voidSlimeBlock.updateEntityMovementAfterFallOn(BlockGetter p_56406_, Entity p_56407_) private static intTargetBlock.updateRedstoneOutput(LevelAccessor pLevel, BlockState pState, BlockHitResult pHit, Entity pProjectile) static InteractionResultCaveVines.use(Entity pEntity, BlockState pState, Level pLevel, BlockPos pPos) Method parameters in net.minecraft.world.level.block with type arguments of type EntityModifier and TypeMethodDescriptionprivate voidTripWireBlock.checkPressed(Level pLevel, BlockPos pPos, List<? extends Entity> pEntities) protected static intBasePressurePlateBlock.getEntityCount(Level pLevel, AABB pBox, Class<? extends Entity> pEntityClass) private <T extends AbstractMinecart>
List<T> DetectorRailBlock.getInteractingMinecartOfType(Level pLevel, BlockPos pPos, Class<T> pCartType, Predicate<Entity> pFilter) -
Uses of Entity in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return EntityModifier and TypeMethodDescription@Nullable EntityBeehiveBlockEntity.Occupant.createEntity(Level pLevel, BlockPos pPos) Methods in net.minecraft.world.level.block.entity that return types with arguments of type EntityModifier and TypeMethodDescriptionBeehiveBlockEntity.releaseAllOccupants(BlockState pState, BeehiveBlockEntity.BeeReleaseStatus pReleaseStatus) Methods in net.minecraft.world.level.block.entity with parameters of type EntityModifier and TypeMethodDescriptionprivate static voidConduitBlockEntity.animationTick(Level pLevel, BlockPos pPos, List<BlockPos> pPositions, @Nullable Entity pEntity, int pTickCount) static voidHopperBlockEntity.entityInside(Level pLevel, BlockPos pPos, BlockState pState, Entity pEntity, HopperBlockEntity pBlockEntity) private booleanContainerOpenersCounter.hasContainerOpen(Entity pEntity, BlockPos pPos) static BeehiveBlockEntity.OccupantvoidSculkSensorBlockEntity.VibrationUser.onReceiveVibration(ServerLevel p_282851_, BlockPos p_281608_, Holder<GameEvent> p_316423_, @Nullable Entity p_282123_, @Nullable Entity p_283090_, float p_283130_) voidSculkShriekerBlockEntity.VibrationUser.onReceiveVibration(ServerLevel p_283372_, BlockPos p_281679_, Holder<GameEvent> p_316155_, @Nullable Entity p_282286_, @Nullable Entity p_281384_, float p_283119_) private voidSculkShriekerBlockEntity.shriek(ServerLevel pLevel, @Nullable Entity pSourceEntity) static @Nullable ServerPlayerSculkShriekerBlockEntity.tryGetPlayer(@Nullable Entity pEntity) Method parameters in net.minecraft.world.level.block.entity with type arguments of type EntityModifier and TypeMethodDescriptionprivate static booleanBeehiveBlockEntity.releaseOccupant(Level pLevel, BlockPos pPos, BlockState pState, BeehiveBlockEntity.Occupant pOccupant, @Nullable List<Entity> pStoredInHives, BeehiveBlockEntity.BeeReleaseStatus pReleaseStatus, @Nullable BlockPos pStoredFlowerPos) -
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> pEntityType, Consumer<CompoundTag> pTagConsumer) TrialSpawnerConfigs.customSpawnDataWithEquipment(EntityType<T> pEntityType, Consumer<CompoundTag> pTagConsumer, @Nullable ResourceKey<LootTable> pLootTableKey) PlayerDetector.EntitySelector.getEntities(ServerLevel pLevel, EntityTypeTest<Entity, T> pTypeTest, AABB pBoundingBox, Predicate<? super T> pPredicate) TrialSpawnerConfigs.spawnData(EntityType<T> pEntityType) TrialSpawnerConfigs.spawnDataWithEquipment(EntityType<T> pEntityType, ResourceKey<LootTable> pLootTableKey) Methods in net.minecraft.world.level.block.entity.trialspawner that return EntityModifier and TypeMethodDescription@Nullable EntityTrialSpawnerStateData.getOrCreateDisplayEntity(TrialSpawner pSpawner, Level pLevel, TrialSpawnerState pSpawnerState) private static @Nullable EntityTrialSpawnerState.selectEntityToSpawnItemAbove(List<Player> pPlayer, Set<UUID> pCurrentMobs, TrialSpawner pSpawner, BlockPos pPos, ServerLevel pLevel) Methods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type EntityModifier and TypeMethodDescription@Nullable com.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 pEntity, ServerLevel pLevel) Method parameters in net.minecraft.world.level.block.entity.trialspawner with type arguments of type EntityModifier and TypeMethodDescriptionPlayerDetector.EntitySelector.getEntities(ServerLevel pLevel, EntityTypeTest<Entity, T> pTypeTest, AABB pBoundingBox, Predicate<? super T> pPredicate) -
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 pPos, Entity pEntity, Direction pDir, double pProgress) private static booleanPistonMovingBlockEntity.matchesStickyCritera(AABB pBox, Entity pEntity, BlockPos pPos) private static voidPistonMovingBlockEntity.moveEntityByPiston(Direction pNoClipDirection, Entity pEntity, double pProgress, Direction pDirection) -
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 pLevel, BlockPos pPos, Entity pEntity) final booleanBlockBehaviour.BlockStateBase.entityCanStandOnFace(BlockGetter pLevel, BlockPos pPos, Entity pEntity, Direction pFace) voidBlockBehaviour.BlockStateBase.entityInside(Level pLevel, BlockPos pPos, Entity pEntity, InsideBlockEffectApplier pApplier, boolean pIntersects) protected voidBlockBehaviour.entityInside(BlockState pState, Level pLevel, BlockPos pPos, Entity pEntity, InsideBlockEffectApplier pApplier, boolean pIntersects) BlockBehaviour.BlockStateBase.getEntityInsideCollisionShape(BlockGetter pLevel, BlockPos pPos, Entity pEntity) protected VoxelShapeBlockBehaviour.getEntityInsideCollisionShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, Entity pEntity) -
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 pEntity) booleanWorldBorder.isInsideCloseToBorder(Entity pEntity, AABB pBounds) -
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 pPos) 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 @Nullable 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 @Nullable 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 TypeMethodDescription@Nullable EntityGameEvent.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(@Nullable Entity pSourceEntity, @Nullable BlockState pAffectedState) Constructors in net.minecraft.world.level.gameevent with parameters of type EntityModifierConstructorDescriptionContext(@Nullable Entity sourceEntity, @Nullable BlockState affectedState) Creates an instance of aContextrecord class.EntityPositionSource(Entity pEntity, float pYOffset) 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>> pEntityOrUuidOrId, float pYOffset) -
Uses of Entity in net.minecraft.world.level.gameevent.vibrations
Fields in net.minecraft.world.level.gameevent.vibrations declared as EntityModifier and TypeFieldDescriptionprivate final @Nullable EntityVibrationInfo.entityThe field for theentityrecord component.Methods in net.minecraft.world.level.gameevent.vibrations that return EntityModifier and TypeMethodDescription@Nullable EntityVibrationInfo.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 pLevel) VibrationInfo.getProjectileOwner(ServerLevel pLevel) Methods in net.minecraft.world.level.gameevent.vibrations with parameters of type EntityModifier and TypeMethodDescriptionprivate static @Nullable UUIDVibrationInfo.getProjectileOwner(@Nullable Entity pEntity) voidVibrationSystem.User.onReceiveVibration(ServerLevel pLevel, BlockPos pPos, Holder<GameEvent> pGameEvent, @Nullable Entity pEntity, @Nullable Entity pPlayerEntity, float pDistance) Constructors in net.minecraft.world.level.gameevent.vibrations with parameters of type EntityModifierConstructorDescriptionVibrationInfo(Holder<GameEvent> gameEvent, float distance, Vec3 pos, @Nullable UUID uuid, @Nullable UUID projectileOwnerUuid, @Nullable Entity entity) Creates an instance of aVibrationInforecord class.VibrationInfo(Holder<GameEvent> p_316851_, float p_250190_, Vec3 p_251692_, @Nullable Entity p_316868_) -
Uses of Entity in net.minecraft.world.level.levelgen.structure.templatesystem
Methods in net.minecraft.world.level.levelgen.structure.templatesystem that return types with arguments of type EntityModifier and TypeMethodDescriptionStructureTemplate.createEntityIgnoreException(ProblemReporter pProblemReporter, ServerLevelAccessor pLevel, CompoundTag pTag) -
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 pLevel, BlockPos pPos, Entity pEntity, InsideBlockEffectApplier pEffectApplier) voidFluidState.entityInside(Level pLevel, BlockPos pPos, Entity pEntity, InsideBlockEffectApplier pEffectApplier) 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 pEntity, int pIndex) Gets the vector of theNodeassociated with the given index.Path.getNextEntityPos(Entity pEntity) -
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 pLevel, Entity pEntity) static Vec3PortalShape.findCollisionFreePosition(Vec3 pPos, ServerLevel pLevel, Entity pEntity, EntityDimensions pDimensions) voidTeleportTransition.PostTeleportTransition.onTransition(Entity pEntity) private static voidTeleportTransition.placePortalTicket(Entity pEntity) private static voidTeleportTransition.playPortalSound(Entity pEntity) -
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.contextParam()Method parameters in net.minecraft.world.level.storage.loot with type arguments of type EntityModifier and TypeMethodDescriptionLootContextArg.ArgCodecBuilder.anyEntity(Function<? super ContextKey<? extends Entity>, ? extends LootContextArg<R>> pFactory) Constructor parameters in net.minecraft.world.level.storage.loot with type arguments of type EntityModifierConstructorDescriptionprivateEntityTarget(String pName, ContextKey<? extends Entity> pParam) -
Uses of Entity in net.minecraft.world.level.storage.loot.functions
Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type EntityModifier and TypeMethodDescriptionCopyComponentsFunction.copyComponentsFromEntity(ContextKey<? extends Entity> pContextParam) -
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.INTERACTING_ENTITYstatic final ContextKey<Entity> LootContextParams.TARGET_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 pLootContext, Entity pTargetEntity, Scoreboard pScoreboard, String pObjectiveName, IntRange pScoreRange) -
Uses of Entity in net.minecraft.world.level.storage.loot.providers.nbt
Fields in net.minecraft.world.level.storage.loot.providers.nbt with type parameters of type EntityModifier and TypeFieldDescriptionprivate final ContextKey<? extends Entity> ContextNbtProvider.EntitySource.contextParamThe field for thecontextParamrecord component.Methods in net.minecraft.world.level.storage.loot.providers.nbt that return types with arguments of type EntityModifier and TypeMethodDescriptionContextKey<? extends Entity> ContextNbtProvider.EntitySource.contextParam()Returns the value of thecontextParamrecord component.Methods in net.minecraft.world.level.storage.loot.providers.nbt with parameters of type EntityConstructor parameters in net.minecraft.world.level.storage.loot.providers.nbt with type arguments of type EntityModifierConstructorDescription(package private)EntitySource(ContextKey<? extends Entity> contextParam) Creates an instance of aEntitySourcerecord class. -
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 pEntity) EntityHitResult(Entity pEntity, Vec3 pLocation) -
Uses of Entity in net.minecraft.world.phys.shapes
Fields in net.minecraft.world.phys.shapes declared as EntityMethods in net.minecraft.world.phys.shapes that return EntityMethods in net.minecraft.world.phys.shapes with parameters of type EntityModifier and TypeMethodDescriptionstatic CollisionContextstatic CollisionContextstatic CollisionContextCollisionContext.withPosition(@Nullable Entity pEntity, double pBottom) Constructors in net.minecraft.world.phys.shapes with parameters of type EntityModifierConstructorDescriptionprotectedEntityCollisionContext(boolean pDescending, boolean pPlacement, double pEntityBottom, ItemStack pHeldItem, boolean pAlwaysCollideWithFluid, @Nullable Entity pEntity) protectedEntityCollisionContext(Entity pEntity, boolean pAlwaysCollideWithFluid, boolean pPlacement) Deprecated. -
Uses of Entity in net.minecraft.world.scores
Methods in net.minecraft.world.scores with parameters of type Entity -
Uses of Entity in net.minecraft.world.waypoints
Methods in net.minecraft.world.waypoints with parameters of type EntityModifier and TypeMethodDescriptionfloatdoubleTrackedWaypoint.AzimuthWaypoint.distanceSquared(Entity p_415870_) doubleTrackedWaypoint.ChunkWaypoint.distanceSquared(Entity p_415648_) abstract doubleTrackedWaypoint.distanceSquared(Entity pEntity) doubleTrackedWaypoint.EmptyWaypoint.distanceSquared(Entity p_415940_) doubleTrackedWaypoint.Vec3iWaypoint.distanceSquared(Entity p_416747_) -
Uses of Entity in net.neoforged.neoforge.attachment
Methods in net.neoforged.neoforge.attachment with parameters of type EntityModifier and TypeMethodDescriptionstatic voidAttachmentInternals.copyEntityAttachments(Entity from, Entity to, boolean isDeath) Do not call directly, useIEntityExtension.copyAttachmentsFrom(Entity, boolean).static voidAttachmentSync.syncEntityUpdate(Entity entity, AttachmentType<?> type) static voidAttachmentSync.syncInitialEntityAttachments(Entity entity, ServerPlayer to, Consumer<Packet<? super ClientGamePacketListener>> packetConsumer) Handles initial syncing of entity attachments, except for a player's own attachments. -
Uses of Entity in net.neoforged.neoforge.capabilities
Fields in net.neoforged.neoforge.capabilities with type parameters of type EntityModifier and TypeFieldDescription(package private) final Map<EntityType<?>, List<ICapabilityProvider<Entity, C, T>>> EntityCapability.providersMethods in net.neoforged.neoforge.capabilities with type parameters of type EntityModifier and TypeMethodDescriptionRegisterCapabilitiesEvent.registerEntity(EntityCapability<T, C> capability, EntityType<E> entityType, ICapabilityProvider<? super E, C, T> provider) Register a capability provider for some entity type.Methods in net.neoforged.neoforge.capabilities with parameters of type EntityModifier and TypeMethodDescription@Nullable TEntityCapability.getCapability(Entity entity, C context) -
Uses of Entity in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type EntityModifier and TypeMethodDescriptionstatic booleanClientHooks.loadEntityShader(@Nullable Entity entity, GameRenderer gameRenderer) Constructors in net.neoforged.neoforge.client with parameters of type EntityModifierConstructorDescriptionClientCommandSourceStack(CommandSource source, Vec3 position, Vec2 rotation, PermissionSet permissions, 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, ?>>
@Nullable REntityRenderersEvent.AddLayers.getRenderer(EntityType<? extends T> entityType) Returns an entity renderer for the given entity type.<T extends Entity>
voidEntityRenderersEvent.RegisterRenderers.registerEntityRenderer(EntityType<? extends T> entityType, EntityRendererProvider<T> entityRendererProvider) Registers an entity renderer for the given entity type.Methods in net.neoforged.neoforge.client.event that return EntityModifier and TypeMethodDescriptionRenderNameTagEvent.CanRender.getEntity()Returns the entity whose nameplate is being rendered.Constructors in net.neoforged.neoforge.client.event with parameters of type EntityModifierConstructorDescriptionCanRender(Entity entity, EntityRenderState renderState, @Nullable Component content, EntityRenderer<?, ?> entityRenderer, float partialTick) -
Uses of Entity in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type EntityModifier and TypeMethodDescriptiondefault Vector3dIClientBlockExtensions.getFogColor(BlockState state, LevelReader level, BlockPos pos, Entity entity, Vector3d originalColor, float partialTick) NOT CURRENTLY IMPLEMENTED -
Uses of Entity in net.neoforged.neoforge.client.renderstate
Methods in net.neoforged.neoforge.client.renderstate with type parameters of type EntityModifier and TypeMethodDescriptionstatic <E extends Entity,S extends EntityRenderState>
voidRenderStateExtensions.onUpdateEntityRenderState(EntityRenderer<E, S> renderer, E entity, S renderState) <E extends Entity,S extends EntityRenderState>
voidRegisterRenderStateModifiersEvent.registerEntityModifier(TypeToken<? extends EntityRenderer<? extends E, ? extends S>> baseRenderer, BiConsumer<E, S> modifier) Registers a render state modifier forEntityRenderStates which are run after all vanilla data is extracted.<E extends Entity,S extends EntityRenderState>
voidRegisterRenderStateModifiersEvent.registerEntityModifier(Class<? extends EntityRenderer<? extends E, ? extends S>> baseRenderer, BiConsumer<E, S> modifier) Convenience method for cases where generics are not present.Method parameters in net.neoforged.neoforge.client.renderstate with type arguments of type EntityModifier and TypeMethodDescriptionprivate static voidRegisterRenderStateModifiersEvent.ensureParametersMatchBounds(TypeToken<? extends EntityRenderer<? extends Entity, ? extends EntityRenderState>> baseRenderer) -
Uses of Entity in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type EntityModifier and TypeMethodDescriptionstatic booleanCommonHooks.canMobEffectBeApplied(LivingEntity entity, MobEffectInstance effect, @Nullable Entity source) Checks if a mob effect can be applied to an entity by firingMobEffectEvent.Applicable.static CriticalHitEventCommonHooks.fireCriticalHit(Player player, Entity target, boolean vanillaCritical, float damageModifier) Fires theCriticalHitEventand returns the resulting event.static SweepAttackEventCommonHooks.fireSweepAttack(Player player, Entity target, boolean isVanillaSweep) Fires theSweepAttackEventand returns the resulting event.IMinecartCollisionHandler.getCollisionBox(AbstractMinecart cart, Entity other) This function replaced the function of the same name in EntityMinecart.static doubleCommonHooks.getEntityVisibilityMultiplier(LivingEntity entity, Entity lookingEntity, double originalMultiplier) @Nullable MerchantOfferBasicItemListing.getOffer(ServerLevel level, 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 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 voidSame asGameTestHelper.fail(Component, Entity), but for untranslated messages.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.default voidIServerChunkCacheExtension.sendToTrackingPlayers(Entity entity, CustomPacketPayload payload) Sends a payload to all players watching the given entity.default voidIServerChunkCacheExtension.sendToTrackingPlayersAndSelf(Entity entity, CustomPacketPayload payload) Sends a payload to all players watching the given entity. -
Uses of Entity in net.neoforged.neoforge.common.util
Subclasses of Entity in net.neoforged.neoforge.common.utilModifier and TypeClassDescriptionclassA basic fake server player implementation that can be used to simulate player actions.Methods in net.neoforged.neoforge.common.util with parameters of type EntityModifier and TypeMethodDescriptionbooleanFakePlayer.startRiding(Entity p_277395_, boolean p_278062_, boolean p_434333_) -
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, @Nullable 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