Uses of Class
net.minecraft.entity.Entity
Package
Description
-
Uses of Entity in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionvoid
PlayerInteractedWithEntityCriterion.test
(ServerPlayerEntity player, ItemStack stack, Entity entity) void
EffectsChangedCriterion.trigger
(ServerPlayerEntity player, @Nullable Entity source) void
OnKilledCriterion.trigger
(ServerPlayerEntity player, Entity entity, DamageSource killingDamage) void
PlayerHurtEntityCriterion.trigger
(ServerPlayerEntity player, Entity entity, DamageSource damage, float dealt, float taken, boolean blocked) void
SummonedEntityCriterion.trigger
(ServerPlayerEntity player, Entity entity) void
TargetHitCriterion.trigger
(ServerPlayerEntity player, Entity projectile, Vec3d hitPos, int signalStrength) void
ThrownItemPickedUpByEntityCriterion.trigger
(ServerPlayerEntity player, ItemStack stack, Entity entity) Modifier and TypeMethodDescriptionvoid
LightningStrikeCriterion.test
(ServerPlayerEntity player, LightningEntity lightning, List<Entity> bystanders) void
ChanneledLightningCriterion.trigger
(ServerPlayerEntity player, Collection<? extends Entity> victims) void
KilledByCrossbowCriterion.trigger
(ServerPlayerEntity player, Collection<Entity> piercingKilledEntities) -
Uses of Entity in net.minecraft.block
Modifier and TypeMethodDescriptionEntityShapeContext.getEntity()
LandingBlock.getEntityPredicate()
PointedDripstoneBlock.getEntityPredicate()
Modifier and TypeMethodDescriptionprivate void
HoneyBlock.addCollisionEffects
(World world, Entity entity) private static void
HoneyBlock.addParticles
(Entity entity, int count) static void
HoneyBlock.addRegularParticles
(Entity entity) static void
HoneyBlock.addRichParticles
(Entity entity) private void
private void
BedBlock.bounceEntity
(Entity entity) private boolean
static boolean
PowderSnowBlock.canWalkOnPowderSnow
(Entity entity) static void
Block.dropStacks
(BlockState state, World world, BlockPos pos, @Nullable BlockEntity blockEntity, Entity entity, ItemStack stack) static void
CampfireBlock.extinguish
(@Nullable Entity entity, WorldAccess world, BlockPos pos, BlockState state) Block.getDroppedStacks
(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack) private static boolean
HoneyBlock.hasHoneyBlockEffects
(Entity entity) final boolean
AbstractBlock.AbstractBlockState.hasSolidTopSurface
(BlockView world, BlockPos pos, Entity entity) final boolean
AbstractBlock.AbstractBlockState.hasSolidTopSurface
(BlockView world, BlockPos pos, Entity entity, Direction direction) private static boolean
BigDripleafBlock.isEntityAbove
(BlockPos pos, Entity entity) protected boolean
AbstractCauldronBlock.isEntityTouchingFluid
(BlockState state, BlockPos pos, Entity entity) private boolean
static ShapeContext
void
AbstractBlock.AbstractBlockState.onEntityCollision
(World world, BlockPos pos, Entity entity) void
AbstractBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Deprecated.void
AbstractButtonBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
AbstractFireBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
AbstractPressurePlateBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
BigDripleafBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
BubbleColumnBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
CactusBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
CampfireBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
CobwebBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
CropBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
DetectorRailBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
EndPortalBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
HoneyBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
HopperBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
LavaCauldronBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
LeveledCauldronBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
LilyPadBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
NetherPortalBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
PowderSnowBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
SweetBerryBushBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
TripwireBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
WitherRoseBlock.onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) void
BedBlock.onEntityLand
(BlockView world, Entity entity) void
Block.onEntityLand
(BlockView world, Entity entity) void
SlimeBlock.onEntityLand
(BlockView world, Entity entity) void
BedBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
Block.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
FarmlandBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
HayBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
HoneyBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
PointedDripstoneBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
SlimeBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
TurtleEggBlock.onLandedUpon
(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) void
Block.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
MagmaBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
RedstoneOreBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
SlimeBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
StairsBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.void
TurtleEggBlock.onSteppedOn
(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.boolean
void
DoorBlock.setOpen
(@Nullable Entity entity, World world, BlockState state, BlockPos pos, boolean open) private static int
TargetBlock.trigger
(WorldAccess world, BlockState state, BlockHitResult hitResult, Entity entity) private void
HoneyBlock.triggerAdvancement
(Entity entity, BlockPos pos) private void
TurtleEggBlock.tryBreakEgg
(World world, BlockState state, BlockPos pos, Entity entity, int inverseChance) protected void
AbstractPressurePlateBlock.updatePlateState
(@Nullable Entity entity, World world, BlockPos pos, BlockState state, int output) private void
HoneyBlock.updateSlidingVelocity
(Entity entity) -
Uses of Entity in net.minecraft.block.dispenser
Modifier and TypeMethodDescriptionstatic void
DispenserBehavior.setEntityPosition
(BlockPointer pointer, Entity entity, Direction direction) -
Uses of Entity in net.minecraft.block.entity
Modifier and TypeMethodDescriptionBeehiveBlockEntity.tryReleaseBee
(BlockState state, BeehiveBlockEntity.BeeState beeState) Modifier and TypeMethodDescriptionboolean
SculkSensorBlockEntity.accepts
(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity) Returns whether the callback wants to accept this event.private static boolean
PistonBlockEntity.canMoveEntity
(Box box, Entity entity) static boolean
EndGatewayBlockEntity.canTeleport
(Entity entity) private static void
PistonBlockEntity.moveEntity
(Direction direction, Entity entity, double double2, Direction direction2) static void
HopperBlockEntity.onEntityCollided
(World world, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity) private static void
private static void
ConduitBlockEntity.spawnNautilusParticles
(World world, BlockPos pos, List<BlockPos> activatingBlocks, @Nullable Entity entity, int int2) void
BeehiveBlockEntity.tryEnterHive
(Entity entity, boolean hasNectar) void
BeehiveBlockEntity.tryEnterHive
(Entity entity, boolean hasNectar, int ticksInHive) static void
EndGatewayBlockEntity.tryTeleportingEntity
(World world, BlockPos pos, BlockState state, Entity entity, EndGatewayBlockEntity blockEntity) Modifier and TypeMethodDescriptionprivate static boolean
BeehiveBlockEntity.releaseBee
(World world, BlockPos pos, BlockState state, BeehiveBlockEntity.Bee bee, @Nullable List<Entity> entities, BeehiveBlockEntity.BeeState beeState, @Nullable BlockPos flowerPos) -
Uses of Entity in net.minecraft.client
Modifier and TypeMethodDescriptionboolean
MinecraftClient.hasOutline
(Entity entity) Checks if the providedentity
should display an outline around its model.void
MinecraftClient.setCameraEntity
(Entity entity) -
Uses of Entity in net.minecraft.client.gui.hud
Modifier and TypeMethodDescriptionprivate void
InGameHud.renderVignetteOverlay
(Entity entity) private void
InGameHud.updateVignetteDarkness
(Entity entity) -
Uses of Entity in net.minecraft.client.network
Modifier and TypeClassDescriptionclass
class
Represents the client's own player entity.class
Represents a player entity that is present on the client but is not the client's own player.Modifier and TypeMethodDescriptionvoid
ClientPlayerEntity.addCritParticles
(Entity target) void
ClientPlayerEntity.addEnchantedHitParticles
(Entity target) void
ClientPlayerInteractionManager.attackEntity
(PlayerEntity player, Entity target) ClientPlayerInteractionManager.interactEntity
(PlayerEntity player, Entity entity, Hand hand) ClientPlayerInteractionManager.interactEntityAtLocation
(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand) boolean
ClientPlayerEntity.startRiding
(Entity entity, boolean force) -
Uses of Entity in net.minecraft.client.particle
Modifier and TypeFieldDescriptionprivate final Entity
EmitterParticle.entity
private final Entity
ItemPickupParticle.interactingEntity
private final Entity
ItemPickupParticle.itemEntity
Modifier and TypeMethodDescriptionvoid
ParticleManager.addEmitter
(Entity entity, ParticleEffect parameters) void
ParticleManager.addEmitter
(Entity entity, ParticleEffect parameters, int maxAge) private Entity
ModifierConstructorDescriptionEmitterParticle
(ClientWorld world, Entity entity, ParticleEffect parameters) EmitterParticle
(ClientWorld world, Entity entity, ParticleEffect parameters, int maxEmitterAge) private
EmitterParticle
(ClientWorld world, Entity entity, ParticleEffect parameters, int maxEmitterAge, Vec3d velocity) ItemPickupParticle
(EntityRenderDispatcher dispatcher, BufferBuilderStorage bufferStorage, ClientWorld world, Entity itemEntity, Entity interactingEntity) private
ItemPickupParticle
(EntityRenderDispatcher dispatcher, BufferBuilderStorage bufferStorage, ClientWorld world, Entity itemEntity, Entity interactingEntity, Vec3d velocity) -
Uses of Entity in net.minecraft.client.render
Modifier and TypeMethodDescriptionprivate void
WorldRenderer.drawBlockOutline
(MatrixStack matrices, VertexConsumer vertexConsumer, Entity entity, double double2, double double3, double double4, BlockPos blockPos, BlockState blockState) void
GameRenderer.onCameraEntitySet
(@Nullable Entity entity) private void
WorldRenderer.renderEntity
(Entity entity, double cameraX, double cameraY, double cameraZ, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers) void
Camera.update
(BlockView area, Entity focusedEntity, boolean thirdPerson, boolean inverseView, float tickDelta) -
Uses of Entity in net.minecraft.client.render.debug
Modifier and TypeMethodDescriptionDebugRenderer.getTargetedEntity
(@Nullable Entity entity, int maxDistance) -
Uses of Entity in net.minecraft.client.render.entity
Modifier and TypeClassDescriptionclass
EmptyEntityRenderer<T extends Entity>
A renderer that does not render anything.class
EntityRenderer<T extends Entity>
interface
EntityRendererFactory<T extends Entity>
class
FlyingItemEntityRenderer<T extends Entity & FlyingItemEntity>
Modifier and TypeMethodDescription<E extends Entity>
intEntityRenderDispatcher.getLight
(E entity, float tickDelta) <T extends Entity>
EntityRenderer<? super T>EntityRenderDispatcher.getRenderer
(T entity) private <E extends Entity>
voidMobEntityRenderer.method_4073
(T entity, float tickDelta, MatrixStack matrices, VertexConsumerProvider provider, E holdingEntity) private static <T extends Entity>
voidEntityRenderers.register
(EntityType<? extends T> type, EntityRendererFactory<T> factory) <E extends Entity>
voidEntityRenderDispatcher.render
(E entity, double x, double y, double z, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) <E extends Entity>
booleanEntityRenderDispatcher.shouldRender
(E entity, Frustum frustum, double x, double y, double z) Modifier and TypeMethodDescriptionvoid
double
EntityRenderDispatcher.getSquaredDistanceToCamera
(Entity entity) FlyingItemEntityRenderer.getTexture
(Entity entity) private void
EntityRenderDispatcher.renderFire
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, Entity entity) private static void
EntityRenderDispatcher.renderHitbox
(MatrixStack matrices, VertexConsumer vertices, Entity entity, float tickDelta) private static void
EntityRenderDispatcher.renderShadow
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, Entity entity, float opacity, float tickDelta, WorldView world, float radius) -
Uses of Entity in net.minecraft.client.render.entity.feature
Modifier and TypeClassDescriptionclass
EnergySwirlOverlayFeatureRenderer<T extends Entity & SkinOverlayOwner,
M extends EntityModel<T>> class
EyesFeatureRenderer<T extends Entity,
M extends EntityModel<T>> class
FeatureRenderer<T extends Entity,
M extends EntityModel<T>> interface
FeatureRendererContext<T extends Entity,
M extends EntityModel<T>> class
SaddleFeatureRenderer<T extends Entity & Saddleable,
M extends EntityModel<T>> class
SpiderEyesFeatureRenderer<T extends Entity,
M extends SpiderEntityModel<T>> Modifier and TypeMethodDescriptionprotected void
StuckArrowsFeatureRenderer.renderObject
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, Entity entity, float directionX, float directionY, float directionZ, float tickDelta) protected abstract void
StuckObjectsFeatureRenderer.renderObject
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, Entity entity, float directionX, float directionY, float directionZ, float tickDelta) protected void
StuckStingersFeatureRenderer.renderObject
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, Entity entity, float directionX, float directionY, float directionZ, float tickDelta) -
Uses of Entity in net.minecraft.client.render.entity.model
Modifier and TypeClassDescriptionclass
AnimalModel<E extends Entity>
class
BlazeEntityModel<T extends Entity>
Represents the model of a blaze-like entity.class
ChickenEntityModel<T extends Entity>
Represents the model of a chicken-like entity.class
CodEntityModel<T extends Entity>
Represents the model of a cod-like entity.class
CompositeEntityModel<E extends Entity>
class
CowEntityModel<T extends Entity>
Represents the model of a cow-like entity.class
CreeperEntityModel<T extends Entity>
Represents the model of a creeper-like entity.class
DolphinEntityModel<T extends Entity>
Represents the model of a dolphin-like entity.class
EndermiteEntityModel<T extends Entity>
Represents the model of an endermite-like entity.class
EntityModel<T extends Entity>
Represents the model of an Entity.class
EvokerFangsEntityModel<T extends Entity>
Represents the model of an evoker-fangs-like entity.class
GhastEntityModel<T extends Entity>
Represents the model of a ghast-like entity.class
LargePufferfishEntityModel<T extends Entity>
class
LargeTropicalFishEntityModel<T extends Entity>
class
LeashKnotEntityModel<T extends Entity>
Represents the model of a leash-knot-like entity.class
LlamaSpitEntityModel<T extends Entity>
Represents the model of llama-spit-like entity.class
MediumPufferfishEntityModel<T extends Entity>
class
MinecartEntityModel<T extends Entity>
Represents the model of a minecart-like entity.class
OcelotEntityModel<T extends Entity>
Represents the model of an ocelot-like entity.class
PigEntityModel<T extends Entity>
Represents the model of a pig-like entity.class
QuadrupedEntityModel<T extends Entity>
Represents the model of a quadruped entity.class
SalmonEntityModel<T extends Entity>
class
ShulkerBulletEntityModel<T extends Entity>
Represents the model of shulker-bullet-like entity.class
SilverfishEntityModel<T extends Entity>
class
SinglePartEntityModel<E extends Entity>
class
SlimeEntityModel<T extends Entity>
class
SmallPufferfishEntityModel<T extends Entity>
class
SmallTropicalFishEntityModel<T extends Entity>
class
SnowGolemEntityModel<T extends Entity>
class
SpiderEntityModel<T extends Entity>
class
SquidEntityModel<T extends Entity>
Represents the model of a squid-like entity.class
TintableAnimalModel<E extends Entity>
class
TintableCompositeModel<E extends Entity>
class
VillagerResemblingModel<T extends Entity>
Represents the model of a villager resembling entity.class
WitchEntityModel<T extends Entity>
Represents the model of a witch resembling entity. -
Uses of Entity in net.minecraft.client.sound
ModifierConstructorDescriptionEntityTrackingSoundInstance
(SoundEvent sound, SoundCategory category, float volume, float pitch, Entity entity) -
Uses of Entity in net.minecraft.client.world
Modifier and TypeFieldDescriptionprivate final ClientEntityManager<Entity>
ClientWorld.entityManager
Modifier and TypeMethodDescriptionClientWorld.getEntities()
protected EntityLookup<Entity>
ClientWorld.getEntityLookup()
Modifier and TypeMethodDescriptionvoid
private void
ClientWorld.addEntityPrivate
(int id, Entity entity) void
void
void
ClientWorld.emitGameEvent
(@Nullable Entity entity, GameEvent event, BlockPos pos) void
ClientWorld.playSoundFromEntity
(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) void
ClientWorld.ClientEntityHandler.startTicking
(Entity entity) void
ClientWorld.ClientEntityHandler.startTracking
(Entity entity) void
ClientWorld.ClientEntityHandler.stopTicking
(Entity entity) void
ClientWorld.ClientEntityHandler.stopTracking
(Entity entity) void
ClientWorld.tickEntity
(Entity entity) private void
ClientWorld.tickPassenger
(Entity entity, Entity passenger) -
Uses of Entity in net.minecraft.command
Modifier and TypeFieldDescriptionstatic final BiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.ARBITRARY
EntitySelector.basePredicate
private TypeFilter<Entity,
?> EntitySelector.entityFilter
static final BiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.FURTHEST
static final BiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.NEAREST
private static final TypeFilter<Entity,
?> EntitySelector.PASSTHROUGH_FILTER
EntitySelectorReader.predicate
static final BiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.RANDOM
private final BiConsumer<Vec3d,
List<? extends Entity>> EntitySelector.sorter
private BiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.sorter
Modifier and TypeMethodDescriptionEntitySelector.getEntity
(ServerCommandSource serverCommandSource) Modifier and TypeMethodDescriptionEntitySelector.getEntities
(ServerCommandSource serverCommandSource) EntitySelector.getPositionPredicate
(Vec3d vec3d) BiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.getSorter()
EntitySelectorReader.rotationPredicate
(FloatRangeArgument angleRange, ToDoubleFunction<Entity> entityToAngle) Modifier and TypeMethodDescriptionprivate void
EntitySelector.appendEntitiesFromWorld
(List<Entity> list, ServerWorld serverWorld, Vec3d vec3d, Predicate<Entity> predicate) private void
EntitySelector.appendEntitiesFromWorld
(List<Entity> list, ServerWorld serverWorld, Vec3d vec3d, Predicate<Entity> predicate) static Text
EntitySelectorReader.rotationPredicate
(FloatRangeArgument angleRange, ToDoubleFunction<Entity> entityToAngle) void
EntitySelectorReader.setPredicate
(Predicate<Entity> predicate) void
EntitySelectorReader.setSorter
(BiConsumer<Vec3d, List<? extends Entity>> sorter) ModifierConstructorDescriptionEntitySelector
(int count, boolean includesNonPlayers, boolean localWorldOnly, Predicate<Entity> basePredicate, NumberRange.FloatRange distance, Function<Vec3d, Vec3d> positionOffset, @Nullable Box box, BiConsumer<Vec3d, List<? extends Entity>> sorter, boolean senderOnly, @Nullable String playerName, @Nullable UUID uuid, @Nullable EntityType<?> type, boolean usesAt) EntitySelector
(int count, boolean includesNonPlayers, boolean localWorldOnly, Predicate<Entity> basePredicate, NumberRange.FloatRange distance, Function<Vec3d, Vec3d> positionOffset, @Nullable Box box, BiConsumer<Vec3d, List<? extends Entity>> sorter, boolean senderOnly, @Nullable String playerName, @Nullable UUID uuid, @Nullable EntityType<?> type, boolean usesAt) -
Uses of Entity in net.minecraft.command.argument
Modifier and TypeFieldDescriptionprivate final BiFunction<Vec3d,
Entity, Vec3d> EntityAnchorArgumentType.EntityAnchor.offset
Modifier and TypeMethodDescriptionstatic Entity
EntityArgumentType.getEntity
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) Modifier and TypeMethodDescriptionstatic Collection<? extends Entity>
EntityArgumentType.getEntities
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Collection<? extends Entity>
EntityArgumentType.getOptionalEntities
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) Modifier and TypeMethodDescriptionEntityAnchorArgumentType.EntityAnchor.positionAt
(Entity entity) ModifierConstructorDescriptionprivate
EntityAnchor
(String id, BiFunction<Vec3d, Entity, Vec3d> offset) -
Uses of Entity in net.minecraft.enchantment
Modifier and TypeMethodDescriptionvoid
DamageEnchantment.onTargetDamaged
(LivingEntity user, Entity target, int level) void
Enchantment.onTargetDamaged
(LivingEntity user, Entity target, int level) static void
EnchantmentHelper.onTargetDamaged
(LivingEntity user, Entity target) void
Enchantment.onUserDamaged
(LivingEntity user, Entity attacker, int level) static void
EnchantmentHelper.onUserDamaged
(LivingEntity user, Entity attacker) void
ThornsEnchantment.onUserDamaged
(LivingEntity user, Entity attacker, int level) -
Uses of Entity in net.minecraft.entity
Modifier and TypeClassDescriptionclass
EntityType<T extends Entity>
static class
EntityType.Builder<T extends Entity>
static interface
EntityType.EntityFactory<T extends Entity>
static interface
SpawnRestriction.SpawnPredicate<T extends Entity>
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
Represents an entity which has a health value and can receive damage.class
class
Modifier and TypeFieldDescriptionAreaEffectCloudEntity.affectedEntities
private ImmutableList<Entity>
Entity.passengerList
LightningEntity.struckEntities
Modifier and TypeMethodDescriptionstatic <T extends Entity>
booleanSpawnRestriction.canSpawn
(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static <T extends Entity>
EntityType.Builder<T>EntityType.Builder.create
(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup) static <T extends Entity>
EntityType.Builder<T>EntityType.Builder.create
(SpawnGroup spawnGroup) private static <T extends Entity>
EntityType<T>EntityType.register
(String id, EntityType.Builder<T> type) Modifier and TypeMethodDescriptionEntityType.createInstanceFromId
(int type, World world) Entity.getFirstPassenger()
Tameable.getOwner()
Entity.getPrimaryPassenger()
Entity.getRootVehicle()
Gets the lowest entity this entity is riding.Entity.getVehicle()
EntityType.loadEntityWithPassengers
(NbtCompound nbt, World world, Function<Entity, Entity> entityProcessor) Entity.moveToWorld
(ServerWorld destination) Moves this entity to another world.ItemEntity.moveToWorld
(ServerWorld destination) Moves this entity to another world.EntityType.newInstance
(World world, @Nullable EntityType<?> type) EntityType.spawnFromItemStack
(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) Modifier and TypeMethodDescriptionEntityType.getBaseClass()
EntityType.getEntityFromNbt
(NbtCompound nbt, World world) Entity.getPassengerList()
Entity.getPassengersDeep()
LightningEntity.getStruckEntities()
EntityType.loadEntityFromNbt
(NbtCompound nbt, World world) EntityType.streamFromNbt
(List<? extends NbtElement> entityNbtList, World world) Entity.streamIntoPassengers()
Entity.streamPassengersAndSelf()
Returns a stream consisting of this entity and its passengers in which this entity's passengers are iterated before this entity.Entity.streamSelfAndPassengers()
Returns a stream consisting of this entity and its passengers recursively.Modifier and TypeMethodDescriptionvoid
protected void
Entity.addPassenger
(Entity passenger) protected void
MarkerEntity.addPassenger
(Entity passenger) boolean
LivingEntity.addStatusEffect
(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity.static Vec3d
Entity.adjustMovementForCollisions
(@Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, ShapeContext context, ReusableStream<VoxelShape> collisions) void
Entity.applyDamageEffects
(LivingEntity attacker, Entity target) Applies damage effects toattacker
ortarget
.protected boolean
Entity.canAddPassenger
(Entity passenger) boolean
protected boolean
Entity.canStartRiding
(Entity entity) boolean
Entity.collidesWith
(Entity other) void
void
Entity.copyPositionAndRotation
(Entity entity) float
Entity.distanceTo
(Entity entity) void
Entity.emitGameEvent
(GameEvent event, @Nullable Entity entity) void
Entity.emitGameEvent
(GameEvent event, @Nullable Entity entity, BlockPos pos) double
LivingEntity.getAttackDistanceScalingFactor
(@Nullable Entity entity) boolean
Entity.handleAttack
(Entity attacker) boolean
Entity.hasPassenger
(Entity passenger) boolean
Entity.hasPassengerDeep
(Entity passenger) boolean
Entity.isConnectedThroughVehicle
(Entity entity) Checks if this entity and another entity share the same root vehicle.boolean
Checks if the distance between this entity and theother
entity is less thanradius
.boolean
boolean
Entity.isTeammate
(Entity other) static void
EntityType.loadFromEntityNbt
(World world, @Nullable PlayerEntity player, @Nullable Entity entity, @Nullable NbtCompound itemNbt) void
LivingEntity.onAttacking
(Entity target) private void
LivingEntity.onDismounted
(Entity vehicle) void
InteractionObserver.onInteractionWith
(EntityInteraction interaction, Entity entity) void
Entity.onPassengerLookAround
(Entity passenger) protected void
LivingEntity.onStatusEffectApplied
(StatusEffectInstance effect, @Nullable Entity source) protected void
LivingEntity.onStatusEffectUpgraded
(StatusEffectInstance effect, boolean reapplyEffect, @Nullable Entity source) protected void
void
Entity.pushAwayFrom
(Entity entity) void
LivingEntity.pushAwayFrom
(Entity entity) protected void
Entity.removePassenger
(Entity passenger) void
LivingEntity.sendPickup
(Entity item, int count) void
LivingEntity.setStatusEffect
(StatusEffectInstance effect, @Nullable Entity source) Sets a status effect in this entity.double
Entity.squaredDistanceTo
(Entity entity) boolean
Entity.startRiding
(Entity entity) boolean
Entity.startRiding
(Entity entity, boolean force) boolean
void
Entity.updateKilledAdvancementCriterion
(Entity killer, int score, DamageSource damageSource) void
Entity.updatePassengerPosition
(Entity passenger) private void
Entity.updatePassengerPosition
(Entity passenger, Entity.PositionUpdater positionUpdater) Modifier and TypeMethodDescriptionboolean
Entity.hasPassengerType
(Predicate<Entity> predicate) EntityType.loadEntityWithPassengers
(NbtCompound nbt, World world, Function<Entity, Entity> entityProcessor) EntityType.loadEntityWithPassengers
(NbtCompound nbt, World world, Function<Entity, Entity> entityProcessor) -
Uses of Entity in net.minecraft.entity.ai.brain
Modifier and TypeFieldDescriptionstatic final MemoryModuleType<Entity>
MemoryModuleType.RIDE_TARGET
ModifierConstructorDescriptionEntityLookTarget
(Entity entity, boolean useEyeHeight) WalkTarget
(Entity entity, float speed, int completionRange) -
Uses of Entity in net.minecraft.entity.ai.brain.task
Modifier and TypeFieldDescriptionprivate final BiPredicate<E,
Entity> RidingTask.alternativeRideCondition
Modifier and TypeMethodDescriptionstatic GoToRememberedPositionTask<? extends Entity>
GoToRememberedPositionTask.toEntity
(MemoryModuleType<? extends Entity> memoryType, float speed, int range, boolean requiresWalkTarget) Modifier and TypeMethodDescriptionprivate boolean
RidingTask.canRideTarget
(E entity, Entity target) static void
LookTargetUtil.walkTowards
(LivingEntity entity, Entity target, float speed, int completionRange) Modifier and TypeMethodDescriptionstatic GoToRememberedPositionTask<? extends Entity>
GoToRememberedPositionTask.toEntity
(MemoryModuleType<? extends Entity> memoryType, float speed, int range, boolean requiresWalkTarget) ModifierConstructorDescriptionRidingTask
(int range, BiPredicate<E, Entity> alternativeRideCondition) -
Uses of Entity in net.minecraft.entity.ai.control
-
Uses of Entity in net.minecraft.entity.ai.goal
Modifier and TypeMethodDescriptionEscapeDangerGoal.locateClosestWater
(BlockView blockView, Entity entity, int rangeX, int rangeY) -
Uses of Entity in net.minecraft.entity.ai.pathing
Modifier and TypeMethodDescriptionBirdNavigation.findPathTo
(Entity entity, int distance) EntityNavigation.findPathTo
(Entity entity, int distance) MobNavigation.findPathTo
(Entity entity, int distance) SpiderNavigation.findPathTo
(Entity entity, int distance) Path.getNodePosition
(Entity entity) Path.getNodePosition
(Entity entity, int index) boolean
EntityNavigation.startMovingTo
(Entity entity, double speed) boolean
SpiderNavigation.startMovingTo
(Entity entity, double speed) -
Uses of Entity in net.minecraft.entity.boss
-
Uses of Entity in net.minecraft.entity.boss.dragon
Modifier and TypeMethodDescriptionprotected boolean
EnderDragonEntity.canStartRiding
(Entity entity) boolean
Modifier and TypeMethodDescriptionprivate void
EnderDragonEntity.damageLivingEntities
(List<Entity> entities) private void
EnderDragonEntity.launchLivingEntities
(List<Entity> entities) -
Uses of Entity in net.minecraft.entity.damage
Modifier and TypeFieldDescriptionProjectileDamageSource.attacker
protected final Entity
EntityDamageSource.source
Modifier and TypeMethodDescriptionDamageRecord.getAttacker()
DamageSource.getAttacker()
EntityDamageSource.getAttacker()
ProjectileDamageSource.getAttacker()
DamageSource.getSource()
ProjectileDamageSource.getSource()
Modifier and TypeMethodDescriptionstatic DamageSource
DamageSource.arrow
(PersistentProjectileEntity projectile, @Nullable Entity attacker) static DamageSource
DamageSource.fireball
(AbstractFireballEntity fireball, @Nullable Entity attacker) static DamageSource
DamageSource.firework
(FireworkRocketEntity firework, @Nullable Entity attacker) static DamageSource
static DamageSource
DamageSource.mobProjectile
(Entity projectile, @Nullable LivingEntity attacker) static DamageSource
static DamageSource
DamageSource.thrownProjectile
(Entity projectile, @Nullable Entity attacker) static DamageSource
static DamageSource
DamageSource.witherSkull
(WitherSkullEntity witherSkull, Entity attacker) ModifierConstructorDescriptionEntityDamageSource
(String name, Entity source) ProjectileDamageSource
(String name, Entity projectile, @Nullable Entity attacker) -
Uses of Entity in net.minecraft.entity.data
Modifier and TypeFieldDescriptionprivate static final Object2IntMap<Class<? extends Entity>>
DataTracker.TRACKED_ENTITIES
Modifier and TypeMethodDescriptionstatic <T> TrackedData<T>
DataTracker.registerData
(Class<? extends Entity> entityClass, TrackedDataHandler<T> dataHandler) -
Uses of Entity in net.minecraft.entity.decoration
Modifier and TypeClassDescriptionclass
class
class
class
class
class
Modifier and TypeFieldDescriptionAbstractDecorationEntity.PREDICATE
ArmorStandEntity.RIDEABLE_MINECART_PREDICATE
Modifier and TypeMethodDescriptionprivate void
ItemFrameEntity.dropHeldStack
(@Nullable Entity entity, boolean alwaysDrop) boolean
AbstractDecorationEntity.handleAttack
(Entity attacker) boolean
ArmorStandEntity.handleAttack
(Entity attacker) abstract void
void
void
protected void
-
Uses of Entity in net.minecraft.entity.decoration.painting
-
Uses of Entity in net.minecraft.entity.effect
Modifier and TypeMethodDescriptionvoid
StatusEffect.applyInstantEffect
(@Nullable Entity source, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity) -
Uses of Entity in net.minecraft.entity.mob
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
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionMobVisibilityCache.invisibleEntities
RavagerEntity.IS_NOT_RAVAGER
MobVisibilityCache.visibleEntities
Modifier and TypeMethodDescriptionMobEntity.getHoldingEntity()
RavagerEntity.getPrimaryPassenger()
private Entity
PiglinEntity.getTopMostPassenger
(Entity entity, int maxLevel) Returns the passenger entity atmaxLevel
in a stacked riding (riding on an entity that is riding on another entity, etc).Modifier and TypeMethodDescriptionvoid
MobEntity.attachLeash
(Entity entity, boolean sendPacket) private static boolean
PiglinBrain.canRide
(PiglinEntity piglin, Entity ridden) boolean
boolean
private Entity
PiglinEntity.getTopMostPassenger
(Entity entity, int maxLevel) Returns the passenger entity atmaxLevel
in a stacked riding (riding on an entity that is riding on another entity, etc).boolean
EvokerEntity.isTeammate
(Entity other) boolean
IllusionerEntity.isTeammate
(Entity other) boolean
PillagerEntity.isTeammate
(Entity other) boolean
VindicatorEntity.isTeammate
(Entity other) private void
void
MobEntity.lookAtEntity
(Entity targetEntity, float maxYawChange, float maxPitchChange) void
ShulkerEntity.pushAwayFrom
(Entity entity) void
SlimeEntity.pushAwayFrom
(Entity entity) boolean
MobEntity.startRiding
(Entity entity, boolean force) boolean
PiglinEntity.startRiding
(Entity entity, boolean force) boolean
ShulkerEntity.startRiding
(Entity entity, boolean force) (package private) boolean
EndermanEntity.teleportTo
(Entity entity) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Uses of Entity in net.minecraft.entity.passive
Modifier and TypeClassDescriptionclass
class
class
Represents an axolotl, the cutest predator.class
class
class
Meow.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
class
class
class
Modifier and TypeFieldDescriptionFoxEntity.CHICKEN_AND_RABBIT_FILTER
FoxEntity.JUST_ATTACKED_SOMETHING_FILTER
FoxEntity.NOTICEABLE_PLAYER_FILTER
Modifier and TypeMethodDescriptionHorseBaseEntity.getPrimaryPassenger()
PigEntity.getPrimaryPassenger()
StriderEntity.getPrimaryPassenger()
MerchantEntity.moveToWorld
(ServerWorld destination) Moves this entity to another world.Modifier and TypeMethodDescriptionprotected boolean
StriderEntity.canAddPassenger
(Entity passenger) protected boolean
DolphinEntity.canStartRiding
(Entity entity) static boolean
ParrotEntity.imitateNearbyMob
(World world, Entity parrot) boolean
TameableEntity.isTeammate
(Entity other) private void
VillagerEntity.notifyDeath
(Entity killer) void
VillagerEntity.onInteractionWith
(EntityInteraction interaction, Entity entity) protected void
protected void
protected void
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
ChickenEntity.updatePassengerPosition
(Entity passenger) void
HorseBaseEntity.updatePassengerPosition
(Entity passenger) void
LlamaEntity.updatePassengerPosition
(Entity passenger) -
Uses of Entity in net.minecraft.entity.player
Modifier and TypeMethodDescriptionvoid
PlayerEntity.addCritParticles
(Entity target) void
PlayerEntity.addEnchantedHitParticles
(Entity target) void
private void
PlayerEntity.collideWithEntity
(Entity entity) -
Uses of Entity in net.minecraft.entity.projectile
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionFishingBobberEntity.hookedEntity
ProjectileEntity.owner
ShulkerBulletEntity.target
Modifier and TypeMethodDescriptionProjectileEntity.getEffectCause()
Returns the cause entity of any effect applied by this projectile.FishingBobberEntity.getHookedEntity()
ProjectileEntity.getOwner()
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
protected boolean
protected boolean
protected boolean
static HitResult
ProjectileUtil.getCollision
(Entity entity, Predicate<Entity> predicate) static @Nullable EntityHitResult
ProjectileUtil.getEntityCollision
(World world, Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate) protected boolean
static @Nullable EntityHitResult
ProjectileUtil.method_37226
(World world, Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate, float float2) static void
ProjectileUtil.method_7484
(Entity entity, float float2) protected void
FishingBobberEntity.pullHookedEntity
(Entity entity) static @Nullable EntityHitResult
ProjectileUtil.raycast
(Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate, double double2) void
void
void
void
ProjectileEntity.setProperties
(Entity user, float pitch, float yaw, float roll, float modifierZ, float modifierXYZ) private void
FishingBobberEntity.updateHookedEntityId
(@Nullable Entity entity) Modifier and TypeMethodDescriptionstatic HitResult
ProjectileUtil.getCollision
(Entity entity, Predicate<Entity> predicate) static @Nullable EntityHitResult
ProjectileUtil.getEntityCollision
(World world, Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate) static @Nullable EntityHitResult
ProjectileUtil.method_37226
(World world, Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate, float float2) static @Nullable EntityHitResult
ProjectileUtil.raycast
(Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate, double double2) ModifierConstructorDescriptionFireworkRocketEntity
(World world, @Nullable Entity entity, double x, double y, double z, ItemStack stack) FireworkRocketEntity
(World world, ItemStack stack, Entity entity, double x, double y, double z, boolean shotAtAngle) ShulkerBulletEntity
(World world, LivingEntity owner, Entity target, Direction.Axis axis) -
Uses of Entity in net.minecraft.entity.projectile.thrown
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
Modifier and TypeMethodDescriptionEnderPearlEntity.moveToWorld
(ServerWorld destination) Moves this entity to another world.Modifier and TypeMethodDescriptionprivate void
PotionEntity.applySplashPotion
(List<StatusEffectInstance> statusEffects, @Nullable Entity entity) -
Uses of Entity in net.minecraft.entity.raid
-
Uses of Entity in net.minecraft.entity.vehicle
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionprotected boolean
BoatEntity.canAddPassenger
(Entity passenger) static boolean
BoatEntity.canCollide
(Entity entity, Entity other) boolean
AbstractMinecartEntity.collidesWith
(Entity other) boolean
BoatEntity.collidesWith
(Entity other) protected void
BoatEntity.copyEntityData
(Entity entity) void
BoatEntity.onPassengerLookAround
(Entity passenger) void
AbstractMinecartEntity.pushAwayFrom
(Entity entity) void
BoatEntity.pushAwayFrom
(Entity entity) void
BoatEntity.updatePassengerPosition
(Entity passenger) -
Uses of Entity in net.minecraft.item
Modifier and TypeMethodDescriptionvoid
CompassItem.inventoryTick
(ItemStack stack, World world, Entity entity, int slot, boolean selected) void
FilledMapItem.inventoryTick
(ItemStack stack, World world, Entity entity, int slot, boolean selected) void
Item.inventoryTick
(ItemStack stack, World world, Entity entity, int slot, boolean selected) void
ItemStack.inventoryTick
(World world, Entity entity, int slot, boolean selected) void
void
FilledMapItem.updateColors
(World world, Entity entity, MapState state) -
Uses of Entity in net.minecraft.loot.condition
Modifier and TypeMethodDescriptionprotected boolean
EntityScoresLootCondition.entityScoreIsInRange
(LootContext context, Entity entity, Scoreboard scoreboard, String objectiveName, BoundedIntUnaryOperator range) -
Uses of Entity in net.minecraft.loot.context
Modifier and TypeFieldDescriptionstatic final LootContextParameter<Entity>
LootContextParameters.DIRECT_KILLER_ENTITY
static final LootContextParameter<Entity>
LootContextParameters.KILLER_ENTITY
private final LootContextParameter<? extends Entity>
LootContext.EntityTarget.parameter
static final LootContextParameter<Entity>
LootContextParameters.THIS_ENTITY
Modifier and TypeMethodDescriptionLootContextParameter<? extends Entity>
LootContext.EntityTarget.getParameter()
ModifierConstructorDescriptionprivate
EntityTarget
(String type, LootContextParameter<? extends Entity> parameter) -
Uses of Entity in net.minecraft.network.packet.c2s.play
Modifier and TypeMethodDescriptionPlayerInteractEntityC2SPacket.getEntity
(ServerWorld world) SpectatorTeleportC2SPacket.getTarget
(ServerWorld world) Modifier and TypeMethodDescriptionPlayerInteractEntityC2SPacket.interactAt
(Entity entity, boolean playerSneaking, Hand hand, Vec3d pos) ModifierConstructorDescriptionClientCommandC2SPacket
(Entity entity, ClientCommandC2SPacket.Mode mode) ClientCommandC2SPacket
(Entity entity, ClientCommandC2SPacket.Mode mode, int mountJumpHeight) VehicleMoveC2SPacket
(Entity entity) -
Uses of Entity in net.minecraft.network.packet.s2c.play
Modifier and TypeMethodDescriptionModifierConstructorDescriptionEntityAnimationS2CPacket
(Entity entity, int animationId) EntityAttachS2CPacket
(Entity attachedEntity, @Nullable Entity holdingEntity) EntityPassengersSetS2CPacket
(Entity entity) EntityPositionS2CPacket
(Entity entity) EntitySetHeadYawS2CPacket
(Entity entity, byte headYaw) EntitySpawnS2CPacket
(Entity entity) EntitySpawnS2CPacket
(Entity entity, int entityData) EntitySpawnS2CPacket
(Entity entity, EntityType<?> entityType, int data, BlockPos pos) EntityStatusS2CPacket
(Entity entity, byte status) EntityVelocityUpdateS2CPacket
(Entity entity) LookAtS2CPacket
(EntityAnchorArgumentType.EntityAnchor selfAnchor, Entity entity, EntityAnchorArgumentType.EntityAnchor targetAnchor) PlaySoundFromEntityS2CPacket
(SoundEvent sound, SoundCategory category, Entity entity, float volume, float pitch) SetCameraEntityS2CPacket
(Entity entity) VehicleMoveS2CPacket
(Entity entity) -
Uses of Entity in net.minecraft.predicate
Modifier and TypeMethodDescriptionstatic NbtCompound
NbtPredicate.entityToNbt
(Entity entity) boolean
boolean
-
Uses of Entity in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionEntityPredicates.EXCEPT_CREATIVE_OR_SPECTATOR
EntityPredicates.EXCEPT_SPECTATOR
EntityPredicates.NOT_MOUNTED
Tests if an entity is not mounted.EntityPredicates.VALID_ENTITY
Tests if an entity is valid.EntityPredicates.VALID_INVENTORIES
Tests if an entity has a valid inventory.EntityPredicates.VALID_LIVING_ENTITY
Tests if a living entity is valid.Modifier and TypeMethodDescriptionEntityPredicates.canBePushedBy
(Entity entity) EntityPredicates.maxDistance
(double x, double y, double z, double max) Modifier and TypeMethodDescriptionEntityPredicates.canBePushedBy
(Entity entity) static LootContext
EntityPredicate.createAdvancementEntityLootContext
(ServerPlayerEntity player, Entity target) boolean
boolean
boolean
boolean
EntityPredicate.test
(ServerPlayerEntity player, @Nullable Entity entity) boolean
boolean
boolean
boolean
LightningBoltPredicate.test
(Entity lightningBolt, ServerWorld world, @Nullable Vec3d vec3d) -
Uses of Entity in net.minecraft.scoreboard
-
Uses of Entity in net.minecraft.server.command
Modifier and TypeFieldDescriptionServerCommandSource.entity
private final Entity
TeleportCommand.LookTarget.target
Modifier and TypeMethodDescriptionServerCommandSource.getEntity()
Gets the entity from this command source or returns null if this command source is not an entity.ServerCommandSource.getEntityOrThrow()
Gets the entity from this command source or throws a command syntax exception if this command source is not an entity.Modifier and TypeMethodDescriptionprivate static int
SpectateCommand.execute
(ServerCommandSource source, @Nullable Entity entity, ServerPlayerEntity player) private static int
TeleportCommand.execute
(ServerCommandSource source, Collection<? extends Entity> targets, Entity destination) private static int
AttributeCommand.executeBaseValueGet
(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) private static int
AttributeCommand.executeBaseValueSet
(ServerCommandSource source, Entity target, EntityAttribute attribute, double value) private static int
ItemCommand.executeBlockCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot) private static int
ItemCommand.executeBlockCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, LootFunction modifier) private static int
ItemCommand.executeEntityCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) private static int
ItemCommand.executeEntityCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static int
LootCommand.executeKill
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Entity entity, LootCommand.Target constructor) private static int
AttributeCommand.executeModifierAdd
(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, String name, double value, EntityAttributeModifier.Operation operation) private static int
AttributeCommand.executeModifierRemove
(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid) private static int
AttributeCommand.executeModifierValueGet
(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, double multiplier) private static int
AttributeCommand.executeValueGet
(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) private static EntityAttributeInstance
AttributeCommand.getAttributeInstance
(Entity entity, EntityAttribute attribute) private static LivingEntity
AttributeCommand.getLivingEntity
(Entity entity) private static LivingEntity
AttributeCommand.getLivingEntityWithAttribute
(Entity entity, EntityAttribute attribute) private static ItemStack
ItemCommand.getStackInSlot
(Entity entity, int slotId) void
TeleportCommand.LookTarget.look
(ServerCommandSource source, Entity entity) private static void
LootCommand.replace
(Entity entity, List<ItemStack> stacks, int slot, int stackCount, List<ItemStack> addedStacks) private static void
TeleportCommand.teleport
(ServerCommandSource source, Entity target, ServerWorld world, double x, double y, double z, Set<PlayerPositionLookS2CPacket.Flag> movementFlags, float yaw, float pitch, @Nullable TeleportCommand.LookTarget facingLocation) ServerCommandSource.withEntity
(Entity entity) ServerCommandSource.withLookingAt
(Entity entity, EntityAnchorArgumentType.EntityAnchor anchor) Modifier and TypeMethodDescriptionprivate static int
EnchantCommand.execute
(ServerCommandSource source, Collection<? extends Entity> targets, Enchantment enchantment, int level) private static int
KillCommand.execute
(ServerCommandSource source, Collection<? extends Entity> targets) private static int
SpreadPlayersCommand.execute
(ServerCommandSource source, Vec2f center, float spreadDistance, float maxRange, int maxY, boolean respectTeams, Collection<? extends Entity> players) private static int
TeleportCommand.execute
(ServerCommandSource source, Collection<? extends Entity> targets, Entity destination) private static int
TeleportCommand.execute
(ServerCommandSource source, Collection<? extends Entity> targets, ServerWorld world, PosArgument location, @Nullable PosArgument rotation, @Nullable TeleportCommand.LookTarget facingLocation) private static int
TagCommand.executeAdd
(ServerCommandSource source, Collection<? extends Entity> targets, String tag) private static int
EffectCommand.executeClear
(ServerCommandSource source, Collection<? extends Entity> targets) private static int
EffectCommand.executeClear
(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect) private static int
ItemCommand.executeEntityCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot) private static int
ItemCommand.executeEntityCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static int
ItemCommand.executeEntityCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) private static int
ItemCommand.executeEntityCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static int
ItemCommand.executeEntityModify
(ServerCommandSource source, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static int
ItemCommand.executeEntityReplace
(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack) private static int
EffectCommand.executeGive
(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect, @Nullable Integer seconds, int amplifier, boolean showParticles) private static int
TagCommand.executeList
(ServerCommandSource source, Collection<? extends Entity> targets) private static int
TagCommand.executeRemove
(ServerCommandSource source, Collection<? extends Entity> targets, String tag) private static int
LootCommand.executeReplace
(Collection<? extends Entity> targets, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static double
SpreadPlayersCommand.getMinDistance
(Collection<? extends Entity> entities, ServerWorld world, SpreadPlayersCommand.Pile[] piles, int maxY, boolean respectTeams) private static int
SpreadPlayersCommand.getPileCountRespectingTeams
(Collection<? extends Entity> entities) private static Collection<String>
TagCommand.getTags
(Collection<? extends Entity> entities) ModifierConstructorDescriptionLookTarget
(Entity target, EntityAnchorArgumentType.EntityAnchor targetAnchor) ServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String simpleName, Text name, MinecraftServer server, @Nullable Entity entity) protected
ServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String simpleName, Text name, MinecraftServer server, @Nullable Entity entity, boolean silent, com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, EntityAnchorArgumentType.EntityAnchor entityAnchor) -
Uses of Entity in net.minecraft.server.network
Modifier and TypeFieldDescriptionprivate Entity
ServerPlayerEntity.cameraEntity
private final Entity
EntityTrackerEntry.entity
ServerPlayNetworkHandler.topmostRiddenEntity
Modifier and TypeMethodDescriptionServerPlayerEntity.getCameraEntity()
ServerPlayerEntity.moveToWorld
(ServerWorld destination) Moves this entity to another world.Modifier and TypeMethodDescriptionvoid
ServerPlayerEntity.addCritParticles
(Entity target) void
ServerPlayerEntity.addEnchantedHitParticles
(Entity target) void
private boolean
ServerPlayNetworkHandler.isEntityOnAir
(Entity entity) void
ServerPlayerEntity.lookAtEntity
(EntityAnchorArgumentType.EntityAnchor anchorPoint, Entity targetEntity, EntityAnchorArgumentType.EntityAnchor targetAnchor) protected void
ServerPlayerEntity.onStatusEffectApplied
(StatusEffectInstance effect, @Nullable Entity source) protected void
ServerPlayerEntity.onStatusEffectUpgraded
(StatusEffectInstance effect, boolean reapplyEffect, @Nullable Entity source) ServerPlayNetworkHandler.Interaction.run
(ServerPlayerEntity player, Entity entity, Hand hand) void
ServerPlayerEntity.sendPickup
(Entity item, int count) void
ServerPlayerEntity.setCameraEntity
(Entity entity) boolean
ServerPlayerEntity.startRiding
(Entity entity, boolean force) void
ServerPlayerEntity.updateKilledAdvancementCriterion
(Entity killer, int score, DamageSource damageSource) ModifierConstructorDescriptionEntityTrackerEntry
(ServerWorld world, Entity entity, int tickInterval, boolean alwaysUpdateVelocity, Consumer<Packet<?>> receiver) -
Uses of Entity in net.minecraft.server.world
Modifier and TypeFieldDescription(package private) final Entity
ThreadedAnvilChunkStorage.EntityTracker.entity
Modifier and TypeFieldDescriptionprivate final ServerEntityManager<Entity>
ServerWorld.entityManager
Modifier and TypeMethodDescriptionServerWorld.getEntitiesByType
(TypeFilter<Entity, T> typeFilter, Predicate<? super T> predicate) Computes a list of entities of the given type.Modifier and TypeMethodDescriptionServerWorld.getDragonPart
(int id) Deprecated.ServerWorld.getEntityById
(int id) Modifier and TypeMethodDescriptionprotected EntityLookup<Entity>
ServerWorld.getEntityLookup()
ServerWorld.iterateEntities()
Modifier and TypeMethodDescriptionprivate boolean
void
ServerWorld.createExplosion
(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) void
void
ServerWorld.emitGameEvent
(@Nullable Entity entity, GameEvent event, BlockPos pos) private static int
ThreadedAnvilChunkStorage.getChebyshevDistance
(ChunkPos chunkPos, Entity entity) private static double
ThreadedAnvilChunkStorage.getSquaredDistance
(ChunkPos pos, Entity entity) void
ServerWorld.handleInteraction
(EntityInteraction interaction, Entity entity, InteractionObserver observer) void
ServerChunkManager.loadEntity
(Entity entity) protected void
ThreadedAnvilChunkStorage.loadEntity
(Entity entity) void
ServerWorld.onDimensionChanged
(Entity entity) void
ServerWorld.playSoundFromEntity
(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) void
ServerWorld.sendEntityStatus
(Entity entity, byte status) void
ServerChunkManager.sendToNearbyPlayers
(Entity entity, Packet<?> packet) protected void
ThreadedAnvilChunkStorage.sendToNearbyPlayers
(Entity entity, Packet<?> packet) void
ServerChunkManager.sendToOtherNearbyPlayers
(Entity entity, Packet<?> packet) void
ThreadedAnvilChunkStorage.sendToOtherNearbyPlayers
(Entity entity, Packet<?> packet) private boolean
ServerWorld.shouldCancelSpawn
(Entity entity) boolean
ServerWorld.shouldCreateNewEntityWithPassenger
(Entity entity) boolean
ServerWorld.spawnEntity
(Entity entity) void
ServerWorld.ServerEntityHandler.startTicking
(Entity entity) void
ServerWorld.ServerEntityHandler.startTracking
(Entity entity) void
ServerWorld.ServerEntityHandler.stopTicking
(Entity entity) void
ServerWorld.ServerEntityHandler.stopTracking
(Entity entity) void
ServerWorld.tickEntity
(Entity entity) private void
ServerWorld.tickPassenger
(Entity vehicle, Entity passenger) boolean
ServerWorld.tryLoadEntity
(Entity entity) void
ServerChunkManager.unloadEntity
(Entity entity) protected void
ThreadedAnvilChunkStorage.unloadEntity
(Entity entity) Modifier and TypeMethodDescriptionvoid
ServerWorld.addEntities
(Stream<Entity> entities) private static void
ServerWorld.dumpEntities
(Writer writer, Iterable<Entity> entities) ServerWorld.getEntitiesByType
(TypeFilter<Entity, T> typeFilter, Predicate<? super T> predicate) Computes a list of entities of the given type.void
ServerWorld.loadEntities
(Stream<Entity> entities) ModifierConstructorDescriptionEntityTracker
(Entity entity, int maxDistance, int tickInterval, boolean alwaysUpdateVelocity) -
Uses of Entity in net.minecraft.structure
-
Uses of Entity in net.minecraft.test
Modifier and TypeMethodDescription<E extends Entity,
T>
voidTestContext.expectEntityWithData
(BlockPos pos, EntityType<E> type, Function<? super E, T> entityDataGetter, T data) <E extends Entity,
T>
voidTestContext.method_35957
(E e, Function<E, T> function, String string, T t) <E extends Entity>
voidTestContext.method_35958
(E e, Predicate<E> predicate, String string) <E extends Entity,
T>
voidTestContext.method_36015
(BlockPos blockPos, EntityType<E> entityType, Function<E, T> function, T t) <E extends Entity>
ETestContext.spawnEntity
(EntityType<E> type, float x, float y, float z) <E extends Entity>
ETestContext.spawnEntity
(EntityType<E> type, int x, int y, int z) <E extends Entity>
ETestContext.spawnEntity
(EntityType<E> type, BlockPos pos) <E extends Entity>
ETestContext.spawnEntity
(EntityType<E> type, Vec3d pos) Modifier and TypeMethodDescriptionvoid
TestContext.expectEntityAt
(Entity entity, int x, int y, int z) void
TestContext.expectEntityAt
(Entity entity, BlockPos pos) void
TestContext.throwPositionedException
(String message, Entity entity) -
Uses of Entity in net.minecraft.text
Modifier and TypeMethodDescriptionNbtText.parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) ParsableText.parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) ScoreText.parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) SelectorText.parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) static Optional<MutableText>
Texts.parse
(@Nullable ServerCommandSource source, Optional<Text> text, @Nullable Entity sender, int depth) static MutableText
TranslatableText.parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) private static Style
Texts.parseStyle
(@Nullable ServerCommandSource source, Style style, @Nullable Entity sender, int depth) -
Uses of Entity in net.minecraft.util
-
Uses of Entity in net.minecraft.util.hit
ModifierConstructorDescriptionEntityHitResult
(Entity entity) EntityHitResult
(Entity entity, Vec3d pos) -
Uses of Entity in net.minecraft.util.math
Modifier and TypeMethodDescriptionstatic ChunkSectionPos
static Direction[]
Direction.getEntityFacingOrder
(Entity entity) static Direction
Direction.getLookDirectionForAxis
(Entity entity, Direction.Axis axis) -
Uses of Entity in net.minecraft.village
Modifier and TypeMethodDescriptionCreates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer. -
Uses of Entity in net.minecraft.village.raid
-
Uses of Entity in net.minecraft.world
Modifier and TypeFieldDescriptionprivate Int2ObjectMap<Entity>
EntityList.entities
private @Nullable Int2ObjectMap<Entity>
EntityList.iterating
private Int2ObjectMap<Entity>
EntityList.temp
Modifier and TypeMethodDescriptionEntityView.getEntitiesByClass
(Class<T> entityClass, Box box, Predicate<? super T> predicate) Computes a list of entities within some box whose runtime Java class is the same as or is a subclass of the given class.ChunkRegion.getEntitiesByType
(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) EntityView.getEntitiesByType
(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) World.getEntitiesByType
(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) EntityView.getNonSpectatingEntities
(Class<T> entityClass, Box box) <T extends Entity>
voidWorld.tickEntity
(Consumer<T> tickConsumer, T entity) Modifier and TypeMethodDescriptionWorld.getEntityById
(int id) MobSpawnerLogic.getRenderedEntity
(World world) Modifier and TypeMethodDescriptionprotected abstract EntityLookup<Entity>
World.getEntityLookup()
ChunkRegion.getOtherEntities
(@Nullable Entity except, Box box, @Nullable Predicate<? super Entity> predicate) Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.EntityView.getOtherEntities
(@Nullable Entity except, Box box) Computes a list of entities within some box, excluding the given entity, that are not spectators.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Modifier and TypeMethodDescriptionvoid
boolean
ChunkRegion.breakBlock
(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth) default boolean
ModifiableWorld.breakBlock
(BlockPos pos, boolean drop, @Nullable Entity breakingEntity) boolean
ModifiableWorld.breakBlock
(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth) boolean
World.breakBlock
(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth) World.createExplosion
(@Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) World.createExplosion
(@Nullable Entity entity, double x, double y, double z, float power, Explosion.DestructionType destructionType) World.createExplosion
(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) void
ChunkRegion.emitGameEvent
(@Nullable Entity entity, GameEvent event, BlockPos pos) protected void
World.emitGameEvent
(@Nullable Entity entity, GameEvent gameEvent, BlockPos pos, int range) default void
WorldAccess.emitGameEvent
(@Nullable Entity entity, GameEvent event, Entity emitter) void
WorldAccess.emitGameEvent
(@Nullable Entity entity, GameEvent event, BlockPos pos) default void
WorldAccess.emitGameEvent
(GameEvent event, Entity emitter) CollisionView.findClosestCollision
(@Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z) default Stream<VoxelShape>
CollisionView.getBlockCollisions
(@Nullable Entity entity, Box box) default Stream<VoxelShape>
CollisionView.getBlockCollisions
(@Nullable Entity entity, Box box, BiPredicate<BlockState, BlockPos> predicate) default @Nullable PlayerEntity
EntityView.getClosestPlayer
(Entity entity, double maxDistance) default Stream<VoxelShape>
default Stream<VoxelShape>
default Stream<VoxelShape>
RegistryWorldView.getEntityCollisions
(@Nullable Entity entity, Box box, Predicate<Entity> predicate) ChunkRegion.getOtherEntities
(@Nullable Entity except, Box box, @Nullable Predicate<? super Entity> predicate) Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.EntityView.getOtherEntities
(@Nullable Entity except, Box box) Computes a list of entities within some box, excluding the given entity, that are not spectators.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.boolean
default boolean
CollisionView.hasBlockCollision
(@Nullable Entity entity, Box box, BiPredicate<BlockState, BlockPos> predicate) default boolean
CollisionView.intersectsEntities
(@Nullable Entity except, VoxelShape shape) default boolean
CollisionView.intersectsEntities
(Entity entity) default boolean
EntityView.intersectsEntities
(@Nullable Entity entity, VoxelShape shape) default boolean
RegistryWorldView.intersectsEntities
(@Nullable Entity entity, VoxelShape shape) boolean
World.isDirectionSolid
(BlockPos pos, Entity entity, Direction direction) default boolean
default boolean
CollisionView.isSpaceEmpty
(Entity entity) default boolean
CollisionView.isSpaceEmpty
(Entity entity, Box box) boolean
World.isTopSolid
(BlockPos pos, Entity entity) abstract void
World.playSoundFromEntity
(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) void
void
World.sendEntityStatus
(Entity entity, byte status) boolean
ChunkRegion.spawnEntity
(Entity entity) default boolean
ModifiableWorld.spawnEntity
(Entity entity) default void
ServerWorldAccess.spawnEntityAndPassengers
(Entity entity) Spawns an entity and all its passengers (recursively) into the world.Modifier and TypeMethodDescriptionvoid
Runs anaction
on every entity in this storage.ChunkRegion.getClosestPlayer
(double x, double y, double z, double maxDistance, Predicate<Entity> targetPredicate) default @Nullable PlayerEntity
EntityView.getClosestPlayer
(double x, double y, double z, double maxDistance, @Nullable Predicate<Entity> targetPredicate) default Stream<VoxelShape>
ChunkRegion.getEntitiesByType
(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) EntityView.getEntitiesByType
(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) World.getEntitiesByType
(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) default Stream<VoxelShape>
default Stream<VoxelShape>
RegistryWorldView.getEntityCollisions
(@Nullable Entity entity, Box box, Predicate<Entity> predicate) ChunkRegion.getOtherEntities
(@Nullable Entity except, Box box, @Nullable Predicate<? super Entity> predicate) Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.default boolean
static SpawnHelper.Info
SpawnHelper.setupSpawn
(int spawningChunkCount, Iterable<Entity> entities, SpawnHelper.ChunkSource chunkSource) ModifierConstructorDescriptionBlockCollisionSpliterator
(CollisionView world, @Nullable Entity entity, Box box) BlockCollisionSpliterator
(CollisionView world, @Nullable Entity entity, Box box, BiPredicate<BlockState, BlockPos> blockPredicate) RaycastContext
(Vec3d start, Vec3d end, RaycastContext.ShapeType shapeType, RaycastContext.FluidHandling fluidHandling, Entity entity) -
Uses of Entity in net.minecraft.world.border
-
Uses of Entity in net.minecraft.world.chunk
Modifier and TypeMethodDescriptionvoid
void
void
void
Deprecated.Modifier and TypeMethodDescription -
Uses of Entity in net.minecraft.world.event
-
Uses of Entity in net.minecraft.world.event.listener
Modifier and TypeMethodDescriptionboolean
SculkSensorListener.Callback.accepts
(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity) Returns whether the callback wants to accept this event.void
Dispatches an event to all the listeners in this dispatcher.void
Dispatches an event to all the listeners in this dispatcher.private boolean
SimpleGameEventDispatcher.dispatchTo
(World world, GameEvent event, @Nullable Entity entity, BlockPos pos, GameEventListener listener) boolean
Listens to an incoming game event.boolean
Listens to an incoming game event.private boolean
SculkSensorListener.shouldActivate
(GameEvent event, @Nullable Entity entity) -
Uses of Entity in net.minecraft.world.explosion
Modifier and TypeFieldDescriptionprivate final Entity
EntityExplosionBehavior.entity
Explosion.entity
Modifier and TypeMethodDescriptionprivate ExplosionBehavior
Explosion.chooseBehavior
(@Nullable Entity entity) static float
Explosion.getExposure
(Vec3d source, Entity entity) ModifierConstructorDescriptionEntityExplosionBehavior
(Entity entity) Explosion
(World world, @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) Explosion
(World world, @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType, List<BlockPos> affectedBlocks) Explosion
(World world, @Nullable Entity entity, double x, double y, double z, float power, List<BlockPos> affectedBlocks) Explosion
(World world, @Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) -
Uses of Entity in net.minecraft.world.storage
Modifier and TypeMethodDescriptionprivate static ChunkDataList<Entity>
EntityChunkDataAccess.emptyDataList
(ChunkPos pos) EntityChunkDataAccess.readChunkData
(ChunkPos pos) Modifier and TypeMethodDescriptionvoid
EntityChunkDataAccess.writeChunkData
(ChunkDataList<Entity> dataList)