Uses of Class
net.minecraft.world.entity.Entity
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of Entity in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionstatic LootContext
EntityPredicate.createContext
(ServerPlayer p_36617_, Entity p_36618_) static CompoundTag
NbtPredicate.getEntityTagToCompare
(Entity p_57486_) boolean
boolean
boolean
EntityPredicate.matches
(ServerLevel p_36608_, Vec3 p_36609_, Entity p_36610_) boolean
EntityPredicate.matches
(ServerPlayer p_36612_, Entity p_36613_) boolean
EntitySubPredicate.matches
(Entity p_218828_, ServerLevel p_218829_, Vec3 p_218830_) boolean
FishingHookPredicate.matches
(Entity p_219716_, ServerLevel p_219717_, Vec3 p_219718_) boolean
LighthingBoltPredicate.matches
(Entity p_153247_, ServerLevel p_153248_, Vec3 p_153249_) boolean
boolean
boolean
PlayerPredicate.matches
(Entity p_222484_, ServerLevel p_222485_, Vec3 p_222486_) boolean
SlimePredicate.matches
(Entity p_223423_, ServerLevel p_223424_, Vec3 p_223425_) void
EffectsChangedTrigger.trigger
(ServerPlayer p_149263_, Entity p_149264_) void
KilledTrigger.trigger
(ServerPlayer p_48105_, Entity p_48106_, DamageSource p_48107_) void
PickedUpItemTrigger.trigger
(ServerPlayer p_221299_, ItemStack p_221300_, Entity p_221301_) void
PlayerHurtEntityTrigger.trigger
(ServerPlayer p_60113_, Entity p_60114_, DamageSource p_60115_, float p_60116_, float p_60117_, boolean p_60118_) void
PlayerInteractTrigger.trigger
(ServerPlayer p_61495_, ItemStack p_61496_, Entity p_61497_) void
SummonedEntityTrigger.trigger
(ServerPlayer p_68257_, Entity p_68258_) void
TargetBlockTrigger.trigger
(ServerPlayer p_70212_, Entity p_70213_, Vec3 p_70214_, int p_70215_) Modifier and TypeMethodDescriptionstatic <V> EntityVariantPredicate<V>
void
ChanneledLightningTrigger.trigger
(ServerPlayer p_21722_, Collection<? extends Entity> p_21723_) void
KilledByCrossbowTrigger.trigger
(ServerPlayer p_46872_, Collection<Entity> p_46873_) void
LightningStrikeTrigger.trigger
(ServerPlayer p_153392_, LightningBolt p_153393_, List<Entity> p_153394_) -
Uses of Entity in net.minecraft.client
Modifier and TypeFieldDescriptionMinecraft.cameraEntity
Minecraft.crosshairPickEntity
private Entity
Camera.entity
Modifier and TypeMethodDescriptionvoid
Minecraft.setCameraEntity
(Entity p_91119_) void
Camera.setup
(BlockGetter p_90576_, Entity p_90577_, boolean p_90578_, boolean p_90579_, float p_90580_) boolean
Minecraft.shouldEntityAppearGlowing
(Entity p_91315_) -
Uses of Entity in net.minecraft.client.gui
Modifier and TypeMethodDescriptionvoid
Gui.renderVignette
(Entity p_93068_) private void
Gui.updateVignetteBrightness
(Entity p_93021_) -
Uses of Entity in net.minecraft.client.model
Modifier and TypeClassDescriptionclass
AgeableListModel<E extends Entity>
class
BlazeModel<T extends Entity>
class
ChickenModel<T extends Entity>
class
class
ColorableAgeableListModel<E extends Entity>
class
ColorableHierarchicalModel<E extends Entity>
class
class
CreeperModel<T extends Entity>
class
DolphinModel<T extends Entity>
class
EndermiteModel<T extends Entity>
class
EntityModel<T extends Entity>
class
EvokerFangsModel<T extends Entity>
class
GhastModel<T extends Entity>
class
HierarchicalModel<E extends Entity>
class
LeashKnotModel<T extends Entity>
class
class
LlamaSpitModel<T extends Entity>
class
MinecartModel<T extends Entity>
class
OcelotModel<T extends Entity>
class
class
PufferfishBigModel<T extends Entity>
class
PufferfishMidModel<T extends Entity>
class
PufferfishSmallModel<T extends Entity>
class
QuadrupedModel<T extends Entity>
class
SalmonModel<T extends Entity>
class
ShulkerBulletModel<T extends Entity>
class
SilverfishModel<T extends Entity>
class
SlimeModel<T extends Entity>
class
SnowGolemModel<T extends Entity>
class
SpiderModel<T extends Entity>
class
SquidModel<T extends Entity>
class
TropicalFishModelA<T extends Entity>
class
TropicalFishModelB<T extends Entity>
class
VillagerModel<T extends Entity>
class
WitchModel<T extends Entity>
-
Uses of Entity in net.minecraft.client.multiplayer
Modifier and TypeFieldDescriptionprivate final TransientEntitySectionManager<Entity>
ClientLevel.entityStorage
Modifier and TypeMethodDescriptionClientLevel.entitiesForRendering()
protected LevelEntityGetter<Entity>
ClientLevel.getEntities()
Modifier and TypeMethodDescriptionprivate void
void
MultiPlayerGameMode.interact
(Player p_105227_, Entity p_105228_, InteractionHand p_105229_) MultiPlayerGameMode.interactAt
(Player p_105231_, Entity p_105232_, EntityHitResult p_105233_, InteractionHand p_105234_) void
void
ClientLevel.EntityCallbacks.onDestroyed
(Entity p_171700_) void
ClientLevel.EntityCallbacks.onSectionChange
(Entity p_233660_) void
ClientLevel.EntityCallbacks.onTickingEnd
(Entity p_171708_) void
ClientLevel.EntityCallbacks.onTickingStart
(Entity p_171704_) void
ClientLevel.EntityCallbacks.onTrackingEnd
(Entity p_171716_) void
ClientLevel.EntityCallbacks.onTrackingStart
(Entity p_171712_) void
ClientLevel.playSeededSound
(Player p_233631_, Entity p_233632_, SoundEvent p_233633_, SoundSource p_233634_, float p_233635_, float p_233636_, long p_233637_) private void
ClientPacketListener.postAddEntitySoundInstance
(Entity p_233664_) void
ClientLevel.putNonPlayerEntity
(int p_104628_, Entity p_104629_) boolean
ClientLevel.shouldTickDeath
(Entity p_194185_) void
ClientLevel.tickNonPassenger
(Entity p_104640_) private void
ClientLevel.tickPassenger
(Entity p_104642_, Entity p_104643_) -
Uses of Entity in net.minecraft.client.particle
Modifier and TypeFieldDescriptionprivate final Entity
TrackingEmitter.entity
private final Entity
ItemPickupParticle.itemEntity
private final Entity
ItemPickupParticle.target
Modifier and TypeMethodDescriptionprivate Entity
ItemPickupParticle.getSafeCopy
(Entity p_107037_) Modifier and TypeMethodDescriptionvoid
ParticleEngine.createTrackingEmitter
(Entity p_107330_, ParticleOptions p_107331_) void
ParticleEngine.createTrackingEmitter
(Entity p_107333_, ParticleOptions p_107334_, int p_107335_) private Entity
ItemPickupParticle.getSafeCopy
(Entity p_107037_) ModifierConstructorDescriptionItemPickupParticle
(EntityRenderDispatcher p_107023_, RenderBuffers p_107024_, ClientLevel p_107025_, Entity p_107026_, Entity p_107027_) private
ItemPickupParticle
(EntityRenderDispatcher p_107029_, RenderBuffers p_107030_, ClientLevel p_107031_, Entity p_107032_, Entity p_107033_, Vec3 p_107034_) TrackingEmitter
(ClientLevel p_108390_, Entity p_108391_, ParticleOptions p_108392_) TrackingEmitter
(ClientLevel p_108394_, Entity p_108395_, ParticleOptions p_108396_, int p_108397_) private
TrackingEmitter
(ClientLevel p_108399_, Entity p_108400_, ParticleOptions p_108401_, int p_108402_, Vec3 p_108403_) -
Uses of Entity in net.minecraft.client.player
-
Uses of Entity in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionvoid
GameRenderer.checkEntityPostEffect
(Entity p_109107_) private static FogRenderer.MobEffectFogFunction
FogRenderer.getPriorityFogFunction
(Entity p_234166_, float p_234167_) private void
LevelRenderer.renderEntity
(Entity p_109518_, double p_109519_, double p_109520_, double p_109521_, float p_109522_, PoseStack p_109523_, MultiBufferSource p_109524_) private void
LevelRenderer.renderHitOutline
(PoseStack p_109638_, VertexConsumer p_109639_, Entity p_109640_, double p_109641_, double p_109642_, double p_109643_, BlockPos p_109644_, BlockState p_109645_) -
Uses of Entity in net.minecraft.client.renderer.debug
Modifier and TypeMethodDescriptionDebugRenderer.getTargetedEntity
(Entity p_113449_, int p_113450_) Modifier and TypeMethodDescriptionDebugRenderer.getTargetedEntity
(Entity p_113449_, int p_113450_) -
Uses of Entity in net.minecraft.client.renderer.entity
Modifier and TypeClassDescriptionclass
EntityRenderer<T extends Entity>
interface
EntityRendererProvider<T extends Entity>
class
NoopRenderer<T extends Entity>
interface
RenderLayerParent<T extends Entity,
M extends EntityModel<T>> class
ThrownItemRenderer<T extends Entity & ItemSupplier>
Modifier and TypeMethodDescription<E extends Entity>
intEntityRenderDispatcher.getPackedLightCoords
(E p_114395_, float p_114396_) <T extends Entity>
EntityRenderer<? super T>EntityRenderDispatcher.getRenderer
(T p_114383_) static <T extends Entity>
voidEntityRenderers.register
(EntityType<? extends T> p_174037_, EntityRendererProvider<T> p_174038_) <E extends Entity>
voidEntityRenderDispatcher.render
(E p_114385_, double p_114386_, double p_114387_, double p_114388_, float p_114389_, float p_114390_, PoseStack p_114391_, MultiBufferSource p_114392_, int p_114393_) private <E extends Entity>
voidMobRenderer.renderLeash
(T p_115462_, float p_115463_, PoseStack p_115464_, MultiBufferSource p_115465_, E p_115466_) <E extends Entity>
booleanEntityRenderDispatcher.shouldRender
(E p_114398_, Frustum p_114399_, double p_114400_, double p_114401_, double p_114402_) Modifier and TypeMethodDescriptiondouble
EntityRenderDispatcher.distanceToSqr
(Entity p_114472_) ThrownItemRenderer.getTextureLocation
(Entity p_116083_) void
private void
EntityRenderDispatcher.renderFlame
(PoseStack p_114454_, MultiBufferSource p_114455_, Entity p_114456_) private static void
EntityRenderDispatcher.renderHitbox
(PoseStack p_114442_, VertexConsumer p_114443_, Entity p_114444_, float p_114445_) private static void
EntityRenderDispatcher.renderShadow
(PoseStack p_114458_, MultiBufferSource p_114459_, Entity p_114460_, float p_114461_, float p_114462_, LevelReader p_114463_, float p_114464_) -
Uses of Entity in net.minecraft.client.renderer.entity.layers
Modifier and TypeClassDescriptionclass
EnergySwirlLayer<T extends Entity & PowerableMob,
M extends EntityModel<T>> class
EyesLayer<T extends Entity,
M extends EntityModel<T>> class
RenderLayer<T extends Entity,
M extends EntityModel<T>> class
SaddleLayer<T extends Entity & Saddleable,
M extends EntityModel<T>> class
SpiderEyesLayer<T extends Entity,
M extends SpiderModel<T>> Modifier and TypeMethodDescriptionHumanoidArmorLayer.getArmorResource
(Entity entity, ItemStack stack, EquipmentSlot slot, String type) More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.protected void
ArrowLayer.renderStuckItem
(PoseStack p_116569_, MultiBufferSource p_116570_, int p_116571_, Entity p_116572_, float p_116573_, float p_116574_, float p_116575_, float p_116576_) protected void
BeeStingerLayer.renderStuckItem
(PoseStack p_116584_, MultiBufferSource p_116585_, int p_116586_, Entity p_116587_, float p_116588_, float p_116589_, float p_116590_, float p_116591_) protected abstract void
StuckInBodyLayer.renderStuckItem
(PoseStack p_117566_, MultiBufferSource p_117567_, int p_117568_, Entity p_117569_, float p_117570_, float p_117571_, float p_117572_, float p_117573_) -
Uses of Entity in net.minecraft.client.renderer.item
Modifier and TypeMethodDescriptionprivate double
CompassItemPropertyFunction.getAngleFromEntityToPos
(Entity p_234949_, BlockPos p_234950_) private float
CompassItemPropertyFunction.getCompassRotation
(ItemStack p_234955_, ClientLevel p_234956_, int p_234957_, Entity p_234958_) CompassItemPropertyFunction.CompassTarget.getPos
(ClientLevel p_234965_, ItemStack p_234966_, Entity p_234967_) private float
CompassItemPropertyFunction.getRotationTowardsCompassTarget
(Entity p_234942_, long p_234943_, BlockPos p_234944_) private double
CompassItemPropertyFunction.getWrappedVisualRotationY
(Entity p_234940_) private boolean
CompassItemPropertyFunction.isValidCompassTargetPos
(Entity p_234952_, GlobalPos p_234953_) private ClientLevel
CompassItemPropertyFunction.tryFetchLevelIfMissing
(Entity p_234946_, ClientLevel p_234947_) -
Uses of Entity in net.minecraft.client.resources.sounds
ModifierConstructorDescriptionEntityBoundSoundInstance
(SoundEvent p_235080_, SoundSource p_235081_, float p_235082_, float p_235083_, Entity p_235084_, long p_235085_) -
Uses of Entity in net.minecraft.commands
Modifier and TypeMethodDescriptionCommandSourceStack.getEntity()
CommandSourceStack.getEntityOrException()
Modifier and TypeMethodDescriptionCommandSourceStack.facing
(Entity p_81332_, EntityAnchorArgument.Anchor p_81333_) CommandSourceStack.withEntity
(Entity p_81330_) ModifierConstructorDescriptionCommandSourceStack
(CommandSource p_81302_, Vec3 p_81303_, Vec2 p_81304_, ServerLevel p_81305_, int p_81306_, String p_81307_, Component p_81308_, MinecraftServer p_81309_, Entity p_81310_) protected
CommandSourceStack
(CommandSource p_242362_, Vec3 p_242272_, Vec2 p_242166_, ServerLevel p_242273_, int p_242279_, String p_242187_, Component p_242467_, MinecraftServer p_242416_, Entity p_242300_, boolean p_242243_, com.mojang.brigadier.ResultConsumer<CommandSourceStack> p_242375_, EntityAnchorArgument.Anchor p_242201_, CommandSigningContext p_242188_, TaskChainer p_242249_) -
Uses of Entity in net.minecraft.commands.arguments
Modifier and TypeFieldDescriptionprivate final BiFunction<Vec3,
Entity, Vec3> EntityAnchorArgument.Anchor.transform
Modifier and TypeMethodDescriptionstatic Entity
EntityArgument.getEntity
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_91453_, String p_91454_) Modifier and TypeMethodDescriptionstatic Collection<? extends Entity>
EntityArgument.getEntities
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_91462_, String p_91463_) static Collection<? extends Entity>
EntityArgument.getOptionalEntities
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_91468_, String p_91469_) -
Uses of Entity in net.minecraft.commands.arguments.selector
Modifier and TypeFieldDescriptionprivate static final EntityTypeTest<Entity,
?> EntitySelector.ANY_TYPE
private final BiConsumer<Vec3,
List<? extends Entity>> EntitySelector.order
private BiConsumer<Vec3,
List<? extends Entity>> EntitySelectorParser.order
static final BiConsumer<Vec3,
List<? extends Entity>> EntitySelectorParser.ORDER_ARBITRARY
static final BiConsumer<Vec3,
List<? extends Entity>> EntitySelectorParser.ORDER_FURTHEST
static final BiConsumer<Vec3,
List<? extends Entity>> EntitySelectorParser.ORDER_NEAREST
static final BiConsumer<Vec3,
List<? extends Entity>> EntitySelectorParser.ORDER_RANDOM
EntitySelector.predicate
EntitySelectorParser.predicate
private EntityTypeTest<Entity,
?> EntitySelector.type
Modifier and TypeMethodDescriptionEntitySelectorParser.createRotationPredicate
(WrappedMinMaxBounds p_121255_, ToDoubleFunction<Entity> p_121256_) EntitySelector.findEntities
(CommandSourceStack p_121161_) BiConsumer<Vec3,
List<? extends Entity>> EntitySelectorParser.getOrder()
EntitySelector.getPredicate
(Vec3 p_121145_) Modifier and TypeMethodDescriptionprivate void
EntitySelector.addEntities
(List<Entity> p_121155_, ServerLevel p_121156_, Vec3 p_121157_, Predicate<Entity> p_121158_) private void
EntitySelector.addEntities
(List<Entity> p_121155_, ServerLevel p_121156_, Vec3 p_121157_, Predicate<Entity> p_121158_) void
EntitySelectorParser.addPredicate
(Predicate<Entity> p_121273_) EntitySelectorParser.createRotationPredicate
(WrappedMinMaxBounds p_121255_, ToDoubleFunction<Entity> p_121256_) static Component
void
EntitySelectorParser.setOrder
(BiConsumer<Vec3, List<? extends Entity>> p_121269_) ModifierConstructorDescriptionEntitySelector
(int p_121125_, boolean p_121126_, boolean p_121127_, Predicate<Entity> p_121128_, MinMaxBounds.Doubles p_121129_, Function<Vec3, Vec3> p_121130_, AABB p_121131_, BiConsumer<Vec3, List<? extends Entity>> p_121132_, boolean p_121133_, String p_121134_, UUID p_121135_, EntityType<?> p_121136_, boolean p_121137_) EntitySelector
(int p_121125_, boolean p_121126_, boolean p_121127_, Predicate<Entity> p_121128_, MinMaxBounds.Doubles p_121129_, Function<Vec3, Vec3> p_121130_, AABB p_121131_, BiConsumer<Vec3, List<? extends Entity>> p_121132_, boolean p_121133_, String p_121134_, UUID p_121135_, EntityType<?> p_121136_, boolean p_121137_) -
Uses of Entity in net.minecraft.core
Modifier and TypeMethodDescriptionstatic Direction
Direction.getFacingAxis
(Entity p_175358_, Direction.Axis p_175359_) static Direction[]
Direction.orderedByNearest
(Entity p_122383_) -
Uses of Entity in net.minecraft.core.dispenser
Modifier and TypeMethodDescriptionstatic void
DispenseItemBehavior.setEntityPokingOutOfBlock
(BlockSource p_123396_, Entity p_123397_, Direction p_123398_) -
Uses of Entity in net.minecraft.gametest.framework
Modifier and TypeMethodDescription<E extends Entity,
T>
voidGameTestHelper.assertEntityData
(BlockPos p_177238_, EntityType<E> p_177239_, Function<? super E, T> p_177240_, T p_177241_) <E extends Entity,
T>
voidGameTestHelper.assertEntityProperty
(E p_177148_, Function<E, T> p_177149_, String p_177150_, T p_177151_) <E extends Entity>
voidGameTestHelper.assertEntityProperty
(E p_177153_, Predicate<E> p_177154_, String p_177155_) GameTestHelper.getEntities
(EntityType<T> p_238400_, BlockPos p_238401_, double p_238402_) <E extends Entity>
EGameTestHelper.spawn
(EntityType<E> p_177164_, float p_177165_, float p_177166_, float p_177167_) <E extends Entity>
EGameTestHelper.spawn
(EntityType<E> p_177169_, int p_177170_, int p_177171_, int p_177172_) <E extends Entity>
EGameTestHelper.spawn
(EntityType<E> p_177177_, BlockPos p_177178_) <E extends Entity>
EGameTestHelper.spawn
(EntityType<E> p_177174_, Vec3 p_177175_) <E extends Entity,
T>
voidGameTestHelper.succeedWhenEntityData
(BlockPos p_177350_, EntityType<E> p_177351_, Function<E, T> p_177352_, T p_177353_) Modifier and TypeMethodDescriptionvoid
GameTestHelper.assertEntityInstancePresent
(Entity p_177133_, int p_177134_, int p_177135_, int p_177136_) void
GameTestHelper.assertEntityInstancePresent
(Entity p_177141_, BlockPos p_177142_) void
-
Uses of Entity in net.minecraft.network.chat
Modifier and TypeMethodDescriptionstatic ChatType.Bound
ChatType.bind
(ResourceKey<ChatType> p_241279_, Entity p_241483_) default MutableComponent
ComponentContents.resolve
(CommandSourceStack p_237126_, Entity p_237127_, int p_237128_) private static Style
ComponentUtils.resolveStyle
(CommandSourceStack p_130737_, Style p_130738_, Entity p_130739_, int p_130740_) static Optional<MutableComponent>
ComponentUtils.updateForEntity
(CommandSourceStack p_178425_, Optional<Component> p_178426_, Entity p_178427_, int p_178428_) static MutableComponent
ComponentUtils.updateForEntity
(CommandSourceStack p_130732_, Component p_130733_, Entity p_130734_, int p_130735_) -
Uses of Entity in net.minecraft.network.chat.contents
Modifier and TypeMethodDescriptionNbtContents.resolve
(CommandSourceStack p_237401_, Entity p_237402_, int p_237403_) ScoreContents.resolve
(CommandSourceStack p_237444_, Entity p_237445_, int p_237446_) SelectorContents.resolve
(CommandSourceStack p_237468_, Entity p_237469_, int p_237470_) TranslatableContents.resolve
(CommandSourceStack p_237512_, Entity p_237513_, int p_237514_) -
Uses of Entity in net.minecraft.network.protocol.game
Modifier and TypeMethodDescriptionServerboundTeleportToEntityPacket.getEntity
(ServerLevel p_134682_) ServerboundInteractPacket.getTarget
(ServerLevel p_179604_) Modifier and TypeMethodDescriptionstatic ServerboundInteractPacket
ServerboundInteractPacket.createAttackPacket
(Entity p_179606_, boolean p_179607_) static ServerboundInteractPacket
ServerboundInteractPacket.createInteractionPacket
(Entity p_179609_, boolean p_179610_, InteractionHand p_179611_) static ServerboundInteractPacket
ServerboundInteractPacket.createInteractionPacket
(Entity p_179613_, boolean p_179614_, InteractionHand p_179615_, Vec3 p_179616_) static String
DebugEntityNameGenerator.getEntityName
(Entity p_179487_) ModifierConstructorDescriptionClientboundAddEntityPacket
(Entity p_131481_) ClientboundAddEntityPacket
(Entity p_131483_, int p_131484_) ClientboundAddEntityPacket
(Entity p_237558_, int p_237559_, BlockPos p_237560_) ClientboundAnimatePacket
(Entity p_131616_, int p_131617_) ClientboundEntityEventPacket
(Entity p_132092_, byte p_132093_) ClientboundMoveVehiclePacket
(Entity p_132584_) ClientboundPlayerLookAtPacket
(EntityAnchorArgument.Anchor p_132782_, Entity p_132783_, EntityAnchorArgument.Anchor p_132784_) ClientboundRotateHeadPacket
(Entity p_132967_, byte p_132968_) ClientboundSetCameraPacket
(Entity p_133058_) ClientboundSetEntityLinkPacket
(Entity p_133164_, Entity p_133165_) ClientboundSetEntityMotionPacket
(Entity p_133185_) ClientboundSetPassengersPacket
(Entity p_133276_) ClientboundSoundEntityPacket
(SoundEvent p_237831_, SoundSource p_237832_, Entity p_237833_, float p_237834_, float p_237835_, long p_237836_) ClientboundTeleportEntityPacket
(Entity p_133538_) ServerboundMoveVehiclePacket
(Entity p_134192_) ServerboundPlayerCommandPacket
(Entity p_134306_, ServerboundPlayerCommandPacket.Action p_134307_) ServerboundPlayerCommandPacket
(Entity p_134309_, ServerboundPlayerCommandPacket.Action p_134310_, int p_134311_) -
Uses of Entity in net.minecraft.network.syncher
Modifier and TypeMethodDescriptionstatic <T> EntityDataAccessor<T>
SynchedEntityData.defineId
(Class<? extends Entity> p_135354_, EntityDataSerializer<T> p_135355_) -
Uses of Entity in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static int
AttributeCommand.addModifier
(CommandSourceStack p_136470_, Entity p_136471_, Attribute p_136472_, UUID p_136473_, String p_136474_, double p_136475_, AttributeModifier.Operation p_136476_) private static int
LootCommand.dropKillLoot
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137906_, Entity p_137907_, LootCommand.DropConsumer p_137908_) private static int
ItemCommands.entityToBlock
(CommandSourceStack p_180258_, Entity p_180259_, int p_180260_, BlockPos p_180261_, int p_180262_) private static int
ItemCommands.entityToBlock
(CommandSourceStack p_180264_, Entity p_180265_, int p_180266_, BlockPos p_180267_, int p_180268_, LootItemFunction p_180269_) private static int
ItemCommands.entityToEntities
(CommandSourceStack p_180271_, Entity p_180272_, int p_180273_, Collection<? extends Entity> p_180274_, int p_180275_) private static int
ItemCommands.entityToEntities
(CommandSourceStack p_180277_, Entity p_180278_, int p_180279_, Collection<? extends Entity> p_180280_, int p_180281_, LootItemFunction p_180282_) private static int
AttributeCommand.getAttributeBase
(CommandSourceStack p_136492_, Entity p_136493_, Attribute p_136494_, double p_136495_) private static AttributeInstance
AttributeCommand.getAttributeInstance
(Entity p_136442_, Attribute p_136443_) private static int
AttributeCommand.getAttributeModifier
(CommandSourceStack p_136464_, Entity p_136465_, Attribute p_136466_, UUID p_136467_, double p_136468_) private static int
AttributeCommand.getAttributeValue
(CommandSourceStack p_136454_, Entity p_136455_, Attribute p_136456_, double p_136457_) private static ItemStack
ItemCommands.getEntityItem
(Entity p_180246_, int p_180247_) private static LivingEntity
AttributeCommand.getEntityWithAttribute
(Entity p_136487_, Attribute p_136488_) private static LivingEntity
AttributeCommand.getLivingEntity
(Entity p_136440_) void
TeleportCommand.LookAt.perform
(CommandSourceStack p_139061_, Entity p_139062_) private static void
TeleportCommand.performTeleport
(CommandSourceStack p_139015_, Entity p_139016_, ServerLevel p_139017_, double p_139018_, double p_139019_, double p_139020_, Set<ClientboundPlayerPositionPacket.RelativeArgument> p_139021_, float p_139022_, float p_139023_, TeleportCommand.LookAt p_139024_) private static int
AttributeCommand.removeModifier
(CommandSourceStack p_136459_, Entity p_136460_, Attribute p_136461_, UUID p_136462_) private static int
AttributeCommand.setAttributeBase
(CommandSourceStack p_136503_, Entity p_136504_, Attribute p_136505_, double p_136506_) private static void
LootCommand.setSlots
(Entity p_137889_, List<ItemStack> p_137890_, int p_137891_, int p_137892_, List<ItemStack> p_137893_) private static int
SpectateCommand.spectate
(CommandSourceStack p_138684_, Entity p_138685_, ServerPlayer p_138686_) private static int
TeleportCommand.teleportToEntity
(CommandSourceStack p_139033_, Collection<? extends Entity> p_139034_, Entity p_139035_) Modifier and TypeMethodDescriptionprivate static int
TagCommand.addTag
(CommandSourceStack p_138849_, Collection<? extends Entity> p_138850_, String p_138851_) private static int
ItemCommands.blockToEntities
(CommandSourceStack p_180315_, BlockPos p_180316_, int p_180317_, Collection<? extends Entity> p_180318_, int p_180319_) private static int
ItemCommands.blockToEntities
(CommandSourceStack p_180321_, BlockPos p_180322_, int p_180323_, Collection<? extends Entity> p_180324_, int p_180325_, LootItemFunction p_180326_) private static int
EffectCommands.clearEffect
(CommandSourceStack p_136963_, Collection<? extends Entity> p_136964_, MobEffect p_136965_) private static int
EffectCommands.clearEffects
(CommandSourceStack p_136960_, Collection<? extends Entity> p_136961_) private static int
EnchantCommand.enchant
(CommandSourceStack p_137015_, Collection<? extends Entity> p_137016_, Enchantment p_137017_, int p_137018_) private static int
LootCommand.entityReplace
(Collection<? extends Entity> p_137979_, int p_137980_, int p_137981_, List<ItemStack> p_137982_, LootCommand.Callback p_137983_) private static int
ItemCommands.entityToEntities
(CommandSourceStack p_180271_, Entity p_180272_, int p_180273_, Collection<? extends Entity> p_180274_, int p_180275_) private static int
ItemCommands.entityToEntities
(CommandSourceStack p_180277_, Entity p_180278_, int p_180279_, Collection<? extends Entity> p_180280_, int p_180281_, LootItemFunction p_180282_) private static int
SpreadPlayersCommand.getNumberOfTeams
(Collection<? extends Entity> p_138728_) private static Collection<String>
TagCommand.getTags
(Collection<? extends Entity> p_138853_) private static int
EffectCommands.giveEffect
(CommandSourceStack p_136967_, Collection<? extends Entity> p_136968_, MobEffect p_136969_, Integer p_136970_, int p_136971_, boolean p_136972_) private static int
KillCommand.kill
(CommandSourceStack p_137814_, Collection<? extends Entity> p_137815_) private static int
TagCommand.listTags
(CommandSourceStack p_138846_, Collection<? extends Entity> p_138847_) private static int
ItemCommands.modifyEntityItem
(CommandSourceStack p_180337_, Collection<? extends Entity> p_180338_, int p_180339_, LootItemFunction p_180340_) private static int
TagCommand.removeTag
(CommandSourceStack p_138857_, Collection<? extends Entity> p_138858_, String p_138859_) private static int
ItemCommands.setEntityItem
(CommandSourceStack p_180332_, Collection<? extends Entity> p_180333_, int p_180334_, ItemStack p_180335_) private static double
SpreadPlayersCommand.setPlayerPositions
(Collection<? extends Entity> p_138730_, ServerLevel p_138731_, SpreadPlayersCommand.Position[] p_138732_, int p_138733_, boolean p_138734_) private static int
SpreadPlayersCommand.spreadPlayers
(CommandSourceStack p_138703_, Vec2 p_138704_, float p_138705_, float p_138706_, int p_138707_, boolean p_138708_, Collection<? extends Entity> p_138709_) private static int
TeleportCommand.teleportToEntity
(CommandSourceStack p_139033_, Collection<? extends Entity> p_139034_, Entity p_139035_) private static int
TeleportCommand.teleportToPos
(CommandSourceStack p_139026_, Collection<? extends Entity> p_139027_, ServerLevel p_139028_, Coordinates p_139029_, Coordinates p_139030_, TeleportCommand.LookAt p_139031_) -
Uses of Entity in net.minecraft.server.commands.data
-
Uses of Entity in net.minecraft.server.level
Modifier and TypeFieldDescriptionprivate Entity
ServerPlayer.camera
(package private) final Entity
ChunkMap.TrackedEntity.entity
private final Entity
ServerEntity.entity
Modifier and TypeFieldDescriptionprivate final PersistentEntitySectionManager<Entity>
ServerLevel.entityManager
ServerEntity.lastPassengers
Modifier and TypeMethodDescriptionServerLevel.getEntities
(EntityTypeTest<Entity, T> p_143281_, Predicate<? super T> p_143282_) WorldGenRegion.getEntities
(EntityTypeTest<Entity, T> p_143494_, AABB p_143495_, Predicate<? super T> p_143496_) Modifier and TypeMethodDescriptionServerPlayer.changeDimension
(ServerLevel p_9180_, ITeleporter teleporter) ServerPlayer.getCamera()
ServerLevel.getEntity
(int p_8597_) ServerLevel.getEntityOrPart
(int p_143318_) Deprecated.Modifier and TypeMethodDescriptionServerLevel.getAllEntities()
ServerLevel.getEntities()
WorldGenRegion.getEntities
(Entity p_9519_, AABB p_9520_, Predicate<? super Entity> p_9521_) Modifier and TypeMethodDescriptionvoid
ServerLevel.addDuringTeleport
(Entity p_143335_) protected void
void
private boolean
boolean
ServerLevel.addFreshEntity
(Entity p_8837_) boolean
WorldGenRegion.addFreshEntity
(Entity p_9580_) boolean
ServerLevel.addWithUUID
(Entity p_8848_) void
void
ServerPlayer.awardKillScore
(Entity p_9050_, int p_9051_, DamageSource p_9052_) void
void
protected void
ChunkMap.broadcastAndSend
(Entity p_140334_, Packet<?> p_140335_) void
ServerChunkCache.broadcastAndSend
(Entity p_8395_, Packet<?> p_8396_) void
ServerLevel.broadcastEntityEvent
(Entity p_8650_, byte p_8651_) void
boolean
WorldGenRegion.destroyBlock
(BlockPos p_9550_, boolean p_9551_, Entity p_9552_, int p_9553_) private static double
ChunkMap.euclideanDistanceSquared
(ChunkPos p_140227_, Entity p_140228_) ServerLevel.explode
(Entity p_8653_, DamageSource p_8654_, ExplosionDamageCalculator p_8655_, double p_8656_, double p_8657_, double p_8658_, float p_8659_, boolean p_8660_, Explosion.BlockInteraction p_8661_) WorldGenRegion.getEntities
(Entity p_9519_, AABB p_9520_, Predicate<? super Entity> p_9521_) void
ServerPlayer.lookAt
(EntityAnchorArgument.Anchor p_9108_, Entity p_9109_, EntityAnchorArgument.Anchor p_9110_) void
void
void
ServerLevel.EntityCallbacks.onDestroyed
(Entity p_143359_) protected void
ServerPlayer.onEffectAdded
(MobEffectInstance p_143393_, Entity p_143394_) protected void
ServerPlayer.onEffectUpdated
(MobEffectInstance p_143396_, boolean p_143397_, Entity p_143398_) void
ServerLevel.onReputationEvent
(ReputationEventType p_8671_, Entity p_8672_, ReputationEventHandler p_8673_) void
ServerLevel.EntityCallbacks.onSectionChange
(Entity p_215086_) void
ServerLevel.EntityCallbacks.onTickingEnd
(Entity p_143367_) void
ServerLevel.EntityCallbacks.onTickingStart
(Entity p_143363_) void
ServerLevel.EntityCallbacks.onTrackingEnd
(Entity p_143375_) void
ServerLevel.EntityCallbacks.onTrackingStart
(Entity p_143371_) void
ServerLevel.playSeededSound
(Player p_215027_, Entity p_215028_, SoundEvent p_215029_, SoundSource p_215030_, float p_215031_, float p_215032_, long p_215033_) protected void
ChunkMap.removeEntity
(Entity p_140332_) void
ServerChunkCache.removeEntity
(Entity p_8444_) void
private boolean
ServerLevel.shouldDiscardEntity
(Entity p_143343_) boolean
ServerPlayer.startRiding
(Entity p_9054_, boolean p_9055_) void
void
ServerLevel.tickNonPassenger
(Entity p_8648_) private void
ServerLevel.tickPassenger
(Entity p_8663_, Entity p_8664_) boolean
ServerLevel.tryAddFreshEntityWithPassengers
(Entity p_8861_) Modifier and TypeMethodDescriptionvoid
ServerLevel.addLegacyChunkEntities
(Stream<Entity> p_143312_) void
ServerLevel.addWorldGenChunkEntities
(Stream<Entity> p_143328_) private static void
ServerLevel.dumpEntities
(Writer p_8782_, Iterable<Entity> p_8783_) ServerLevel.getEntities
(EntityTypeTest<Entity, T> p_143281_, Predicate<? super T> p_143282_) WorldGenRegion.getEntities
(Entity p_9519_, AABB p_9520_, Predicate<? super Entity> p_9521_) WorldGenRegion.getEntities
(EntityTypeTest<Entity, T> p_143494_, AABB p_143495_, Predicate<? super T> p_143496_) WorldGenRegion.getNearestPlayer
(double p_9501_, double p_9502_, double p_9503_, double p_9504_, Predicate<Entity> p_9505_) ModifierConstructorDescriptionServerEntity
(ServerLevel p_8528_, Entity p_8529_, int p_8530_, boolean p_8531_, Consumer<Packet<?>> p_8532_) TrackedEntity
(Entity p_140478_, int p_140479_, int p_140480_, boolean p_140481_) -
Uses of Entity in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate boolean
ServerGamePacketListenerImpl.noBlocksAround
(Entity p_9794_) ServerGamePacketListenerImpl.EntityInteraction.run
(ServerPlayer p_143695_, Entity p_143696_, InteractionHand p_143697_) -
Uses of Entity in net.minecraft.world
Modifier and TypeMethodDescriptionstatic void
Containers.dropContents
(Level p_18999_, Entity p_19000_, Container p_19001_) -
Uses of Entity in net.minecraft.world.damagesource
Modifier and TypeFieldDescriptionprotected final Entity
EntityDamageSource.entity
private final Entity
IndirectEntityDamageSource.owner
Modifier and TypeMethodDescriptionCombatEntry.getAttacker()
DamageSource.getDirectEntity()
IndirectEntityDamageSource.getDirectEntity()
DamageSource.getEntity()
EntityDamageSource.getEntity()
IndirectEntityDamageSource.getEntity()
Modifier and TypeMethodDescriptionstatic DamageSource
DamageSource.arrow
(AbstractArrow p_19347_, Entity p_19348_) static DamageSource
static DamageSource
DamageSource.fireworks
(FireworkRocketEntity p_19353_, Entity p_19354_) static DamageSource
DamageSource.indirectMagic
(Entity p_19368_, Entity p_19369_) static DamageSource
DamageSource.indirectMobAttack
(Entity p_19341_, LivingEntity p_19342_) static DamageSource
static DamageSource
static DamageSource
static DamageSource
static DamageSource
DamageSource.witherSkull
(WitherSkull p_19356_, Entity p_19357_) ModifierConstructorDescriptionEntityDamageSource
(String p_19394_, Entity p_19395_) IndirectEntityDamageSource
(String p_19406_, Entity p_19407_, Entity p_19408_) -
Uses of Entity in net.minecraft.world.effect
Modifier and TypeMethodDescriptionstatic List<ServerPlayer>
MobEffectUtil.addEffectToPlayersAround
(ServerLevel p_216947_, Entity p_216948_, Vec3 p_216949_, double p_216950_, MobEffectInstance p_216951_, int p_216952_) void
MobEffect.applyInstantenousEffect
(Entity p_19462_, Entity p_19463_, LivingEntity p_19464_, int p_19465_, double p_19466_) -
Uses of Entity in net.minecraft.world.entity
Modifier and TypeClassDescriptionclass
EntityType<T extends Entity>
static class
EntityType.Builder<T extends Entity>
static interface
EntityType.EntityFactory<T extends Entity>
static interface
SpawnPlacements.SpawnPredicate<T extends Entity>
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionEntitySelector.CAN_BE_COLLIDED_WITH
EntitySelector.CONTAINER_ENTITY_SELECTOR
EntitySelector.ENTITY_NOT_BEING_RIDDEN
EntitySelector.ENTITY_STILL_ALIVE
LightningBolt.hitEntities
EntitySelector.LIVING_ENTITY_STILL_ALIVE
EntitySelector.NO_CREATIVE_OR_SPECTATOR
EntitySelector.NO_SPECTATORS
private com.google.common.collect.ImmutableList<Entity>
Entity.passengers
AreaEffectCloud.victims
Modifier and TypeMethodDescriptionstatic <T extends Entity>
booleanSpawnPlacements.checkSpawnRules
(EntityType<T> p_217075_, ServerLevelAccessor p_217076_, MobSpawnType p_217077_, BlockPos p_217078_, RandomSource p_217079_) static <T extends Entity>
EntityType.Builder<T>EntityType.Builder.createNothing
(MobCategory p_20711_) static <T extends Entity>
EntityType.Builder<T>EntityType.Builder.of
(EntityType.EntityFactory<T> p_20705_, MobCategory p_20706_) private static <T extends Entity>
EntityType<T>EntityType.register
(String p_20635_, EntityType.Builder<T> p_20636_) Modifier and TypeMethodDescriptionEntity.changeDimension
(ServerLevel p_20118_) Entity.changeDimension
(ServerLevel p_20118_, ITeleporter teleporter) Entity.getControllingPassenger()
Entity.getFirstPassenger()
Mob.getLeashHolder()
OwnableEntity.getOwner()
Entity.getRootVehicle()
Entity.getVehicle()
static Entity
EntityType.loadEntityRecursive
(CompoundTag p_20646_, Level p_20647_, Function<Entity, Entity> p_20648_) EntityType.spawn
(ServerLevel p_20593_, ItemStack p_20594_, Player p_20595_, BlockPos p_20596_, MobSpawnType p_20597_, boolean p_20598_, boolean p_20599_) Modifier and TypeMethodDescriptionEntityType.create
(CompoundTag p_20643_, Level p_20644_) EntityType.getBaseClass()
LightningBolt.getHitEntities()
Entity.getIndirectPassengers()
Entity.getIndirectPassengersStream()
Entity.getPassengers()
Entity.getPassengersAndSelf()
Entity.getSelfAndPassengers()
EntityType.loadEntitiesRecursive
(List<? extends Tag> p_147046_, Level p_147047_) EntityType.loadStaticEntity
(CompoundTag p_20670_, Level p_20671_) EntitySelector.pushableBy
(Entity p_20422_) EntitySelector.withinDistance
(double p_20411_, double p_20412_, double p_20413_, double p_20414_) Modifier and TypeMethodDescriptionvoid
boolean
LivingEntity.addEffect
(MobEffectInstance p_147208_, Entity p_147209_) protected void
Entity.addPassenger
(Entity p_20349_) protected void
Marker.addPassenger
(Entity p_147260_) void
Entity.awardKillScore
(Entity p_19953_, int p_19954_, DamageSource p_19955_) protected boolean
Entity.canAddPassenger
(Entity p_20354_) boolean
Entity.canCollideWith
(Entity p_20303_) protected boolean
boolean
Entity.closerThan
(Entity p_19951_, double p_19952_) boolean
Entity.closerThan
(Entity p_216993_, double p_216994_, double p_216995_) static Vec3
Entity.collideBoundingBox
(Entity p_198895_, Vec3 p_198896_, AABB p_198897_, Level p_198898_, List<VoxelShape> p_198899_) void
Entity.copyPosition
(Entity p_20360_) private void
LivingEntity.dismountVehicle
(Entity p_21029_) float
Entity.distanceTo
(Entity p_20271_) double
Entity.distanceToSqr
(Entity p_20281_) void
Entity.doEnchantDamageEffects
(LivingEntity p_19971_, Entity p_19972_) boolean
LivingEntity.doHurtTarget
(Entity p_20970_) boolean
Mob.doHurtTarget
(Entity p_21372_) protected void
void
LivingEntity.forceAddEffect
(MobEffectInstance p_147216_, Entity p_147217_) void
double
LivingEntity.getVisibilityPercent
(Entity p_20969_) boolean
Entity.hasIndirectPassenger
(Entity p_20368_) boolean
LivingEntity.hasLineOfSight
(Entity p_147185_) boolean
Entity.hasPassenger
(Entity p_20364_) boolean
boolean
Entity.isAlliedTo
(Entity p_20355_) boolean
TamableAnimal.isAlliedTo
(Entity p_21833_) boolean
Entity.isPassengerOfSameVehicle
(Entity p_20366_) void
protected void
LivingEntity.onEffectAdded
(MobEffectInstance p_147190_, Entity p_147191_) protected void
LivingEntity.onEffectUpdated
(MobEffectInstance p_147192_, boolean p_147193_, Entity p_147194_) void
Entity.onPassengerTurned
(Entity p_20320_) void
ReputationEventHandler.onReputationEventFrom
(ReputationEventType p_21712_, Entity p_21713_) void
Entity.positionRider
(Entity p_20312_) private void
Entity.positionRider
(Entity p_19957_, Entity.MoveFunction p_19958_) void
void
EntitySelector.pushableBy
(Entity p_20422_) protected void
Entity.removePassenger
(Entity p_20352_) void
Entity.restoreFrom
(Entity p_20362_) void
LivingEntity.setLastHurtMob
(Entity p_21336_) void
Mob.setLeashedTo
(Entity p_21464_, boolean p_21465_) boolean
Entity.skipAttackInteraction
(Entity p_20357_) boolean
Entity.startRiding
(Entity p_20330_) boolean
Entity.startRiding
(Entity p_19966_, boolean p_19967_) boolean
Mob.startRiding
(Entity p_21396_, boolean p_21397_) void
boolean
static void
EntityType.updateCustomEntityTag
(Level p_20621_, Player p_20622_, Entity p_20623_, CompoundTag p_20624_) Modifier and TypeMethodDescriptionboolean
Entity.hasPassenger
(Predicate<Entity> p_146863_) static Entity
EntityType.loadEntityRecursive
(CompoundTag p_20646_, Level p_20647_, Function<Entity, Entity> p_20648_) static Entity
EntityType.loadEntityRecursive
(CompoundTag p_20646_, Level p_20647_, Function<Entity, Entity> p_20648_) -
Uses of Entity in net.minecraft.world.entity.ai.behavior
Modifier and TypeClassDescriptionclass
DismountOrSkipMounting<E extends LivingEntity,
T extends Entity> Modifier and TypeFieldDescriptionprivate final BiPredicate<E,
Entity> DismountOrSkipMounting.dontRideIf
Modifier and TypeMethodDescriptionEntityTracker.getEntity()
private Entity
Mount.getRidableEntity
(E p_23547_) Modifier and TypeMethodDescriptionstatic SetWalkTargetAwayFrom<? extends Entity>
SetWalkTargetAwayFrom.entity
(MemoryModuleType<? extends Entity> p_24020_, float p_24021_, int p_24022_, boolean p_24023_) Modifier and TypeMethodDescriptionprivate boolean
DismountOrSkipMounting.isVehicleValid
(E p_22837_, Entity p_22838_) AnimalPanic.lookForWater
(BlockGetter p_196642_, Entity p_196643_) static void
BehaviorUtils.setWalkAndLookTargetMemories
(LivingEntity p_22591_, Entity p_22592_, float p_22593_, int p_22594_) Modifier and TypeMethodDescriptionstatic SetWalkTargetAwayFrom<? extends Entity>
SetWalkTargetAwayFrom.entity
(MemoryModuleType<? extends Entity> p_24020_, float p_24021_, int p_24022_, boolean p_24023_) ModifierConstructorDescriptionDismountOrSkipMounting
(int p_22827_, BiPredicate<E, Entity> p_22828_) -
Uses of Entity in net.minecraft.world.entity.ai.control
-
Uses of Entity in net.minecraft.world.entity.ai.goal
Modifier and TypeMethodDescriptionprotected BlockPos
PanicGoal.lookForWater
(BlockGetter p_198173_, Entity p_198174_, int p_198175_) -
Uses of Entity in net.minecraft.world.entity.ai.memory
Modifier and TypeFieldDescriptionstatic final MemoryModuleType<Entity>
MemoryModuleType.RIDE_TARGET
-
Uses of Entity in net.minecraft.world.entity.ai.sensing
-
Uses of Entity in net.minecraft.world.entity.ambient
-
Uses of Entity in net.minecraft.world.entity.animal
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionprivate boolean
Pig.canBeControlledBy
(Entity p_218248_) protected boolean
boolean
Bee.doHurtTarget
(Entity p_27722_) boolean
Cat.doHurtTarget
(Entity p_28119_) boolean
Dolphin.doHurtTarget
(Entity p_28319_) boolean
IronGolem.doHurtTarget
(Entity p_28837_) boolean
Ocelot.doHurtTarget
(Entity p_28990_) boolean
Panda.doHurtTarget
(Entity p_29091_) boolean
Parrot.doHurtTarget
(Entity p_29365_) boolean
PolarBear.doHurtTarget
(Entity p_29522_) boolean
Rabbit.doHurtTarget
(Entity p_29659_) boolean
Wolf.doHurtTarget
(Entity p_30372_) protected void
protected void
static boolean
Parrot.imitateNearbyMobs
(Level p_29383_, Entity p_29384_) void
Chicken.positionRider
(Entity p_28269_) -
Uses of Entity in net.minecraft.world.entity.animal.allay
Modifier and TypeMethodDescriptionvoid
Allay.AllayVibrationListenerConfig.onSignalReceive
(ServerLevel p_239108_, GameEventListener p_239109_, BlockPos p_239110_, GameEvent p_239111_, @Nullable Entity p_239112_, @Nullable Entity p_239113_, float p_239114_) -
Uses of Entity in net.minecraft.world.entity.animal.axolotl
-
Uses of Entity in net.minecraft.world.entity.animal.frog
-
Uses of Entity in net.minecraft.world.entity.animal.goat
-
Uses of Entity in net.minecraft.world.entity.animal.horse
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionvoid
AbstractHorse.positionRider
(Entity p_30642_) void
Llama.positionRider
(Entity p_30830_) -
Uses of Entity in net.minecraft.world.entity.boss
-
Uses of Entity in net.minecraft.world.entity.boss.enderdragon
Modifier and TypeMethodDescriptionboolean
EnderDragon.addEffect
(MobEffectInstance p_182394_, Entity p_182395_) protected boolean
-
Uses of Entity in net.minecraft.world.entity.boss.wither
Modifier and TypeMethodDescriptionboolean
WitherBoss.addEffect
(MobEffectInstance p_182397_, Entity p_182398_) protected boolean
-
Uses of Entity in net.minecraft.world.entity.decoration
Modifier and TypeClassDescriptionclass
class
class
class
class
class
Modifier and TypeMethodDescriptionprotected void
abstract void
void
private void
void
void
boolean
ArmorStand.skipAttackInteraction
(Entity p_31687_) boolean
HangingEntity.skipAttackInteraction
(Entity p_31750_) -
Uses of Entity in net.minecraft.world.entity.item
Modifier and TypeMethodDescriptionItemEntity.changeDimension
(ServerLevel p_32042_, ITeleporter teleporter) ItemEntity.getThrowingEntity()
-
Uses of Entity in net.minecraft.world.entity.monster
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionRavager.getControllingPassenger()
Strider.getControllingPassenger()
Modifier and TypeMethodDescriptionprotected boolean
Strider.canAddPassenger
(Entity p_33950_) private boolean
Ravager.canBeControlledBy
(Entity p_219063_) private boolean
Strider.canBeControlledBy
(Entity p_219127_) boolean
CaveSpider.doHurtTarget
(Entity p_32257_) boolean
Creeper.doHurtTarget
(Entity p_32281_) boolean
Husk.doHurtTarget
(Entity p_32892_) boolean
Ravager.doHurtTarget
(Entity p_33328_) boolean
WitherSkeleton.doHurtTarget
(Entity p_34169_) boolean
Zoglin.doHurtTarget
(Entity p_34207_) boolean
Zombie.doHurtTarget
(Entity p_34276_) boolean
Ravager.hasLineOfSight
(Entity p_149755_) boolean
Evoker.isAlliedTo
(Entity p_32665_) boolean
Illusioner.isAlliedTo
(Entity p_32938_) boolean
Pillager.isAlliedTo
(Entity p_33314_) boolean
Vindicator.isAlliedTo
(Entity p_34110_) void
void
boolean
Shulker.startRiding
(Entity p_149773_, boolean p_149774_) private void
Ravager.strongKnockback
(Entity p_33340_) (package private) boolean
EnderMan.teleportTowards
(Entity p_32501_) -
Uses of Entity in net.minecraft.world.entity.monster.hoglin
-
Uses of Entity in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionprivate Entity
Piglin.getTopPassenger
(Entity p_34731_, int p_34732_) Modifier and TypeMethodDescriptionprivate Entity
Piglin.getTopPassenger
(Entity p_34731_, int p_34732_) boolean
Piglin.startRiding
(Entity p_34701_, boolean p_34702_) private static boolean
PiglinAi.wantsToStopRiding
(Piglin p_34835_, Entity p_34836_) -
Uses of Entity in net.minecraft.world.entity.monster.warden
Modifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.objects.Object2IntMap<Entity>
AngerManagement.angerBySuspect
AngerManagement.filter
AngerManagement.suspects
Modifier and TypeMethodDescriptionstatic void
Warden.applyDarknessAround
(ServerLevel p_219376_, Vec3 p_219377_, Entity p_219378_, int p_219379_) protected boolean
boolean
Warden.canTargetEntity
(Entity p_219386_) void
AngerManagement.clearAnger
(Entity p_219267_) void
Warden.clearAnger
(Entity p_219429_) int
boolean
Warden.doHurtTarget
(Entity p_219472_) protected void
int
AngerManagement.getActiveAnger
(Entity p_219287_) int
AngerManagement.increaseAnger
(Entity p_219269_, int p_219270_) void
Warden.increaseAngerAt
(Entity p_219442_) void
Warden.increaseAngerAt
(Entity p_219388_, int p_219389_, boolean p_219390_) void
Warden.onSignalReceive
(ServerLevel p_219362_, GameEventListener p_219363_, BlockPos p_219364_, GameEvent p_219365_, Entity p_219366_, Entity p_219367_, float p_219368_) Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<AngerManagement>
void
AngerManagement.tick
(ServerLevel p_219264_, Predicate<Entity> p_219265_) -
Uses of Entity in net.minecraft.world.entity.npc
Modifier and TypeMethodDescriptionAbstractVillager.changeDimension
(ServerLevel p_35295_, ITeleporter teleporter) Modifier and TypeMethodDescriptionVillagerTrades.DyedArmorForEmeralds.getOffer
(Entity p_219679_, RandomSource p_219680_) VillagerTrades.EmeraldForItems.getOffer
(Entity p_219682_, RandomSource p_219683_) VillagerTrades.EmeraldsForVillagerTypeItem.getOffer
(Entity p_219685_, RandomSource p_219686_) VillagerTrades.EnchantBookForEmeralds.getOffer
(Entity p_219688_, RandomSource p_219689_) VillagerTrades.EnchantedItemForEmeralds.getOffer
(Entity p_219691_, RandomSource p_219692_) VillagerTrades.ItemListing.getOffer
(Entity p_219693_, RandomSource p_219694_) VillagerTrades.ItemsAndEmeraldsToItems.getOffer
(Entity p_219696_, RandomSource p_219697_) VillagerTrades.ItemsForEmeralds.getOffer
(Entity p_219699_, RandomSource p_219700_) VillagerTrades.SuspiciousStewForEmerald.getOffer
(Entity p_219702_, RandomSource p_219703_) VillagerTrades.TippedArrowForItemsAndEmeralds.getOffer
(Entity p_219705_, RandomSource p_219706_) VillagerTrades.TreasureMapForEmeralds.getOffer
(Entity p_219708_, RandomSource p_219709_) void
Villager.onReputationEventFrom
(ReputationEventType p_35431_, Entity p_35432_) private void
Villager.tellWitnessesThatIWasMurdered
(Entity p_35421_) -
Uses of Entity in net.minecraft.world.entity.player
Modifier and TypeMethodDescriptionvoid
void
Player.interactOn
(Entity p_36158_, InteractionHand p_36159_) void
private void
-
Uses of Entity in net.minecraft.world.entity.projectile
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionprivate Entity
Projectile.cachedOwner
private Entity
ShulkerBullet.finalTarget
private Entity
FishingHook.hookedIn
Modifier and TypeMethodDescriptionThrownEnderpearl.changeDimension
(ServerLevel p_37506_, ITeleporter teleporter) Projectile.getEffectSource()
FishingHook.getHookedIn()
Projectile.getOwner()
Modifier and TypeMethodDescriptionprivate void
ThrownPotion.applySplash
(List<MobEffectInstance> p_37548_, Entity p_37549_) protected boolean
AbstractArrow.canHitEntity
(Entity p_36743_) protected boolean
AbstractHurtingProjectile.canHitEntity
(Entity p_36842_) protected boolean
FishingHook.canHitEntity
(Entity p_37135_) protected boolean
Projectile.canHitEntity
(Entity p_37250_) protected boolean
ShulkerBullet.canHitEntity
(Entity p_37341_) static EntityHitResult
ProjectileUtil.getEntityHitResult
(Entity p_37288_, Vec3 p_37289_, Vec3 p_37290_, AABB p_37291_, Predicate<Entity> p_37292_, double p_37293_) static EntityHitResult
ProjectileUtil.getEntityHitResult
(Level p_37305_, Entity p_37306_, Vec3 p_37307_, Vec3 p_37308_, AABB p_37309_, Predicate<Entity> p_37310_) static EntityHitResult
ProjectileUtil.getEntityHitResult
(Level p_150176_, Entity p_150177_, Vec3 p_150178_, Vec3 p_150179_, AABB p_150180_, Predicate<Entity> p_150181_, float p_150182_) static HitResult
ProjectileUtil.getHitResult
(Entity p_37295_, Predicate<Entity> p_37296_) protected boolean
protected void
FishingHook.pullEntity
(Entity p_150156_) static void
ProjectileUtil.rotateTowardsMovement
(Entity p_37285_, float p_37286_) private void
FishingHook.setHookedEntity
(Entity p_150158_) void
void
void
void
Projectile.shootFromRotation
(Entity p_37252_, float p_37253_, float p_37254_, float p_37255_, float p_37256_, float p_37257_) Modifier and TypeMethodDescriptionstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Entity p_37288_, Vec3 p_37289_, Vec3 p_37290_, AABB p_37291_, Predicate<Entity> p_37292_, double p_37293_) static EntityHitResult
ProjectileUtil.getEntityHitResult
(Level p_37305_, Entity p_37306_, Vec3 p_37307_, Vec3 p_37308_, AABB p_37309_, Predicate<Entity> p_37310_) static EntityHitResult
ProjectileUtil.getEntityHitResult
(Level p_150176_, Entity p_150177_, Vec3 p_150178_, Vec3 p_150179_, AABB p_150180_, Predicate<Entity> p_150181_, float p_150182_) static HitResult
ProjectileUtil.getHitResult
(Entity p_37295_, Predicate<Entity> p_37296_) ModifierConstructorDescriptionFireworkRocketEntity
(Level p_37036_, Entity p_37037_, double p_37038_, double p_37039_, double p_37040_, ItemStack p_37041_) FireworkRocketEntity
(Level p_37050_, ItemStack p_37051_, Entity p_37052_, double p_37053_, double p_37054_, double p_37055_, boolean p_37056_) ShulkerBullet
(Level p_37330_, LivingEntity p_37331_, Entity p_37332_, Direction.Axis p_37333_) -
Uses of Entity in net.minecraft.world.entity.raid
-
Uses of Entity in net.minecraft.world.entity.vehicle
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionprotected void
Boat.addPassenger
(Entity passenger) protected boolean
Boat.canAddPassenger
(Entity p_38390_) boolean
AbstractMinecart.canCollideWith
(Entity p_38168_) boolean
Boat.canCollideWith
(Entity p_38376_) static boolean
Boat.canVehicleCollide
(Entity p_38324_, Entity p_38325_) default void
ContainerEntity.chestVehicleDestroyed
(DamageSource p_219928_, Level p_219929_, Entity p_219930_) protected void
Boat.clampRotation
(Entity p_38322_) void
Boat.onPassengerTurned
(Entity p_38383_) void
Boat.positionRider
(Entity p_38379_) void
void
Modifier and TypeMethodDescriptiondefault InteractionResult
ContainerEntity.interactWithChestVehicle
(BiConsumer<GameEvent, Entity> p_219932_, Player p_219933_) -
Uses of Entity in net.minecraft.world.item
Modifier and TypeMethodDescriptionvoid
CompassItem.inventoryTick
(ItemStack p_40720_, Level p_40721_, Entity p_40722_, int p_40723_, boolean p_40724_) void
Item.inventoryTick
(ItemStack p_41404_, Level p_41405_, Entity p_41406_, int p_41407_, boolean p_41408_) void
ItemStack.inventoryTick
(Level p_41667_, Entity p_41668_, int p_41669_, boolean p_41670_) void
MapItem.inventoryTick
(ItemStack p_42870_, Level p_42871_, Entity p_42872_, int p_42873_, boolean p_42874_) private void
BundleItem.playDropContentsSound
(Entity p_186354_) private void
BundleItem.playInsertSound
(Entity p_186352_) private void
BundleItem.playRemoveOneSound
(Entity p_186343_) void
ItemStack.setEntityRepresentation
(Entity p_41637_) void
MapItem.update
(Level p_42894_, Entity p_42895_, MapItemSavedData p_42896_) -
Uses of Entity in net.minecraft.world.item.enchantment
Modifier and TypeMethodDescriptionvoid
DamageEnchantment.doPostAttack
(LivingEntity p_44638_, Entity p_44639_, int p_44640_) void
Enchantment.doPostAttack
(LivingEntity p_44686_, Entity p_44687_, int p_44688_) static void
EnchantmentHelper.doPostDamageEffects
(LivingEntity p_44897_, Entity p_44898_) void
Enchantment.doPostHurt
(LivingEntity p_44692_, Entity p_44693_, int p_44694_) void
ThornsEnchantment.doPostHurt
(LivingEntity p_45215_, Entity p_45216_, int p_45217_) static void
EnchantmentHelper.doPostHurtEffects
(LivingEntity p_44824_, Entity p_44825_) -
Uses of Entity in net.minecraft.world.level
Modifier and TypeFieldDescriptionprivate Entity
BaseSpawner.displayEntity
private final Entity
EntityBasedExplosionDamageCalculator.source
private final Entity
Explosion.source
Modifier and TypeMethodDescriptionEntityGetter.getEntities
(EntityTypeTest<Entity, T> p_151464_, AABB p_151465_, Predicate<? super T> p_151466_) Level.getEntities
(EntityTypeTest<Entity, T> p_151528_, AABB p_151529_, Predicate<? super T> p_151530_) EntityGetter.getEntitiesOfClass
(Class<T> p_45977_, AABB p_45978_) EntityGetter.getEntitiesOfClass
(Class<T> p_45979_, AABB p_45980_, Predicate<? super T> p_45981_) <T extends Entity>
voidLevel.guardEntityTick
(Consumer<T> p_46654_, T p_46655_) Modifier and TypeMethodDescriptionabstract Entity
Level.getEntity
(int p_46492_) Explosion.getExploder()
BaseSpawner.getOrCreateDisplayEntity
(Level p_151315_) BaseSpawner.getSpawnerEntity()
Modifier and TypeMethodDescriptionEntityGetter.getEntities
(Entity p_45934_, AABB p_45935_) EntityGetter.getEntities
(Entity p_45936_, AABB p_45937_, Predicate<? super Entity> p_45938_) protected abstract LevelEntityGetter<Entity>
Level.getEntities()
Level.getEntities
(Entity p_46536_, AABB p_46537_, Predicate<? super Entity> p_46538_) Modifier and TypeMethodDescriptiondefault boolean
LevelWriter.addFreshEntity
(Entity p_46964_) default void
ServerLevelAccessor.addFreshEntityWithPassengers
(Entity p_47206_) private VoxelShape
CollisionGetter.borderCollision
(Entity p_186441_, AABB p_186442_) void
Level.broadcastEntityEvent
(Entity p_46509_, byte p_46510_) default boolean
CollisionGetter.collidesWithSuffocatingBlock
(Entity p_186438_, AABB p_186439_) boolean
Level.destroyBlock
(BlockPos p_46626_, boolean p_46627_, Entity p_46628_, int p_46629_) default boolean
LevelWriter.destroyBlock
(BlockPos p_46954_, boolean p_46955_, Entity p_46956_) boolean
LevelWriter.destroyBlock
(BlockPos p_46957_, boolean p_46958_, Entity p_46959_, int p_46960_) Level.explode
(Entity p_46519_, double p_46520_, double p_46521_, double p_46522_, float p_46523_, boolean p_46524_, Explosion.BlockInteraction p_46525_) Level.explode
(Entity p_46512_, double p_46513_, double p_46514_, double p_46515_, float p_46516_, Explosion.BlockInteraction p_46517_) Level.explode
(Entity p_46526_, DamageSource p_46527_, ExplosionDamageCalculator p_46528_, double p_46529_, double p_46530_, double p_46531_, float p_46532_, boolean p_46533_, Explosion.BlockInteraction p_46534_) CollisionGetter.findFreePosition
(Entity p_151419_, VoxelShape p_151420_, Vec3 p_151421_, double p_151422_, double p_151423_, double p_151424_) default void
default void
default Iterable<VoxelShape>
CollisionGetter.getBlockCollisions
(Entity p_186435_, AABB p_186436_) default Iterable<VoxelShape>
CollisionGetter.getCollisions
(Entity p_186432_, AABB p_186433_) EntityGetter.getEntities
(Entity p_45934_, AABB p_45935_) EntityGetter.getEntities
(Entity p_45936_, AABB p_45937_, Predicate<? super Entity> p_45938_) Level.getEntities
(Entity p_46536_, AABB p_46537_, Predicate<? super Entity> p_46538_) CollisionGetter.getEntityCollisions
(Entity p_186427_, AABB p_186428_) default List<VoxelShape>
CommonLevelAccessor.getEntityCollisions
(Entity p_186447_, AABB p_186448_) default List<VoxelShape>
EntityGetter.getEntityCollisions
(Entity p_186451_, AABB p_186452_) PathNavigationRegion.getEntityCollisions
(Entity p_186557_, AABB p_186558_) default Player
EntityGetter.getNearestPlayer
(Entity p_45931_, double p_45932_) static float
Explosion.getSeenPercent
(Vec3 p_46065_, Entity p_46066_) default boolean
CollisionGetter.isUnobstructed
(Entity p_45785_) default boolean
CollisionGetter.isUnobstructed
(Entity p_45750_, VoxelShape p_45751_) default boolean
CommonLevelAccessor.isUnobstructed
(Entity p_45828_, VoxelShape p_45829_) default boolean
EntityGetter.isUnobstructed
(Entity p_45939_, VoxelShape p_45940_) boolean
Level.loadedAndEntityCanStandOn
(BlockPos p_46576_, Entity p_46577_) boolean
Level.loadedAndEntityCanStandOnFace
(BlockPos p_46579_, Entity p_46580_, Direction p_46581_) private ExplosionDamageCalculator
Explosion.makeDamageCalculator
(Entity p_46063_) default boolean
CollisionGetter.noCollision
(Entity p_45787_) default boolean
CollisionGetter.noCollision
(Entity p_45757_, AABB p_45758_) abstract void
Level.playSeededSound
(Player p_220372_, Entity p_220373_, SoundEvent p_220374_, SoundSource p_220375_, float p_220376_, float p_220377_, long p_220378_) void
Level.playSound
(Player p_46551_, Entity p_46552_, SoundEvent p_46553_, SoundSource p_46554_, float p_46555_, float p_46556_) boolean
Level.shouldTickDeath
(Entity p_186458_) Modifier and TypeMethodDescriptionstatic NaturalSpawner.SpawnState
NaturalSpawner.createState
(int p_186525_, Iterable<Entity> p_186526_, NaturalSpawner.ChunkGetter p_186527_, LocalMobCapCalculator p_186528_) EntityGetter.getEntities
(Entity p_45936_, AABB p_45937_, Predicate<? super Entity> p_45938_) EntityGetter.getEntities
(EntityTypeTest<Entity, T> p_151464_, AABB p_151465_, Predicate<? super T> p_151466_) Level.getEntities
(Entity p_46536_, AABB p_46537_, Predicate<? super Entity> p_46538_) Level.getEntities
(EntityTypeTest<Entity, T> p_151528_, AABB p_151529_, Predicate<? super T> p_151530_) default Player
EntityGetter.getNearestPlayer
(double p_45919_, double p_45920_, double p_45921_, double p_45922_, Predicate<Entity> p_45923_) ModifierConstructorDescriptionBlockCollisions
(CollisionGetter p_186402_, Entity p_186403_, AABB p_186404_) BlockCollisions
(CollisionGetter p_186406_, Entity p_186407_, AABB p_186408_, boolean p_186409_) ClipContext
(Vec3 p_45688_, Vec3 p_45689_, ClipContext.Block p_45690_, ClipContext.Fluid p_45691_, @Nullable Entity p_45692_) EntityBasedExplosionDamageCalculator
(Entity p_45894_) Explosion
(Level p_151471_, Entity p_151472_, double p_151473_, double p_151474_, double p_151475_, float p_151476_) Explosion
(Level p_46032_, Entity p_46033_, double p_46034_, double p_46035_, double p_46036_, float p_46037_, boolean p_46038_, Explosion.BlockInteraction p_46039_) Explosion
(Level p_46041_, Entity p_46042_, double p_46043_, double p_46044_, double p_46045_, float p_46046_, boolean p_46047_, Explosion.BlockInteraction p_46048_, List<BlockPos> p_46049_) Explosion
(Level p_46024_, Entity p_46025_, double p_46026_, double p_46027_, double p_46028_, float p_46029_, List<BlockPos> p_46030_) Explosion
(Level p_46051_, Entity p_46052_, DamageSource p_46053_, ExplosionDamageCalculator p_46054_, double p_46055_, double p_46056_, double p_46057_, float p_46058_, boolean p_46059_, Explosion.BlockInteraction p_46060_) -
Uses of Entity in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionFallable.getHurtsEntitySelector()
PointedDripstoneBlock.getHurtsEntitySelector()
Modifier and TypeMethodDescriptionstatic void
SculkSensorBlock.activate
(Entity p_222126_, Level p_222127_, BlockPos p_222128_, BlockState p_222129_, int p_222130_) boolean
BellBlock.attemptToRing
(Entity p_152189_, Level p_152190_, BlockPos p_152191_, Direction p_152192_) private void
private void
private boolean
TurtleEggBlock.canDestroyEgg
(Level p_57768_, Entity p_57769_) private static boolean
BigDripleafBlock.canEntityTilt
(BlockPos p_152302_, Entity p_152303_) static boolean
PowderSnowBlock.canEntityWalkOnPowderSnow
(Entity p_154256_) protected void
BasePressurePlateBlock.checkPressed
(Entity p_152144_, Level p_152145_, BlockPos p_152146_, BlockState p_152147_, int p_152148_) private void
TurtleEggBlock.destroyEgg
(Level p_154851_, BlockState p_154852_, BlockPos p_154853_, Entity p_154854_, int p_154855_) private static boolean
HoneyBlock.doesEntityDoHoneyBlockSlideEffects
(Entity p_54013_) private void
HoneyBlock.doSlideMovement
(Entity p_54020_) static void
CampfireBlock.dowse
(Entity p_152750_, LevelAccessor p_152751_, BlockPos p_152752_, BlockState p_152753_) static void
Block.dropResources
(BlockState p_49882_, Level p_49883_, BlockPos p_49884_, BlockEntity p_49885_, Entity p_49886_, ItemStack p_49887_) void
BaseFireBlock.entityInside
(BlockState p_49260_, Level p_49261_, BlockPos p_49262_, Entity p_49263_) void
BasePressurePlateBlock.entityInside
(BlockState p_49314_, Level p_49315_, BlockPos p_49316_, Entity p_49317_) void
BigDripleafBlock.entityInside
(BlockState p_152266_, Level p_152267_, BlockPos p_152268_, Entity p_152269_) void
BubbleColumnBlock.entityInside
(BlockState p_50976_, Level p_50977_, BlockPos p_50978_, Entity p_50979_) void
ButtonBlock.entityInside
(BlockState p_51083_, Level p_51084_, BlockPos p_51085_, Entity p_51086_) void
CactusBlock.entityInside
(BlockState p_51148_, Level p_51149_, BlockPos p_51150_, Entity p_51151_) void
CampfireBlock.entityInside
(BlockState p_51269_, Level p_51270_, BlockPos p_51271_, Entity p_51272_) void
CropBlock.entityInside
(BlockState p_52277_, Level p_52278_, BlockPos p_52279_, Entity p_52280_) void
DetectorRailBlock.entityInside
(BlockState p_52458_, Level p_52459_, BlockPos p_52460_, Entity p_52461_) void
EndPortalBlock.entityInside
(BlockState p_53025_, Level p_53026_, BlockPos p_53027_, Entity p_53028_) void
FrogspawnBlock.entityInside
(BlockState p_221204_, Level p_221205_, BlockPos p_221206_, Entity p_221207_) void
HoneyBlock.entityInside
(BlockState p_54003_, Level p_54004_, BlockPos p_54005_, Entity p_54006_) void
HopperBlock.entityInside
(BlockState p_54066_, Level p_54067_, BlockPos p_54068_, Entity p_54069_) void
LavaCauldronBlock.entityInside
(BlockState p_153506_, Level p_153507_, BlockPos p_153508_, Entity p_153509_) void
LayeredCauldronBlock.entityInside
(BlockState p_153534_, Level p_153535_, BlockPos p_153536_, Entity p_153537_) void
NetherPortalBlock.entityInside
(BlockState p_54915_, Level p_54916_, BlockPos p_54917_, Entity p_54918_) void
PowderSnowBlock.entityInside
(BlockState p_154263_, Level p_154264_, BlockPos p_154265_, Entity p_154266_) void
SweetBerryBushBlock.entityInside
(BlockState p_57270_, Level p_57271_, BlockPos p_57272_, Entity p_57273_) void
TripWireBlock.entityInside
(BlockState p_57625_, Level p_57626_, BlockPos p_57627_, Entity p_57628_) void
WaterlilyBlock.entityInside
(BlockState p_58164_, Level p_58165_, BlockPos p_58166_, Entity p_58167_) void
WebBlock.entityInside
(BlockState p_58180_, Level p_58181_, BlockPos p_58182_, Entity p_58183_) void
WitherRoseBlock.entityInside
(BlockState p_58238_, Level p_58239_, BlockPos p_58240_, Entity p_58241_) void
BedBlock.fallOn
(Level p_152169_, BlockState p_152170_, BlockPos p_152171_, Entity p_152172_, float p_152173_) void
Block.fallOn
(Level p_152426_, BlockState p_152427_, BlockPos p_152428_, Entity p_152429_, float p_152430_) void
FarmBlock.fallOn
(Level p_153227_, BlockState p_153228_, BlockPos p_153229_, Entity p_153230_, float p_153231_) void
HayBlock.fallOn
(Level p_153362_, BlockState p_153363_, BlockPos p_153364_, Entity p_153365_, float p_153366_) void
HoneyBlock.fallOn
(Level p_153372_, BlockState p_153373_, BlockPos p_153374_, Entity p_153375_, float p_153376_) void
PointedDripstoneBlock.fallOn
(Level p_154047_, BlockState p_154048_, BlockPos p_154049_, Entity p_154050_, float p_154051_) void
PowderSnowBlock.fallOn
(Level p_196695_, BlockState p_196696_, BlockPos p_196697_, Entity p_196698_, float p_196699_) void
SlimeBlock.fallOn
(Level p_154567_, BlockState p_154568_, BlockPos p_154569_, Entity p_154570_, float p_154571_) void
TurtleEggBlock.fallOn
(Level p_154845_, BlockState p_154846_, BlockPos p_154847_, Entity p_154848_, float p_154849_) Block.getDrops
(BlockState p_49875_, ServerLevel p_49876_, BlockPos p_49877_, BlockEntity p_49878_, Entity p_49879_, ItemStack p_49880_) protected boolean
AbstractCauldronBlock.isEntityInsideContent
(BlockState p_151980_, BlockPos p_151981_, Entity p_151982_) private boolean
HoneyBlock.isSlidingDown
(BlockPos p_54008_, Entity p_54009_) private void
HoneyBlock.maybeDoSlideAchievement
(Entity p_53992_, BlockPos p_53993_) private void
HoneyBlock.maybeDoSlideEffects
(Level p_53995_, Entity p_53996_) private void
void
DoorBlock.setOpen
(Entity p_153166_, Level p_153167_, BlockState p_153168_, BlockPos p_153169_, boolean p_153170_) void
JukeboxBlock.setRecord
(Entity p_238346_, LevelAccessor p_238347_, BlockPos p_238348_, BlockState p_238349_, ItemStack p_238350_) static void
HoneyBlock.showJumpParticles
(Entity p_54011_) private static void
HoneyBlock.showParticles
(Entity p_53989_, int p_53990_) static void
HoneyBlock.showSlideParticles
(Entity p_53987_) void
Block.stepOn
(Level p_152431_, BlockPos p_152432_, BlockState p_152433_, Entity p_152434_) void
MagmaBlock.stepOn
(Level p_153777_, BlockPos p_153778_, BlockState p_153779_, Entity p_153780_) void
RedStoneOreBlock.stepOn
(Level p_154299_, BlockPos p_154300_, BlockState p_154301_, Entity p_154302_) void
SculkSensorBlock.stepOn
(Level p_222132_, BlockPos p_222133_, BlockState p_222134_, Entity p_222135_) void
SculkShriekerBlock.stepOn
(Level p_222177_, BlockPos p_222178_, BlockState p_222179_, Entity p_222180_) void
SlimeBlock.stepOn
(Level p_154573_, BlockPos p_154574_, BlockState p_154575_, Entity p_154576_) void
StairBlock.stepOn
(Level p_154720_, BlockPos p_154721_, BlockState p_154722_, Entity p_154723_) void
TurtleEggBlock.stepOn
(Level p_154857_, BlockPos p_154858_, BlockState p_154859_, Entity p_154860_) void
BedBlock.updateEntityAfterFallOn
(BlockGetter p_49483_, Entity p_49484_) void
Block.updateEntityAfterFallOn
(BlockGetter p_49821_, Entity p_49822_) void
SlimeBlock.updateEntityAfterFallOn
(BlockGetter p_56406_, Entity p_56407_) private static int
TargetBlock.updateRedstoneOutput
(LevelAccessor p_57392_, BlockState p_57393_, BlockHitResult p_57394_, Entity p_57395_) Modifier and TypeMethodDescriptionprivate <T extends AbstractMinecart>
List<T>DetectorRailBlock.getInteractingMinecartOfType
(Level p_52437_, BlockPos p_52438_, Class<T> p_52439_, Predicate<Entity> p_52440_) -
Uses of Entity in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionBeehiveBlockEntity.releaseAllOccupants
(BlockState p_58760_, BeehiveBlockEntity.BeeReleaseStatus p_58761_) Modifier and TypeMethodDescriptionvoid
BeehiveBlockEntity.addOccupant
(Entity p_58742_, boolean p_58743_) void
BeehiveBlockEntity.addOccupantWithPresetTicks
(Entity p_58745_, boolean p_58746_, int p_58747_) private static void
ConduitBlockEntity.animationTick
(Level p_155419_, BlockPos p_155420_, List<BlockPos> p_155421_, Entity p_155422_, int p_155423_) static boolean
TheEndGatewayBlockEntity.canEntityTeleport
(Entity p_59941_) static void
HopperBlockEntity.entityInside
(Level p_155568_, BlockPos p_155569_, BlockState p_155570_, Entity p_155571_, HopperBlockEntity p_155572_) void
SculkSensorBlockEntity.onSignalReceive
(ServerLevel p_222803_, GameEventListener p_222804_, BlockPos p_222805_, GameEvent p_222806_, Entity p_222807_, Entity p_222808_, float p_222809_) void
SculkShriekerBlockEntity.onSignalReceive
(ServerLevel p_222848_, GameEventListener p_222849_, BlockPos p_222850_, GameEvent p_222851_, Entity p_222852_, Entity p_222853_, float p_222854_) boolean
private void
SculkShriekerBlockEntity.shriek
(ServerLevel p_222845_, Entity p_222846_) static void
TheEndGatewayBlockEntity.teleportEntity
(Level p_155829_, BlockPos p_155830_, BlockState p_155831_, Entity p_155832_, TheEndGatewayBlockEntity p_155833_) static ServerPlayer
SculkShriekerBlockEntity.tryGetPlayer
(Entity p_222862_) Modifier and TypeMethodDescriptionprivate static boolean
BeehiveBlockEntity.releaseOccupant
(Level p_155137_, BlockPos p_155138_, BlockState p_155139_, BeehiveBlockEntity.BeeData p_155140_, List<Entity> p_155141_, BeehiveBlockEntity.BeeReleaseStatus p_155142_, BlockPos p_155143_) -
Uses of Entity in net.minecraft.world.level.block.piston
Modifier and TypeMethodDescriptionprivate static void
PistonMovingBlockEntity.fixEntityWithinPistonBase
(BlockPos p_155921_, Entity p_155922_, Direction p_155923_, double p_155924_) private static boolean
PistonMovingBlockEntity.matchesStickyCritera
(AABB p_60365_, Entity p_60366_) private static void
PistonMovingBlockEntity.moveEntityByPiston
(Direction p_60372_, Entity p_60373_, double p_60374_, Direction p_60375_) -
Uses of Entity in net.minecraft.world.level.block.state
Modifier and TypeMethodDescriptionfinal boolean
BlockBehaviour.BlockStateBase.entityCanStandOn
(BlockGetter p_60635_, BlockPos p_60636_, Entity p_60637_) final boolean
BlockBehaviour.BlockStateBase.entityCanStandOnFace
(BlockGetter p_60639_, BlockPos p_60640_, Entity p_60641_, Direction p_60642_) void
BlockBehaviour.BlockStateBase.entityInside
(Level p_60683_, BlockPos p_60684_, Entity p_60685_) void
BlockBehaviour.entityInside
(BlockState p_60495_, Level p_60496_, BlockPos p_60497_, Entity p_60498_) Deprecated. -
Uses of Entity in net.minecraft.world.level.border
Modifier and TypeMethodDescriptiondouble
WorldBorder.getDistanceToBorder
(Entity p_61926_) boolean
WorldBorder.isInsideCloseToBorder
(Entity p_187567_, AABB p_187568_) -
Uses of Entity in net.minecraft.world.level.chunk
-
Uses of Entity in net.minecraft.world.level.chunk.storage
Modifier and TypeMethodDescriptionprivate static ChunkEntities<Entity>
EntityStorage.emptyChunk
(ChunkPos p_156569_) EntityStorage.loadEntities
(ChunkPos p_156551_) Modifier and TypeMethodDescriptionvoid
EntityStorage.storeEntities
(ChunkEntities<Entity> p_156559_) -
Uses of Entity in net.minecraft.world.level.dimension.end
-
Uses of Entity in net.minecraft.world.level.entity
Modifier and TypeFieldDescriptionprivate final Entity
PersistentEntitySectionManager.Callback.realEntity
private final Entity
TransientEntitySectionManager.Callback.realEntity
Modifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity>
EntityTickList.active
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity>
EntityTickList.iterated
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity>
EntityTickList.passive
Modifier and TypeMethodDescriptionvoid
boolean
void
-
Uses of Entity in net.minecraft.world.level.gameevent
Modifier and TypeFieldDescriptionprivate final Entity
GameEvent.Context.sourceEntity
The field for thesourceEntity
record component.Modifier and TypeMethodDescriptionGameEvent.Context.sourceEntity()
Returns the value of thesourceEntity
record component.Modifier and TypeMethodDescriptionstatic GameEvent.Context
static GameEvent.Context
GameEvent.Context.of
(Entity p_223720_, BlockState p_223721_) ModifierConstructorDescriptionContext
(Entity sourceEntity, BlockState affectedState) Creates an instance of aContext
record class.EntityPositionSource
(Entity p_223648_, float p_223649_) ModifierConstructorDescription(package private)
EntityPositionSource
(com.mojang.datafixers.util.Either<Entity, com.mojang.datafixers.util.Either<UUID, Integer>> p_223651_, float p_223652_) -
Uses of Entity in net.minecraft.world.level.gameevent.vibrations
Modifier and TypeFieldDescriptionprivate final Entity
VibrationListener.ReceivingEvent.entity
The field for theentity
record component.Modifier and TypeMethodDescriptionVibrationListener.ReceivingEvent.entity()
Returns the value of theentity
record component.Modifier and TypeMethodDescriptionVibrationListener.ReceivingEvent.getEntity
(ServerLevel p_223831_) VibrationListener.ReceivingEvent.getProjectileOwner
(ServerLevel p_223846_) Modifier and TypeMethodDescriptionprivate static UUID
VibrationListener.ReceivingEvent.getProjectileOwner
(Entity p_223833_) void
VibrationListener.VibrationListenerConfig.onSignalReceive
(ServerLevel p_223865_, GameEventListener p_223866_, BlockPos p_223867_, GameEvent p_223868_, Entity p_223869_, Entity p_223870_, float p_223871_) ModifierConstructorDescriptionReceivingEvent
(GameEvent gameEvent, float distance, Vec3 pos, UUID uuid, UUID projectileOwnerUuid, Entity entity) Creates an instance of aReceivingEvent
record class.ReceivingEvent
(GameEvent p_223812_, float p_223813_, Vec3 p_223814_, Entity p_223815_) -
Uses of Entity in net.minecraft.world.level.levelgen.structure.templatesystem
Modifier and TypeMethodDescriptionStructureTemplate.createEntityIgnoreException
(ServerLevelAccessor p_74544_, CompoundTag p_74545_) -
Uses of Entity in net.minecraft.world.level.pathfinder
Modifier and TypeMethodDescriptionPath.getEntityPosAtNode
(Entity p_77383_, int p_77384_) Path.getNextEntityPos
(Entity p_77381_) -
Uses of Entity in net.minecraft.world.level.storage.loot
Modifier and TypeFieldDescriptionprivate final LootContextParam<? extends Entity>
LootContext.EntityTarget.param
Modifier and TypeMethodDescriptionLootContextParam<? extends Entity>
LootContext.EntityTarget.getParam()
ModifierConstructorDescriptionprivate
EntityTarget
(String p_79001_, LootContextParam<? extends Entity> p_79002_) -
Uses of Entity in net.minecraft.world.level.storage.loot.parameters
Modifier and TypeFieldDescriptionstatic final LootContextParam<Entity>
LootContextParams.DIRECT_KILLER_ENTITY
static final LootContextParam<Entity>
LootContextParams.KILLER_ENTITY
static final LootContextParam<Entity>
LootContextParams.THIS_ENTITY
-
Uses of Entity in net.minecraft.world.level.storage.loot.predicates
Modifier and TypeMethodDescriptionprotected boolean
EntityHasScoreCondition.hasScore
(LootContext p_165491_, Entity p_165492_, Scoreboard p_165493_, String p_165494_, IntRange p_165495_) -
Uses of Entity in net.minecraft.world.phys
ModifierConstructorDescriptionEntityHitResult
(Entity p_82439_) EntityHitResult
(Entity p_82441_, Vec3 p_82442_) -
Uses of Entity in net.minecraft.world.phys.shapes
ModifierConstructorDescriptionprotected
EntityCollisionContext
(boolean p_198916_, double p_198917_, ItemStack p_198918_, Predicate<FluidState> p_198919_, Entity p_198920_) protected
EntityCollisionContext
(Entity p_82872_) Deprecated. -
Uses of Entity in net.minecraft.world.scores
-
Uses of Entity in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic String
ForgeHooksClient.getArmorTexture
(Entity entity, ItemStack armor, String _default, EquipmentSlot slot, String type) static boolean
ForgeHooksClient.isNameplateInRenderDistance
(Entity entity, double squareDistance) static void
ForgeHooksClient.loadEntityShader
(Entity entity, GameRenderer entityRenderer) ModifierConstructorDescriptionClientCommandSourceStack
(CommandSource source, Vec3 position, Vec2 rotation, int permission, String plainTextName, Component displayName, Entity executing) -
Uses of Entity in net.minecraftforge.client.event
Modifier and TypeMethodDescription<T extends Entity>
voidEntityRenderersEvent.RegisterRenderers.registerEntityRenderer
(EntityType<? extends T> entityType, EntityRendererProvider<T> entityRendererProvider) Registers an entity renderer for the given entity type.ModifierConstructorDescriptionRenderNameTagEvent
(Entity entity, Component content, EntityRenderer<?> entityRenderer, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, float partialTick) -
Uses of Entity in net.minecraftforge.client.extensions.common
Modifier and TypeMethodDescriptiondefault Vector3d
IClientBlockExtensions.getFogColor
(BlockState state, LevelReader level, BlockPos pos, Entity entity, Vector3d originalColor, float partialTick) NOT CURRENTLY IMPLEMENTED -
Uses of Entity in net.minecraftforge.common
Modifier and TypeMethodDescriptionIMinecartCollisionHandler.getCollisionBox
(AbstractMinecart cart, Entity other) This function replaced the function of the same name in EntityMinecart.static @Nullable CriticalHitEvent
ForgeHooks.getCriticalHit
(Player player, Entity target, boolean vanillaCritical, float damageModifier) static double
ForgeHooks.getEntityVisibilityMultiplier
(LivingEntity entity, Entity lookingEntity, double originalMultiplier) static int
ForgeHooks.getLootingLevel
(Entity target, @Nullable Entity killer, @Nullable DamageSource cause) @Nullable MerchantOffer
BasicItemListing.getOffer
(Entity p_219693_, RandomSource p_219694_) void
IMinecartCollisionHandler.onEntityCollision
(AbstractMinecart cart, Entity other) This basically replaces the function of the same name in EntityMinecart.static void
ForgeHooks.onEntityEnterSection
(Entity entity, long packedOldPos, long packedNewPos) static boolean
ForgeHooks.onFarmlandTrample
(Level level, BlockPos pos, BlockState state, float fallDistance, Entity entity) static InteractionResult
ForgeHooks.onInteractEntity
(Player player, Entity entity, InteractionHand hand) static InteractionResult
ForgeHooks.onInteractEntityAt
(Player player, Entity entity, HitResult ray, InteractionHand hand) static InteractionResult
ForgeHooks.onInteractEntityAt
(Player player, Entity entity, Vec3 vec3d, InteractionHand hand) static boolean
ForgeHooks.onPlayerAttackTarget
(Player player, Entity target) static boolean
ForgeHooks.onTravelToDimension
(Entity entity, ResourceKey<Level> dimension) -
Uses of Entity in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault @Nullable Entity
IForgeItem.createEntity
(Level level, Entity location, ItemStack stack) This function should return a new entity to replace the dropped item.private Entity
IForgeEntity.self()
Modifier and TypeMethodDescriptiondefault boolean
IForgeBlock.addRunningEffects
(BlockState state, Level level, BlockPos pos, Entity entity) Allows a block to override the standard vanilla running particles.default boolean
IForgeBlockState.addRunningEffects
(Level level, BlockPos pos, Entity entity) Allows a block to override the standard vanilla running particles.default boolean
IForgeEntity.canBeRiddenUnderFluidType
(FluidType type, Entity rider) Returns whether the entity can ride in this vehicle under the fluid.default boolean
IForgeBlock.canEntityDestroy
(BlockState state, BlockGetter level, BlockPos pos, Entity entity) Determines if this block is can be destroyed by the specified entities normal behavior.default boolean
IForgeBlockState.canEntityDestroy
(BlockGetter level, BlockPos pos, Entity entity) Determines if this block is can be destroyed by the specified entities normal behavior.default boolean
IForgeItem.canEquip
(ItemStack stack, EquipmentSlot armorType, Entity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default boolean
IForgeItemStack.canEquip
(EquipmentSlot armorType, Entity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default boolean
Checks if the player can attack the passed entity.
On the server, additional leniency is added to account for movement/lag.default boolean
IForgePlayer.canInteractWith
(Entity entity, double padding) Checks if the player can reach (right-click) the passed entity.
On the server, additional leniency is added to account for movement/lag.default boolean
IForgeBlock.collisionExtendsVertically
(BlockState state, BlockGetter level, BlockPos pos, Entity collidingEntity) Determines if this block's collision box should be treated as though it can extend above its block space.default boolean
IForgeBlockState.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 @Nullable Entity
IForgeItem.createEntity
(Level level, Entity location, ItemStack stack) This function should return a new entity to replace the dropped item.default @Nullable String
IForgeItem.getArmorTexture
(ItemStack stack, Entity entity, EquipmentSlot slot, String type) Called by RenderBiped and RenderPlayer to determine the armor texture that should be use for the currently equipped item.default float
IForgeBlock.getFriction
(BlockState state, LevelReader level, BlockPos pos, @Nullable Entity entity) Gets the slipperiness at the given location at the given state.default float
IForgeBlockState.getFriction
(LevelReader level, BlockPos pos, @Nullable Entity entity) Gets the slipperiness at the given location at the given state.default SoundType
IForgeBlock.getSoundType
(BlockState state, LevelReader level, BlockPos pos, @Nullable Entity entity) Sensitive version of getSoundTypedefault SoundType
IForgeBlockState.getSoundType
(LevelReader level, BlockPos pos, @Nullable Entity entity) Sensitive version of getSoundTypedefault @NotNull AABB
IForgeItem.getSweepHitBox
(@NotNull ItemStack stack, @NotNull Player player, @NotNull Entity target) Get a bounding box (AABB
) of a sweep attack.default @NotNull AABB
IForgeItemStack.getSweepHitBox
(@NotNull Player player, @NotNull Entity target) Get a bounding box (AABB
) of a sweep attack.default boolean
IForgeBlock.isBed
(BlockState state, BlockGetter level, BlockPos pos, @Nullable Entity player) Determines if this block is classified as a Bed, Allowing players to sleep in it, though the block has to specifically perform the sleeping functionality in it's activated event.default boolean
IForgePlayer.isCloseEnough
(Entity entity, double dist) Utility check to see if the player is close enough to a target entity.default boolean
IForgeItem.onLeftClickEntity
(ItemStack stack, Player player, Entity entity) Called when the player Left Clicks (attacks) an entity. -
Uses of Entity in net.minecraftforge.common.util
Modifier and TypeClassDescriptionclass
A basic fake server player implementation that can be used to simulate player actions.Modifier and TypeMethodDescriptiondefault Entity
ITeleporter.placeEntity
(Entity entity, ServerLevel currentWorld, ServerLevel destWorld, float yaw, Function<Boolean, Entity> repositionEntity) Called to handle placing the entity in the new world.Modifier and TypeMethodDescriptiondefault @Nullable PortalInfo
ITeleporter.getPortalInfo
(Entity entity, ServerLevel destWorld, Function<ServerLevel, PortalInfo> defaultPortalInfo) Gets the PortalInfo.default Entity
ITeleporter.placeEntity
(Entity entity, ServerLevel currentWorld, ServerLevel destWorld, float yaw, Function<Boolean, Entity> repositionEntity) Called to handle placing the entity in the new world.Modifier and TypeMethodDescriptiondefault Entity
ITeleporter.placeEntity
(Entity entity, ServerLevel currentWorld, ServerLevel destWorld, float yaw, Function<Boolean, Entity> repositionEntity) Called to handle placing the entity in the new world. -
Uses of Entity in net.minecraftforge.common.world
Modifier and TypeMethodDescriptionstatic boolean
ForgeChunkManager.forceChunk
(ServerLevel level, String modId, Entity owner, int chunkX, int chunkZ, boolean add, boolean ticking) Forces a chunk to be loaded for the given mod with the "owner" of the ticket being the UUID of the given entity. -
Uses of Entity in net.minecraftforge.debug.client
Modifier and TypeMethodDescription@Nullable String
CustomArmorModelTest.EndermanArmorItem.getArmorTexture
(ItemStack stack, Entity entity, EquipmentSlot slot, String type) -
Uses of Entity in net.minecraftforge.debug.client.rendering
-
Uses of Entity in net.minecraftforge.debug.entity
Modifier and TypeClassDescriptionprivate static class
private static class
-
Uses of Entity in net.minecraftforge.entity
-
Uses of Entity in net.minecraftforge.event
Modifier and TypeMethodDescription@Nullable Entity
VanillaGameEvent.getCause()
PlayLevelSoundEvent.AtEntity.getEntity()
Returns the entity the sound is being played on.Modifier and TypeMethodDescriptionstatic boolean
ForgeEventFactory.canMountEntity
(Entity entityMounting, Entity entityBeingMounted, boolean isMounting) static EntityEvent.Size
ForgeEventFactory.getEntitySizeForge
(Entity entity, Pose pose, EntityDimensions size, float eyeHeight) static EntityEvent.Size
ForgeEventFactory.getEntitySizeForge
(Entity entity, Pose pose, EntityDimensions oldSize, EntityDimensions newSize, float newEyeHeight) static boolean
ForgeEventFactory.getMobGriefingEvent
(Level level, Entity entity) static boolean
ForgeEventFactory.onBlockPlace
(@Nullable Entity entity, @NotNull BlockSnapshot blockSnapshot, @NotNull Direction direction) static boolean
ForgeEventFactory.onEntityStruckByLightning
(Entity entity, LightningBolt bolt) ForgeEventFactory.onEntityTeleportCommand
(Entity entity, double targetX, double targetY, double targetZ) ForgeEventFactory.onEntityTeleportSpreadPlayersCommand
(Entity entity, double targetX, double targetY, double targetZ) static boolean
ForgeEventFactory.onMultiBlockPlace
(@Nullable Entity entity, List<BlockSnapshot> blockSnapshots, Direction direction) static PlayLevelSoundEvent.AtEntity
ForgeEventFactory.onPlaySoundAtEntity
(Entity entity, SoundEvent name, SoundSource category, float volume, float pitch) static void
ForgeEventFactory.onStartEntityTracking
(Entity entity, Player player) static void
ForgeEventFactory.onStopEntityTracking
(Entity entity, Player player) Modifier and TypeMethodDescriptionstatic void
ForgeEventFactory.onExplosionDetonate
(Level level, Explosion explosion, List<Entity> list, double diameter) ModifierConstructorDescriptionAtEntity
(Entity entity, SoundEvent sound, SoundSource source, float volume, float pitch) -
Uses of Entity in net.minecraftforge.event.entity
Modifier and TypeClassDescriptionstatic class
Modifier and TypeFieldDescriptionprivate final Entity
EntityEvent.entity
private final Entity
EntityMountEvent.entityBeingMounted
private final Entity
EntityMountEvent.entityMounting
Modifier and TypeMethodDescription<T extends Entity>
voidSpawnPlacementRegisterEvent.register
(EntityType<T> entityType, SpawnPlacements.SpawnPredicate<T> predicate) Register an optional spawn placementpredicate
for a givenentityType
<T extends Entity>
voidSpawnPlacementRegisterEvent.register
(EntityType<T> entityType, SpawnPlacements.SpawnPredicate<T> predicate, SpawnPlacementRegisterEvent.Operation operation) Register apredicate
for a givenentityType
with a givenoperation
for handling<T extends Entity>
voidSpawnPlacementRegisterEvent.register
(EntityType<T> entityType, SpawnPlacements.Type placementType, Heightmap.Types heightmap, SpawnPlacements.SpawnPredicate<T> predicate, SpawnPlacementRegisterEvent.Operation operation) Register apredicate
for a givenentityType
andoperation
With the option of changing theplacementType
andheightmap
.Modifier and TypeMethodDescriptionEntityEvent.getEntity()
EntityMountEvent.getEntityBeingMounted()
EntityMountEvent.getEntityMounting()
ModifierConstructorDescriptionEnteringSection
(Entity entity, long packedOldPos, long packedNewPos) EntityConstructing
(Entity entity) EntityEvent
(Entity entity) EntityJoinLevelEvent
(Entity entity, Level level) EntityJoinLevelEvent
(Entity entity, Level level, boolean loadedFromDisk) EntityLeaveLevelEvent
(Entity entity, Level level) EntityMobGriefingEvent
(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, float defaultEyeHeight) Size
(Entity entity, Pose pose, EntityDimensions oldSize, EntityDimensions newSize, float oldEyeHeight, float newEyeHeight) SpreadPlayersCommand
(Entity entity, double targetX, double targetY, double targetZ) TeleportCommand
(Entity entity, double targetX, double targetY, double targetZ) -
Uses of Entity in net.minecraftforge.event.entity.living
Modifier and TypeFieldDescriptionprivate final @Nullable Entity
LivingEvent.LivingVisibilityEvent.lookingEntity
private final Entity
MobEffectEvent.Added.source
Modifier and TypeMethodDescription@Nullable Entity
MobEffectEvent.Added.getEffectSource()
@Nullable Entity
LivingEvent.LivingVisibilityEvent.getLookingEntity()
ModifierConstructorDescriptionAdded
(LivingEntity living, MobEffectInstance oldEffectInstance, MobEffectInstance newEffectInstance, Entity source) LivingVisibilityEvent
(LivingEntity livingEntity, @Nullable Entity lookingEntity, double originalMultiplier) -
Uses of Entity in net.minecraftforge.event.entity.player
Modifier and TypeFieldDescriptionprivate final Entity
AttackEntityEvent.target
private final Entity
CriticalHitEvent.target
private final Entity
PlayerEvent.StartTracking.target
private final Entity
PlayerEvent.StopTracking.target
private final Entity
PlayerInteractEvent.EntityInteract.target
private final Entity
PlayerInteractEvent.EntityInteractSpecific.target
Modifier and TypeMethodDescriptionAttackEntityEvent.getTarget()
CriticalHitEvent.getTarget()
The Entity that was damaged 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()
ModifierConstructorDescriptionAttackEntityEvent
(Player player, Entity target) CriticalHitEvent
(Player player, Entity target, float damageModifier, boolean vanillaCritical) 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) -
Uses of Entity in net.minecraftforge.event.level
Modifier and TypeFieldDescriptionprivate final Entity
BlockEvent.EntityPlaceEvent.entity
private final Entity
BlockEvent.FarmlandTrampleEvent.entity
Modifier and TypeMethodDescription@Nullable Entity
BlockEvent.EntityPlaceEvent.getEntity()
BlockEvent.FarmlandTrampleEvent.getEntity()
Modifier and TypeMethodDescriptionExplosionEvent.Detonate.getAffectedEntities()
return the list of entities affected by the explosion.ModifierConstructorDescriptionEntityMultiPlaceEvent
(@NotNull List<BlockSnapshot> blockSnapshots, @NotNull BlockState placedAgainst, @Nullable Entity entity) EntityPlaceEvent
(@NotNull BlockSnapshot blockSnapshot, @NotNull BlockState placedAgainst, @Nullable Entity entity) FarmlandTrampleEvent
(Level level, BlockPos pos, BlockState state, float fallDistance, Entity entity) -
Uses of Entity in net.minecraftforge.fluids
Modifier and TypeMethodDescriptionboolean
FluidType.canExtinguish
(Entity entity) Returns whether the entity can be extinguished by this fluid.boolean
FluidType.canHydrate
(Entity entity) Returns whether the entity can be hydrated by this fluid.boolean
FluidType.canPushEntity
(Entity entity) Returns whether the fluid can push an entity.boolean
FluidType.canRideVehicleUnder
(Entity vehicle, Entity rider) Returns whether the entity can ride in this vehicle under the fluid.boolean
Returns whether the entity can swim in the fluid.float
FluidType.getFallDistanceModifier
(Entity entity) Returns how much the fluid should scale the damage done to a falling entity when hitting the ground per tick.@Nullable SoundEvent
FluidType.getSound
(Entity entity, SoundAction action) Returns a sound to play when a certain action is performed by the entity in the fluid.double
FluidType.motionScale
(Entity entity) Returns how much the velocity of the fluid should be scaled by when applied to an entity. -
Uses of Entity in net.minecraftforge.network
Modifier and TypeFieldDescriptionstatic final PacketDistributor<Entity>
PacketDistributor.TRACKING_ENTITY
Send to all tracking the Entity in the Supplier
PacketDistributor.with(Supplier)
Entitystatic final PacketDistributor<Entity>
PacketDistributor.TRACKING_ENTITY_AND_SELF
Send to all tracking the Entity and Player in the Supplier
PacketDistributor.with(Supplier)
EntityModifier and TypeMethodDescriptionstatic Packet<?>
NetworkHooks.getEntitySpawningPacket
(Entity entity) Modifier and TypeMethodDescriptionPacketDistributor.trackingEntity
(Supplier<Entity> entitySupplier) PacketDistributor.trackingEntityAndSelf
(Supplier<Entity> entitySupplier) -
Uses of Entity in net.minecraftforge.server.timings
Modifier and TypeFieldDescriptionstatic final TimeTracker<Entity>
TimeTracker.ENTITY_UPDATE
A tracker for timing entity updates