Uses of Class
net.minecraft.entity.Entity
-
Uses of Entity in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type Entity Modifier and Type Method Description void
PlayerInteractedWithEntityCriterion. test(ServerPlayerEntity player, ItemStack stack, Entity entity)
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)
Method parameters in net.minecraft.advancement.criterion with type arguments of type Entity Modifier and Type Method Description void
ChanneledLightningCriterion. trigger(ServerPlayerEntity player, Collection<? extends Entity> victims)
void
KilledByCrossbowCriterion. trigger(ServerPlayerEntity player, Collection<Entity> piercingKilledEntities)
-
Uses of Entity in net.minecraft.block
Fields in net.minecraft.block with type parameters of type Entity Modifier and Type Field Description private Optional<Entity>
EntityShapeContext. entity
Methods in net.minecraft.block that return types with arguments of type Entity Modifier and Type Method Description Optional<Entity>
EntityShapeContext. getEntity()
default Predicate<Entity>
LandingBlock. getEntityPredicate()
Predicate<Entity>
PointedDripstoneBlock. getEntityPredicate()
Methods in net.minecraft.block with parameters of type Entity Modifier and Type Method Description private 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
SlimeBlock. bounce(Entity entity)
private void
BedBlock. bounceEntity(Entity entity)
private boolean
TurtleEggBlock. breaksEgg(World world, Entity entity)
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)
static List<ItemStack>
Block. getDroppedStacks(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack)
private static boolean
HoneyBlock. hasHoneyBlockEffects(Entity entity)
boolean
AbstractBlock.AbstractBlockState. hasSolidTopSurface(BlockView world, BlockPos pos, Entity entity)
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
HoneyBlock. isSliding(BlockPos pos, Entity entity)
static ShapeContext
ShapeContext. of(Entity entity)
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, BlockPos pos, Entity entity, float distance)
void
Block. onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
void
FarmlandBlock. onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
void
HayBlock. onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
void
HoneyBlock. onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
void
PointedDripstoneBlock. onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
void
SlimeBlock. onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
void
TurtleEggBlock. onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
void
Block. onSteppedOn(World world, BlockPos pos, Entity entity)
Called when an entity steps on this block.void
MagmaBlock. onSteppedOn(World world, BlockPos pos, Entity entity)
Called when an entity steps on this block.void
RedstoneOreBlock. onSteppedOn(World world, BlockPos pos, Entity entity)
Called when an entity steps on this block.void
SlimeBlock. onSteppedOn(World world, BlockPos pos, Entity entity)
Called when an entity steps on this block.void
StairsBlock. onSteppedOn(World world, BlockPos pos, Entity entity)
Called when an entity steps on this block.void
TurtleEggBlock. onSteppedOn(World world, BlockPos pos, Entity entity)
Called when an entity steps on this block.boolean
BellBlock. ring(@Nullable Entity entity, World world, BlockPos pos, @Nullable Direction direction)
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, 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)
Method parameters in net.minecraft.block with type arguments of type Entity Modifier and Type Method Description private <T extends AbstractMinecartEntity>
List<T>DetectorRailBlock. getCarts(World world, BlockPos pos, Class<T> entityClass, Predicate<Entity> entityPredicate)
Constructors in net.minecraft.block with parameters of type Entity Constructor Description EntityShapeContext(Entity entity)
Deprecated.Constructor parameters in net.minecraft.block with type arguments of type Entity Constructor Description EntityShapeContext(boolean descending, double minY, ItemStack boots, ItemStack heldItem, Predicate<Fluid> walkOnFluidPredicate, Optional<Entity> entity)
-
Uses of Entity in net.minecraft.block.dispenser
Methods in net.minecraft.block.dispenser with parameters of type Entity Modifier and Type Method Description static void
DispenserBehavior. setEntityPosition(BlockPointer pointer, Entity entity, Direction direction)
-
Uses of Entity in net.minecraft.block.entity
Methods in net.minecraft.block.entity that return types with arguments of type Entity Modifier and Type Method Description private List<Entity>
BeehiveBlockEntity. tryReleaseBee(BlockState state, BeehiveBlockEntity.BeeState beeState)
Methods in net.minecraft.block.entity with parameters of type Entity Modifier and Type Method Description boolean
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
PistonBlockEntity. push(BlockPos pos, Entity entity, Direction direction, double amount)
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)
Method parameters in net.minecraft.block.entity with type arguments of type Entity Modifier and Type Method Description private static boolean
BeehiveBlockEntity. releaseBee(World world, BlockPos blockPos, BlockState state, BeehiveBlockEntity.Bee bee, @Nullable List<Entity> list, BeehiveBlockEntity.BeeState beeState, @Nullable BlockPos blockPos2)
-
Uses of Entity in net.minecraft.client
Fields in net.minecraft.client declared as Entity Modifier and Type Field Description @Nullable Entity
MinecraftClient. cameraEntity
@Nullable Entity
MinecraftClient. targetedEntity
Methods in net.minecraft.client that return Entity Modifier and Type Method Description @Nullable Entity
MinecraftClient. getCameraEntity()
Methods in net.minecraft.client with parameters of type Entity Modifier and Type Method Description boolean
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
Methods in net.minecraft.client.gui.hud with parameters of type Entity Modifier and Type Method Description private void
InGameHud. renderVignetteOverlay(Entity entity)
private void
InGameHud. updateVignetteDarkness(Entity entity)
-
Uses of Entity in net.minecraft.client.network
Subclasses of Entity in net.minecraft.client.network Modifier and Type Class Description class
AbstractClientPlayerEntity
class
ClientPlayerEntity
Represents the client's own player entity.class
OtherClientPlayerEntity
Represents a player entity that is present on the client but is not the client's own player.Methods in net.minecraft.client.network with parameters of type Entity Modifier and Type Method Description void
ClientPlayerEntity. addCritParticles(Entity target)
void
ClientPlayerEntity. addEnchantedHitParticles(Entity target)
void
ClientPlayerInteractionManager. attackEntity(PlayerEntity player, Entity target)
ActionResult
ClientPlayerInteractionManager. interactEntity(PlayerEntity player, Entity entity, Hand hand)
ActionResult
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
Fields in net.minecraft.client.particle declared as Entity Modifier and Type Field Description private Entity
EmitterParticle. entity
private Entity
ItemPickupParticle. interactingEntity
private Entity
ItemPickupParticle. itemEntity
Methods in net.minecraft.client.particle that return Entity Modifier and Type Method Description private Entity
ItemPickupParticle. getOrCopy(Entity entity)
Methods in net.minecraft.client.particle with parameters of type Entity Modifier and Type Method Description void
ParticleManager. addEmitter(Entity entity, ParticleEffect parameters)
void
ParticleManager. addEmitter(Entity entity, ParticleEffect parameters, int maxAge)
private Entity
ItemPickupParticle. getOrCopy(Entity entity)
Constructors in net.minecraft.client.particle with parameters of type Entity Constructor Description EmitterParticle(ClientWorld world, Entity entity, ParticleEffect parameters)
EmitterParticle(ClientWorld world, Entity entity, ParticleEffect parameters, int maxEmitterAge)
EmitterParticle(ClientWorld world, Entity entity, ParticleEffect parameters, int maxEmitterAge, Vec3d velocity)
ItemPickupParticle(EntityRenderDispatcher dispatcher, BufferBuilderStorage bufferStorage, ClientWorld world, Entity itemEntity, Entity interactingEntity)
ItemPickupParticle(EntityRenderDispatcher dispatcher, BufferBuilderStorage bufferStorage, ClientWorld world, Entity itemEntity, Entity interactingEntity, Vec3d velocity)
-
Uses of Entity in net.minecraft.client.render
Fields in net.minecraft.client.render declared as Entity Modifier and Type Field Description private Entity
Camera. focusedEntity
Methods in net.minecraft.client.render that return Entity Modifier and Type Method Description Entity
Camera. getFocusedEntity()
Methods in net.minecraft.client.render with parameters of type Entity Modifier and Type Method Description private 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
Methods in net.minecraft.client.render.debug that return types with arguments of type Entity Modifier and Type Method Description static Optional<Entity>
DebugRenderer. getTargetedEntity(@Nullable Entity entity, int maxDistance)
Methods in net.minecraft.client.render.debug with parameters of type Entity Modifier and Type Method Description static Optional<Entity>
DebugRenderer. getTargetedEntity(@Nullable Entity entity, int maxDistance)
boolean
GameEventDebugRenderer.Listener. listen(World world, GameEvent event, @Nullable Entity entity, BlockPos pos)
Listens to an incoming game event.static String
NameGenerator. method_36154(Entity entity)
-
Uses of Entity in net.minecraft.client.render.entity
Classes in net.minecraft.client.render.entity with type parameters of type Entity Modifier and Type Class Description class
EntityRenderer<T extends Entity>
interface
EntityRendererFactory<T extends Entity>
class
FlyingItemEntityRenderer<T extends Entity & FlyingItemEntity>
Fields in net.minecraft.client.render.entity declared as Entity Modifier and Type Field Description Entity
EntityRenderDispatcher. targetedEntity
Methods in net.minecraft.client.render.entity with type parameters of type Entity Modifier and Type Method Description <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)
Methods in net.minecraft.client.render.entity with parameters of type Entity Modifier and Type Method Description void
EntityRenderDispatcher. configure(World world, Camera camera, Entity target)
double
EntityRenderDispatcher. getSquaredDistanceToCamera(Entity entity)
Identifier
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
Classes in net.minecraft.client.render.entity.feature with type parameters of type Entity Modifier and Type Class Description class
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>>
Methods in net.minecraft.client.render.entity.feature with parameters of type Entity Modifier and Type Method Description protected 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
-
Uses of Entity in net.minecraft.client.sound
Fields in net.minecraft.client.sound declared as Entity Modifier and Type Field Description private Entity
EntityTrackingSoundInstance. entity
Constructors in net.minecraft.client.sound with parameters of type Entity Constructor Description EntityTrackingSoundInstance(SoundEvent sound, SoundCategory category, float volume, float pitch, Entity entity)
EntityTrackingSoundInstance(SoundEvent sound, SoundCategory category, Entity entity)
-
Uses of Entity in net.minecraft.client.world
Fields in net.minecraft.client.world with type parameters of type Entity Modifier and Type Field Description private ClientEntityManager<Entity>
ClientWorld. entityManager
Methods in net.minecraft.client.world that return Entity Modifier and Type Method Description @Nullable Entity
ClientWorld. getEntityById(int id)
Methods in net.minecraft.client.world that return types with arguments of type Entity Modifier and Type Method Description Iterable<Entity>
ClientWorld. getEntities()
protected EntityLookup<Entity>
ClientWorld. getEntityLookup()
Methods in net.minecraft.client.world with parameters of type Entity Modifier and Type Method Description void
ClientWorld. addEntity(int id, Entity entity)
private void
ClientWorld. addEntityPrivate(int id, Entity entity)
void
ClientWorld.ClientEntityHandler. create(Entity entity)
void
ClientWorld.ClientEntityHandler. destroy(Entity entity)
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
Fields in net.minecraft.command declared as Entity Modifier and Type Field Description private Entity
EntityDataObject. entity
Fields in net.minecraft.command with type parameters of type Entity Modifier and Type Field Description static BiConsumer<Vec3d,List<? extends Entity>>
EntitySelectorReader. ARBITRARY
private Predicate<Entity>
EntitySelector. basePredicate
private TypeFilter<Entity,?>
EntitySelector. entityFilter
static BiConsumer<Vec3d,List<? extends Entity>>
EntitySelectorReader. FURTHEST
static BiConsumer<Vec3d,List<? extends Entity>>
EntitySelectorReader. NEAREST
private static TypeFilter<Entity,?>
EntitySelector. PASSTHROUGH_FILTER
private Predicate<Entity>
EntitySelectorReader. predicate
static BiConsumer<Vec3d,List<? extends Entity>>
EntitySelectorReader. RANDOM
private BiConsumer<Vec3d,List<? extends Entity>>
EntitySelector. sorter
private BiConsumer<Vec3d,List<? extends Entity>>
EntitySelectorReader. sorter
Methods in net.minecraft.command with type parameters of type Entity Modifier and Type Method Description private <T extends Entity>
List<T>EntitySelector. getEntities(Vec3d vec3d, List<T> list)
Methods in net.minecraft.command that return Entity Modifier and Type Method Description Entity
EntitySelector. getEntity(ServerCommandSource serverCommandSource)
Methods in net.minecraft.command that return types with arguments of type Entity Modifier and Type Method Description List<? extends Entity>
EntitySelector. getEntities(ServerCommandSource serverCommandSource)
private Predicate<Entity>
EntitySelector. getPositionPredicate(Vec3d vec3d)
BiConsumer<Vec3d,List<? extends Entity>>
EntitySelectorReader. method_35818()
private Predicate<Entity>
EntitySelectorReader. rotationPredicate(FloatRangeArgument floatRangeArgument, ToDoubleFunction<Entity> toDoubleFunction)
Method parameters in net.minecraft.command with type arguments of type Entity Modifier and Type Method Description private 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 MutableText
EntitySelector. getNames(List<? extends Entity> list)
private Predicate<Entity>
EntitySelectorReader. rotationPredicate(FloatRangeArgument floatRangeArgument, ToDoubleFunction<Entity> toDoubleFunction)
void
EntitySelectorReader. setPredicate(Predicate<Entity> predicate)
void
EntitySelectorReader. setSorter(BiConsumer<Vec3d,List<? extends Entity>> sorter)
Constructors in net.minecraft.command with parameters of type Entity Constructor Description EntityDataObject(Entity entity)
Constructor parameters in net.minecraft.command with type arguments of type Entity Constructor Description 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)
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
Fields in net.minecraft.command.argument with type parameters of type Entity Modifier and Type Field Description private BiFunction<Vec3d,Entity,Vec3d>
EntityAnchorArgumentType.EntityAnchor. offset
Methods in net.minecraft.command.argument that return Entity Modifier and Type Method Description static Entity
EntityArgumentType. getEntity(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
Methods in net.minecraft.command.argument that return types with arguments of type Entity Modifier and Type Method Description static 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)
Methods in net.minecraft.command.argument with parameters of type Entity Modifier and Type Method Description Vec3d
EntityAnchorArgumentType.EntityAnchor. positionAt(Entity entity)
Constructor parameters in net.minecraft.command.argument with type arguments of type Entity Constructor Description EntityAnchor(String id, BiFunction<Vec3d,Entity,Vec3d> offset)
-
Uses of Entity in net.minecraft.enchantment
Methods in net.minecraft.enchantment with parameters of type Entity Modifier and Type Method Description void
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
Classes in net.minecraft.entity with type parameters of type Entity Modifier and Type Class Description class
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>
Subclasses of Entity in net.minecraft.entity Modifier and Type Class Description class
AreaEffectCloudEntity
class
ExperienceOrbEntity
class
EyeOfEnderEntity
class
FallingBlockEntity
class
ItemEntity
class
LightningEntity
class
LivingEntity
Represents an entity which has a health value and can receive damage.class
TntEntity
Fields in net.minecraft.entity declared as Entity Modifier and Type Field Description private @Nullable Entity
Entity. vehicle
Fields in net.minecraft.entity with type parameters of type Entity Modifier and Type Field Description private Map<Entity,Integer>
AreaEffectCloudEntity. affectedEntities
private ImmutableList<Entity>
Entity. passengerList
Methods in net.minecraft.entity with type parameters of type Entity Modifier and Type Method Description static <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)
Methods in net.minecraft.entity that return Entity Modifier and Type Method Description static @Nullable Entity
EntityType. createInstanceFromId(int type, World world)
@Nullable Entity
Entity. getFirstPassenger()
@Nullable Entity
Tameable. getOwner()
@Nullable Entity
Entity. getPrimaryPassenger()
Entity
Entity. getRootVehicle()
Gets the lowest entity this entity is riding.@Nullable Entity
Entity. getVehicle()
static @Nullable Entity
EntityType. loadEntityWithPassengers(NbtCompound nbt, World world, Function<Entity,Entity> entityProcessor)
@Nullable Entity
Entity. moveToWorld(ServerWorld destination)
Moves this entity to another world.@Nullable Entity
ItemEntity. moveToWorld(ServerWorld destination)
Moves this entity to another world.private static @Nullable Entity
EntityType. newInstance(World world, @Nullable EntityType<?> type)
@Nullable Entity
EntityType. spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)
Methods in net.minecraft.entity that return types with arguments of type Entity Modifier and Type Method Description Class<? extends Entity>
EntityType. getBaseClass()
static Optional<Entity>
EntityType. getEntityFromNbt(NbtCompound nbt, World world)
List<Entity>
Entity. getPassengerList()
Iterable<Entity>
Entity. getPassengersDeep()
private static Optional<Entity>
EntityType. loadEntityFromNbt(NbtCompound nbt, World world)
static Stream<Entity>
EntityType. streamFromNbt(List<? extends NbtElement> entityNbtList, World world)
private Stream<Entity>
Entity. streamIntoPassengers()
Stream<Entity>
Entity. streamPassengersAndSelf()
Returns a stream consisting of this entity and its passengers in which this entity's passengers are iterated before this entity.Stream<Entity>
Entity. streamSelfAndPassengers()
Returns a stream consisting of this entity and its passengers recursively.Methods in net.minecraft.entity with parameters of type Entity Modifier and Type Method Description void
Entity.PositionUpdater. accept(Entity entity, double x, double y, double z)
protected void
Entity. addPassenger(Entity passenger)
static Vec3d
Entity. adjustMovementForCollisions(@Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, ShapeContext context, ReusableStream<VoxelShape> collisions)
protected boolean
Entity. canAddPassenger(Entity passenger)
boolean
LivingEntity. canSee(Entity entity)
protected boolean
Entity. canStartRiding(Entity entity)
boolean
Entity. collidesWith(Entity other)
void
Entity. copyFrom(Entity original)
void
Entity. copyPositionAndRotation(Entity entity)
void
Entity. dealDamage(LivingEntity attacker, Entity target)
float
Entity. distanceTo(Entity entity)
T
EntityType. downcast(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
Entity. isInRange(Entity other, double radius)
Checks if the distance between this entity and theother
entity is less thanradius
.boolean
Entity. isPartOf(Entity entity)
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. pushAway(Entity entity)
void
Entity. pushAwayFrom(Entity entity)
void
LivingEntity. pushAwayFrom(Entity entity)
protected void
Entity. removePassenger(Entity passenger)
void
LivingEntity. sendPickup(Entity item, int count)
double
Entity. squaredDistanceTo(Entity entity)
boolean
Entity. startRiding(Entity entity)
boolean
Entity. startRiding(Entity entity, boolean force)
boolean
LivingEntity. tryAttack(Entity target)
void
Entity. updateKilledAdvancementCriterion(Entity killer, int score, DamageSource damageSource)
void
Entity. updatePassengerPosition(Entity passenger)
private void
Entity. updatePassengerPosition(Entity passenger, Entity.PositionUpdater positionUpdater)
Method parameters in net.minecraft.entity with type arguments of type Entity Modifier and Type Method Description boolean
Entity. hasPassengerType(Predicate<Entity> predicate)
static @Nullable Entity
EntityType. loadEntityWithPassengers(NbtCompound nbt, World world, Function<Entity,Entity> entityProcessor)
static @Nullable Entity
EntityType. loadEntityWithPassengers(NbtCompound nbt, World world, Function<Entity,Entity> entityProcessor)
-
Uses of Entity in net.minecraft.entity.ai.brain
Fields in net.minecraft.entity.ai.brain declared as Entity Modifier and Type Field Description private Entity
EntityLookTarget. entity
Fields in net.minecraft.entity.ai.brain with type parameters of type Entity Modifier and Type Field Description static MemoryModuleType<Entity>
MemoryModuleType. RIDE_TARGET
Methods in net.minecraft.entity.ai.brain that return Entity Modifier and Type Method Description Entity
EntityLookTarget. method_35066()
Constructors in net.minecraft.entity.ai.brain with parameters of type Entity Constructor Description EntityLookTarget(Entity entity, boolean useEyeHeight)
WalkTarget(Entity entity, float float2, int int2)
-
Uses of Entity in net.minecraft.entity.ai.brain.task
Classes in net.minecraft.entity.ai.brain.task with type parameters of type Entity Modifier and Type Class Description class
RidingTask<E extends LivingEntity,T extends Entity>
Fields in net.minecraft.entity.ai.brain.task with type parameters of type Entity Modifier and Type Field Description private BiPredicate<E,Entity>
RidingTask. alternativeRideCondition
Methods in net.minecraft.entity.ai.brain.task that return Entity Modifier and Type Method Description private Entity
StartRidingTask. getRideTarget(E entity)
Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type Entity Modifier and Type Method Description static GoToRememberedPositionTask<? extends Entity>
GoToRememberedPositionTask. toEntity(MemoryModuleType<? extends Entity> memoryType, float speed, int range, boolean requiresWalkTarget)
Methods in net.minecraft.entity.ai.brain.task with parameters of type Entity Modifier and Type Method Description private boolean
RidingTask. canRideTarget(E entity, Entity target)
static void
LookTargetUtil. walkTowards(LivingEntity entity, Entity target, float speed, int completionRange)
Method parameters in net.minecraft.entity.ai.brain.task with type arguments of type Entity Modifier and Type Method Description static GoToRememberedPositionTask<? extends Entity>
GoToRememberedPositionTask. toEntity(MemoryModuleType<? extends Entity> memoryType, float speed, int range, boolean requiresWalkTarget)
Constructor parameters in net.minecraft.entity.ai.brain.task with type arguments of type Entity Constructor Description RidingTask(int range, BiPredicate<E,Entity> alternativeRideCondition)
-
Uses of Entity in net.minecraft.entity.ai.control
Methods in net.minecraft.entity.ai.control with parameters of type Entity Modifier and Type Method Description private static double
LookControl. getLookingHeightFor(Entity entity)
void
LookControl. lookAt(Entity entity)
void
LookControl. lookAt(Entity entity, float yawSpeed, float pitchSpeed)
-
Uses of Entity in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as Entity Modifier and Type Field Description protected Entity
LookAtEntityGoal. target
Methods in net.minecraft.entity.ai.goal with parameters of type Entity Modifier and Type Method Description protected @Nullable BlockPos
EscapeDangerGoal. locateClosestWater(BlockView blockView, Entity entity, int rangeX, int rangeY)
-
Uses of Entity in net.minecraft.entity.ai.pathing
Methods in net.minecraft.entity.ai.pathing with parameters of type Entity Modifier and Type Method Description Path
BirdNavigation. findPathTo(Entity entity, int distance)
@Nullable Path
EntityNavigation. findPathTo(Entity entity, int distance)
Path
MobNavigation. findPathTo(Entity entity, int distance)
Path
SpiderNavigation. findPathTo(Entity entity, int distance)
Vec3d
Path. getNodePosition(Entity entity)
Vec3d
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
Subclasses of Entity in net.minecraft.entity.boss Modifier and Type Class Description class
WitherEntity
Methods in net.minecraft.entity.boss with parameters of type Entity Modifier and Type Method Description protected boolean
WitherEntity. canStartRiding(Entity entity)
-
Uses of Entity in net.minecraft.entity.boss.dragon
Subclasses of Entity in net.minecraft.entity.boss.dragon Modifier and Type Class Description class
EnderDragonEntity
class
EnderDragonPart
Fields in net.minecraft.entity.boss.dragon with type parameters of type Entity Modifier and Type Field Description private static Predicate<Entity>
EnderDragonFight. VALID_ENTITY
Methods in net.minecraft.entity.boss.dragon with parameters of type Entity Modifier and Type Method Description protected boolean
EnderDragonEntity. canStartRiding(Entity entity)
boolean
EnderDragonPart. isPartOf(Entity entity)
Method parameters in net.minecraft.entity.boss.dragon with type arguments of type Entity Modifier and Type Method Description private void
EnderDragonEntity. damageLivingEntities(List<Entity> entities)
private void
EnderDragonEntity. launchLivingEntities(List<Entity> entities)
-
Uses of Entity in net.minecraft.entity.damage
Fields in net.minecraft.entity.damage declared as Entity Modifier and Type Field Description private Entity
ProjectileDamageSource. attacker
protected @Nullable Entity
EntityDamageSource. source
Methods in net.minecraft.entity.damage that return Entity Modifier and Type Method Description @Nullable Entity
DamageRecord. getAttacker()
@Nullable Entity
DamageSource. getAttacker()
@Nullable Entity
EntityDamageSource. getAttacker()
@Nullable Entity
ProjectileDamageSource. getAttacker()
@Nullable Entity
DamageSource. getSource()
@Nullable Entity
ProjectileDamageSource. getSource()
Methods in net.minecraft.entity.damage with parameters of type Entity Modifier and Type Method Description static 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
DamageSource. magic(Entity magic, @Nullable Entity attacker)
static DamageSource
DamageSource. mobProjectile(Entity projectile, LivingEntity attacker)
static DamageSource
DamageSource. thorns(Entity attacker)
static DamageSource
DamageSource. thrownProjectile(Entity projectile, @Nullable Entity attacker)
static DamageSource
DamageSource. trident(Entity trident, @Nullable Entity attacker)
static DamageSource
DamageSource. witherSkull(WitherSkullEntity witherSkull, Entity attacker)
Constructors in net.minecraft.entity.damage with parameters of type Entity Constructor Description EntityDamageSource(String name, @Nullable Entity source)
ProjectileDamageSource(String name, Entity projectile, @Nullable Entity attacker)
-
Uses of Entity in net.minecraft.entity.data
Fields in net.minecraft.entity.data declared as Entity Modifier and Type Field Description private Entity
DataTracker. trackedEntity
Fields in net.minecraft.entity.data with type parameters of type Entity Modifier and Type Field Description private static Object2IntMap<Class<? extends Entity>>
DataTracker. TRACKED_ENTITIES
Method parameters in net.minecraft.entity.data with type arguments of type Entity Modifier and Type Method Description static <T> TrackedData<T>
DataTracker. registerData(Class<? extends Entity> entityClass, TrackedDataHandler<T> dataHandler)
Constructors in net.minecraft.entity.data with parameters of type Entity Constructor Description DataTracker(Entity trackedEntity)
-
Uses of Entity in net.minecraft.entity.decoration
Subclasses of Entity in net.minecraft.entity.decoration Modifier and Type Class Description class
AbstractDecorationEntity
class
ArmorStandEntity
class
EndCrystalEntity
class
GlowItemFrameEntity
class
ItemFrameEntity
class
LeashKnotEntity
Fields in net.minecraft.entity.decoration with type parameters of type Entity Modifier and Type Field Description protected static Predicate<Entity>
AbstractDecorationEntity. PREDICATE
private static Predicate<Entity>
ArmorStandEntity. RIDEABLE_MINECART_PREDICATE
Methods in net.minecraft.entity.decoration with parameters of type Entity Modifier and Type Method Description private void
ItemFrameEntity. dropHeldStack(@Nullable Entity entity, boolean alwaysDrop)
boolean
AbstractDecorationEntity. handleAttack(Entity attacker)
boolean
ArmorStandEntity. handleAttack(Entity attacker)
abstract void
AbstractDecorationEntity. onBreak(@Nullable Entity entity)
void
ItemFrameEntity. onBreak(@Nullable Entity entity)
void
LeashKnotEntity. onBreak(@Nullable Entity entity)
protected void
ArmorStandEntity. pushAway(Entity entity)
-
Uses of Entity in net.minecraft.entity.decoration.painting
Subclasses of Entity in net.minecraft.entity.decoration.painting Modifier and Type Class Description class
PaintingEntity
Methods in net.minecraft.entity.decoration.painting with parameters of type Entity Modifier and Type Method Description void
PaintingEntity. onBreak(@Nullable Entity entity)
-
Uses of Entity in net.minecraft.entity.effect
Methods in net.minecraft.entity.effect with parameters of type Entity Modifier and Type Method Description void
StatusEffect. applyInstantEffect(@Nullable Entity source, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity)
-
Uses of Entity in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob declared as Entity Modifier and Type Field Description private @Nullable Entity
MobEntity. holdingEntity
Fields in net.minecraft.entity.mob with type parameters of type Entity Modifier and Type Field Description private List<Entity>
MobVisibilityCache. invisibleEntities
private static Predicate<Entity>
RavagerEntity. IS_NOT_RAVAGER
private List<Entity>
MobVisibilityCache. visibleEntities
Methods in net.minecraft.entity.mob that return Entity Modifier and Type Method Description @Nullable Entity
MobEntity. getHoldingEntity()
@Nullable Entity
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).Methods in net.minecraft.entity.mob with parameters of type Entity Modifier and Type Method Description void
MobEntity. attachLeash(Entity entity, boolean sendPacket)
private static boolean
PiglinBrain. canRide(PiglinEntity piglin, Entity ridden)
boolean
MobVisibilityCache. canSee(Entity entity)
boolean
RavagerEntity. canSee(Entity entity)
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
RavagerEntity. knockBack(Entity entity)
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)
private boolean
EndermanEntity. teleportTo(Entity entity)
boolean
CaveSpiderEntity. tryAttack(Entity target)
boolean
CreeperEntity. tryAttack(Entity target)
boolean
HoglinEntity. tryAttack(Entity target)
boolean
HuskEntity. tryAttack(Entity target)
boolean
MobEntity. tryAttack(Entity target)
boolean
RavagerEntity. tryAttack(Entity target)
boolean
WitherSkeletonEntity. tryAttack(Entity target)
boolean
ZoglinEntity. tryAttack(Entity target)
boolean
ZombieEntity. tryAttack(Entity target)
-
Uses of Entity in net.minecraft.entity.passive
Subclasses of Entity in net.minecraft.entity.passive Modifier and Type Class Description class
AbstractDonkeyEntity
class
AnimalEntity
class
AxolotlEntity
class
BatEntity
class
BeeEntity
class
CatEntity
Meow.class
ChickenEntity
class
CodEntity
class
CowEntity
class
DolphinEntity
class
DonkeyEntity
class
FishEntity
class
FoxEntity
class
GlowSquidEntity
class
GoatEntity
class
GolemEntity
class
HorseBaseEntity
class
HorseEntity
class
IronGolemEntity
class
LlamaEntity
class
MerchantEntity
class
MooshroomEntity
class
MuleEntity
class
OcelotEntity
class
PandaEntity
class
ParrotEntity
class
PassiveEntity
class
PigEntity
class
PolarBearEntity
class
PufferfishEntity
class
RabbitEntity
class
SalmonEntity
class
SchoolingFishEntity
class
SheepEntity
class
SnowGolemEntity
class
SquidEntity
class
StriderEntity
class
TameableEntity
class
TameableShoulderEntity
class
TraderLlamaEntity
class
TropicalFishEntity
class
TurtleEntity
class
VillagerEntity
class
WanderingTraderEntity
class
WolfEntity
Fields in net.minecraft.entity.passive with type parameters of type Entity Modifier and Type Field Description private static Predicate<Entity>
FoxEntity. CHICKEN_AND_RABBIT_FILTER
private static Predicate<Entity>
FoxEntity. JUST_ATTACKED_SOMETHING_FILTER
private static Predicate<Entity>
FoxEntity. NOTICEABLE_PLAYER_FILTER
Methods in net.minecraft.entity.passive that return Entity Modifier and Type Method Description @Nullable Entity
HorseBaseEntity. getPrimaryPassenger()
@Nullable Entity
PigEntity. getPrimaryPassenger()
@Nullable Entity
StriderEntity. getPrimaryPassenger()
@Nullable Entity
MerchantEntity. moveToWorld(ServerWorld destination)
Moves this entity to another world.Methods in net.minecraft.entity.passive with parameters of type Entity Modifier and Type Method Description protected boolean
StriderEntity. canAddPassenger(Entity passenger)
protected boolean
DolphinEntity. canStartRiding(Entity entity)
double
AxolotlEntity. getAttackDistanceScalingFactor(@Nullable 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
BatEntity. pushAway(Entity entity)
protected void
IronGolemEntity. pushAway(Entity entity)
protected void
ParrotEntity. pushAway(Entity entity)
boolean
AxolotlEntity. tryAttack(Entity target)
boolean
BeeEntity. tryAttack(Entity target)
boolean
CatEntity. tryAttack(Entity target)
boolean
DolphinEntity. tryAttack(Entity target)
boolean
IronGolemEntity. tryAttack(Entity target)
boolean
OcelotEntity. tryAttack(Entity target)
boolean
PandaEntity. tryAttack(Entity target)
boolean
ParrotEntity. tryAttack(Entity target)
boolean
PolarBearEntity. tryAttack(Entity target)
boolean
RabbitEntity. tryAttack(Entity target)
boolean
WolfEntity. tryAttack(Entity target)
void
ChickenEntity. updatePassengerPosition(Entity passenger)
void
HorseBaseEntity. updatePassengerPosition(Entity passenger)
void
LlamaEntity. updatePassengerPosition(Entity passenger)
-
Uses of Entity in net.minecraft.entity.player
Subclasses of Entity in net.minecraft.entity.player Modifier and Type Class Description class
PlayerEntity
Methods in net.minecraft.entity.player with parameters of type Entity Modifier and Type Method Description void
PlayerEntity. addCritParticles(Entity target)
void
PlayerEntity. addEnchantedHitParticles(Entity target)
void
PlayerEntity. attack(Entity target)
private void
PlayerEntity. collideWithEntity(Entity entity)
ActionResult
PlayerEntity. interact(Entity entity, Hand hand)
-
Uses of Entity in net.minecraft.entity.projectile
Subclasses of Entity in net.minecraft.entity.projectile Modifier and Type Class Description class
AbstractFireballEntity
class
ArrowEntity
class
DragonFireballEntity
class
ExplosiveProjectileEntity
class
FireballEntity
class
FireworkRocketEntity
class
FishingBobberEntity
class
LlamaSpitEntity
class
PersistentProjectileEntity
class
ProjectileEntity
class
ShulkerBulletEntity
class
SmallFireballEntity
class
SpectralArrowEntity
class
TridentEntity
class
WitherSkullEntity
Fields in net.minecraft.entity.projectile declared as Entity Modifier and Type Field Description private Entity
FishingBobberEntity. hookedEntity
private Entity
ShulkerBulletEntity. target
Fields in net.minecraft.entity.projectile with type parameters of type Entity Modifier and Type Field Description private List<Entity>
PersistentProjectileEntity. piercingKilledEntities
Methods in net.minecraft.entity.projectile that return Entity Modifier and Type Method Description @Nullable Entity
FishingBobberEntity. getHookedEntity()
@Nullable Entity
ProjectileEntity. getOwner()
Methods in net.minecraft.entity.projectile with parameters of type Entity Modifier and Type Method Description protected boolean
ExplosiveProjectileEntity. canHit(Entity entity)
protected boolean
FishingBobberEntity. canHit(Entity entity)
protected boolean
PersistentProjectileEntity. canHit(Entity entity)
protected boolean
ProjectileEntity. canHit(Entity entity)
protected boolean
ShulkerBulletEntity. canHit(Entity entity)
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
ProjectileEntity. isOwner(Entity entity)
static void
ProjectileUtil. method_7484(Entity entity, float float2)
static @Nullable EntityHitResult
ProjectileUtil. raycast(Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate, double double2)
void
FishingBobberEntity. setOwner(@Nullable Entity entity)
void
PersistentProjectileEntity. setOwner(@Nullable Entity entity)
void
ProjectileEntity. setOwner(@Nullable Entity entity)
void
ProjectileEntity. setProperties(Entity user, float pitch, float yaw, float roll, float modifierZ, float modifierXYZ)
Method parameters in net.minecraft.entity.projectile with type arguments of type Entity Modifier and Type Method Description 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)
static @Nullable EntityHitResult
ProjectileUtil. raycast(Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate, double double2)
Constructors in net.minecraft.entity.projectile with parameters of type Entity Constructor Description FireworkRocketEntity(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
Subclasses of Entity in net.minecraft.entity.projectile.thrown Modifier and Type Class Description class
EggEntity
class
EnderPearlEntity
class
ExperienceBottleEntity
class
PotionEntity
class
SnowballEntity
class
ThrownEntity
class
ThrownItemEntity
Methods in net.minecraft.entity.projectile.thrown that return Entity Modifier and Type Method Description @Nullable Entity
EnderPearlEntity. moveToWorld(ServerWorld destination)
Moves this entity to another world.Methods in net.minecraft.entity.projectile.thrown with parameters of type Entity Modifier and Type Method Description private void
PotionEntity. applySplashPotion(List<StatusEffectInstance> statusEffects, @Nullable Entity entity)
-
Uses of Entity in net.minecraft.entity.raid
Subclasses of Entity in net.minecraft.entity.raid Modifier and Type Class Description class
RaiderEntity
-
Uses of Entity in net.minecraft.entity.vehicle
Subclasses of Entity in net.minecraft.entity.vehicle Modifier and Type Class Description class
AbstractMinecartEntity
class
BoatEntity
class
ChestMinecartEntity
class
CommandBlockMinecartEntity
class
FurnaceMinecartEntity
class
HopperMinecartEntity
class
MinecartEntity
class
SpawnerMinecartEntity
class
StorageMinecartEntity
class
TntMinecartEntity
Methods in net.minecraft.entity.vehicle that return Entity Modifier and Type Method Description @Nullable Entity
BoatEntity. getPrimaryPassenger()
Methods in net.minecraft.entity.vehicle with parameters of type Entity Modifier and Type Method Description protected 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
Classes in net.minecraft.item with type parameters of type Entity Modifier and Type Class Description class
OnAStickItem<T extends Entity & ItemSteerable>
Fields in net.minecraft.item declared as Entity Modifier and Type Field Description private Entity
ItemStack. holder
Fields in net.minecraft.item with type parameters of type Entity Modifier and Type Field Description private static Predicate<Entity>
BoatItem. RIDERS
Methods in net.minecraft.item that return Entity Modifier and Type Method Description @Nullable Entity
ItemStack. getHolder()
Methods in net.minecraft.item with parameters of type Entity Modifier and Type Method Description void
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
ItemStack. setHolder(@Nullable Entity holder)
void
FilledMapItem. updateColors(World world, Entity entity, MapState state)
-
Uses of Entity in net.minecraft.loot.condition
Methods in net.minecraft.loot.condition with parameters of type Entity Modifier and Type Method Description protected boolean
EntityScoresLootCondition. entityScoreIsInRange(LootContext context, Entity entity, Scoreboard scoreboard, String objectiveName, BoundedIntUnaryOperator range)
-
Uses of Entity in net.minecraft.loot.context
Fields in net.minecraft.loot.context with type parameters of type Entity Modifier and Type Field Description static LootContextParameter<Entity>
LootContextParameters. DIRECT_KILLER_ENTITY
static LootContextParameter<Entity>
LootContextParameters. KILLER_ENTITY
private LootContextParameter<? extends Entity>
LootContext.EntityTarget. parameter
static LootContextParameter<Entity>
LootContextParameters. THIS_ENTITY
Methods in net.minecraft.loot.context that return types with arguments of type Entity Modifier and Type Method Description LootContextParameter<? extends Entity>
LootContext.EntityTarget. getParameter()
Constructor parameters in net.minecraft.loot.context with type arguments of type Entity Constructor Description EntityTarget(String type, LootContextParameter<? extends Entity> parameter)
-
Uses of Entity in net.minecraft.network.packet.c2s.play
Methods in net.minecraft.network.packet.c2s.play that return Entity Modifier and Type Method Description @Nullable Entity
PlayerInteractEntityC2SPacket. getEntity(ServerWorld world)
@Nullable Entity
SpectatorTeleportC2SPacket. getTarget(ServerWorld world)
Methods in net.minecraft.network.packet.c2s.play with parameters of type Entity Modifier and Type Method Description static PlayerInteractEntityC2SPacket
PlayerInteractEntityC2SPacket. attack(Entity entity, boolean playerSneaking)
static PlayerInteractEntityC2SPacket
PlayerInteractEntityC2SPacket. interact(Entity entity, boolean playerSneaking, Hand hand)
static PlayerInteractEntityC2SPacket
PlayerInteractEntityC2SPacket. interactAt(Entity entity, boolean playerSneaking, Hand hand, Vec3d pos)
Constructors in net.minecraft.network.packet.c2s.play with parameters of type Entity Constructor Description ClientCommandC2SPacket(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
Methods in net.minecraft.network.packet.s2c.play that return Entity Modifier and Type Method Description @Nullable Entity
EntityS2CPacket. getEntity(World world)
Entity
EntitySetHeadYawS2CPacket. getEntity(World world)
@Nullable Entity
EntityStatusS2CPacket. getEntity(World world)
@Nullable Entity
RemoveEntityStatusEffectS2CPacket. getEntity(World world)
@Nullable Entity
SetCameraEntityS2CPacket. getEntity(World world)
Constructors in net.minecraft.network.packet.s2c.play with parameters of type Entity Constructor Description EntityAnimationS2CPacket(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
Methods in net.minecraft.predicate with parameters of type Entity Modifier and Type Method Description static NbtCompound
NbtPredicate. entityToNbt(Entity entity)
boolean
NbtPredicate. test(Entity entity)
boolean
PlayerPredicate. test(Entity entity)
-
Uses of Entity in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity with type parameters of type Entity Modifier and Type Field Description static Predicate<Entity>
EntityPredicates. EXCEPT_CREATIVE_OR_SPECTATOR
static Predicate<Entity>
EntityPredicates. EXCEPT_CREATIVE_SPECTATOR_OR_PEACEFUL
static Predicate<Entity>
EntityPredicates. EXCEPT_SPECTATOR
static Predicate<Entity>
EntityPredicates. NOT_MOUNTED
Tests if an entity is not mounted.static Predicate<Entity>
EntityPredicates. VALID_ENTITY
Tests if an entity is valid.static Predicate<Entity>
EntityPredicates. VALID_INVENTORIES
Tests if an entity has a valid inventory.static Predicate<Entity>
EntityPredicates. VALID_LIVING_ENTITY
Tests if a living entity is valid.Methods in net.minecraft.predicate.entity that return types with arguments of type Entity Modifier and Type Method Description static Predicate<Entity>
EntityPredicates. canBePushedBy(Entity entity)
static Predicate<Entity>
EntityPredicates. maxDistance(double x, double y, double z, double max)
static Predicate<Entity>
EntityPredicates. rides(Entity entity)
Methods in net.minecraft.predicate.entity with parameters of type Entity Modifier and Type Method Description static Predicate<Entity>
EntityPredicates. canBePushedBy(Entity entity)
static LootContext
EntityPredicate. createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
static Predicate<Entity>
EntityPredicates. rides(Entity entity)
boolean
EntityEffectPredicate. test(Entity entity)
boolean
EntityEquipmentPredicate. test(@Nullable Entity entity)
boolean
EntityFlagsPredicate. test(Entity entity)
boolean
EntityPredicate. test(ServerPlayerEntity player, @Nullable Entity entity)
boolean
EntityPredicate. test(ServerWorld world, @Nullable Vec3d pos, @Nullable Entity entity)
boolean
EntityPredicates.Equipable. test(@Nullable Entity entity)
boolean
FishingHookPredicate. test(Entity entity)
-
Uses of Entity in net.minecraft.scoreboard
Methods in net.minecraft.scoreboard with parameters of type Entity Modifier and Type Method Description void
Scoreboard. resetEntityScore(Entity entity)
-
Uses of Entity in net.minecraft.server.command
Fields in net.minecraft.server.command declared as Entity Modifier and Type Field Description private @Nullable Entity
ServerCommandSource. entity
private Entity
TeleportCommand.LookTarget. target
Methods in net.minecraft.server.command that return Entity Modifier and Type Method Description @Nullable Entity
ServerCommandSource. getEntity()
Gets the entity from this command source or returns null if this command source is not an entity.Entity
ServerCommandSource. getEntityOrThrow()
Gets the entity from this command source or throws a command syntax exception if this command source is not an entity.Methods in net.minecraft.server.command with parameters of type Entity Modifier and Type Method Description private 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
ServerCommandSource. withEntity(Entity entity)
ServerCommandSource
ServerCommandSource. withLookingAt(Entity entity, EntityAnchorArgumentType.EntityAnchor anchor)
Method parameters in net.minecraft.server.command with type arguments of type Entity Modifier and Type Method Description private 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)
Constructors in net.minecraft.server.command with parameters of type Entity Constructor Description LookTarget(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)
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
Subclasses of Entity in net.minecraft.server.network Modifier and Type Class Description class
ServerPlayerEntity
Fields in net.minecraft.server.network declared as Entity Modifier and Type Field Description private Entity
ServerPlayerEntity. cameraEntity
private Entity
EntityTrackerEntry. entity
private @Nullable Entity
ServerPlayNetworkHandler. topmostRiddenEntity
Fields in net.minecraft.server.network with type parameters of type Entity Modifier and Type Field Description private List<Entity>
EntityTrackerEntry. lastPassengers
Methods in net.minecraft.server.network that return Entity Modifier and Type Method Description Entity
ServerPlayerEntity. getCameraEntity()
@Nullable Entity
ServerPlayerEntity. moveToWorld(ServerWorld destination)
Moves this entity to another world.Methods in net.minecraft.server.network with parameters of type Entity Modifier and Type Method Description void
ServerPlayerEntity. addCritParticles(Entity target)
void
ServerPlayerEntity. addEnchantedHitParticles(Entity target)
void
ServerPlayerEntity. attack(Entity target)
private boolean
ServerPlayNetworkHandler. isEntityOnAir(Entity entity)
void
ServerPlayerEntity. lookAtEntity(EntityAnchorArgumentType.EntityAnchor anchorPoint, Entity targetEntity, EntityAnchorArgumentType.EntityAnchor targetAnchor)
void
ServerPlayerEntity. onStartedTracking(Entity entity)
void
ServerPlayerEntity. onStoppedTracking(Entity entity)
ActionResult
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)
Constructors in net.minecraft.server.network with parameters of type Entity Constructor Description EntityTrackerEntry(ServerWorld world, Entity entity, int tickInterval, boolean alwaysUpdateVelocity, Consumer<Packet<?>> receiver)
-
Uses of Entity in net.minecraft.server.world
Fields in net.minecraft.server.world declared as Entity Modifier and Type Field Description private Entity
ThreadedAnvilChunkStorage.EntityTracker. entity
Fields in net.minecraft.server.world with type parameters of type Entity Modifier and Type Field Description private ServerEntityManager<Entity>
ServerWorld. entityManager
Methods in net.minecraft.server.world with type parameters of type Entity Modifier and Type Method Description <T extends Entity>
List<? extends T>ServerWorld. getEntitiesByType(TypeFilter<Entity,T> typeFilter, Predicate<? super T> predicate)
Computes a list of entities of the given type.Methods in net.minecraft.server.world that return Entity Modifier and Type Method Description @Nullable Entity
ServerWorld. getDragonPart(int id)
Deprecated.@Nullable Entity
ServerWorld. getEntity(UUID uuid)
@Nullable Entity
ServerWorld. getEntityById(int id)
Methods in net.minecraft.server.world that return types with arguments of type Entity Modifier and Type Method Description protected EntityLookup<Entity>
ServerWorld. getEntityLookup()
Iterable<Entity>
ServerWorld. iterateEntities()
Methods in net.minecraft.server.world with parameters of type Entity Modifier and Type Method Description private boolean
ServerWorld. addEntity(Entity entity)
void
ServerWorld.ServerEntityHandler. create(Entity entity)
Explosion
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
ServerWorld.ServerEntityHandler. destroy(Entity entity)
void
ServerWorld. emitGameEvent(@Nullable Entity entity, GameEvent event, BlockPos pos)
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)
private static int
ThreadedAnvilChunkStorage. method_34869(ChunkPos chunkPos, 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)
protected 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)
Method parameters in net.minecraft.server.world with type arguments of type Entity Modifier and Type Method Description void
ServerWorld. addEntities(Stream<Entity> entities)
private static void
ServerWorld. dumpEntities(Writer writer, Iterable<Entity> entities)
<T extends Entity>
List<? extends T>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)
Constructors in net.minecraft.server.world with parameters of type Entity Constructor Description EntityTracker(Entity entity, int maxDistance, int tickInterval, boolean alwaysUpdateVelocity)
-
Uses of Entity in net.minecraft.structure
Methods in net.minecraft.structure that return types with arguments of type Entity Modifier and Type Method Description private static Optional<Entity>
Structure. getEntity(ServerWorldAccess world, NbtCompound nbt)
-
Uses of Entity in net.minecraft.test
Methods in net.minecraft.test with type parameters of type Entity Modifier and Type Method Description <E extends Entity, T>
voidStartupParameter. method_35957(E e, Function<E,T> function, String string, T t)
<E extends Entity>
voidStartupParameter. method_35958(E e, Predicate<E> predicate, String string)
<E extends Entity>
EStartupParameter. method_35961(EntityType<E> entityType, float float2, float float3, float float4)
<E extends Entity>
EStartupParameter. method_35962(EntityType<E> entityType, int int2, int int3, int int4)
<E extends Entity>
EStartupParameter. method_35963(EntityType<E> entityType, Vec3d vec3d)
<E extends Entity>
EStartupParameter. method_35964(EntityType<E> entityType, BlockPos blockPos)
<E extends Entity, T>
voidStartupParameter. method_35982(BlockPos blockPos, EntityType<E> entityType, Function<? super E,T> function, T t)
<E extends Entity, T>
voidStartupParameter. method_36015(BlockPos blockPos, EntityType<E> entityType, Function<E,T> function, T t)
Methods in net.minecraft.test with parameters of type Entity Modifier and Type Method Description void
StartupParameter. method_35953(Entity entity, int int2, int int3, int int4)
void
StartupParameter. method_35955(Entity entity, BlockPos blockPos)
void
StartupParameter. method_35996(String string, Entity entity)
-
Uses of Entity in net.minecraft.text
Methods in net.minecraft.text with parameters of type Entity Modifier and Type Method Description MutableText
NbtText. parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth)
MutableText
ParsableText. parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth)
MutableText
ScoreText. parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth)
MutableText
SelectorText. parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth)
static MutableText
Texts. parse(@Nullable ServerCommandSource source, Text text, @Nullable Entity sender, int depth)
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
Fields in net.minecraft.util.hit declared as Entity Modifier and Type Field Description private Entity
EntityHitResult. entity
Methods in net.minecraft.util.hit that return Entity Modifier and Type Method Description Entity
EntityHitResult. getEntity()
Methods in net.minecraft.util.hit with parameters of type Entity Modifier and Type Method Description double
HitResult. squaredDistanceTo(Entity entity)
Constructors in net.minecraft.util.hit with parameters of type Entity Constructor Description EntityHitResult(Entity entity)
EntityHitResult(Entity entity, Vec3d pos)
-
Uses of Entity in net.minecraft.util.math
Methods in net.minecraft.util.math with parameters of type Entity Modifier and Type Method Description static ChunkSectionPos
ChunkSectionPos. from(Entity entity)
static Direction[]
Direction. getEntityFacingOrder(Entity entity)
static Direction
Direction. getLookDirectionForAxis(Entity entity, Direction.Axis axis)
-
Uses of Entity in net.minecraft.village
Methods in net.minecraft.village with parameters of type Entity Modifier and Type Method Description TradeOffer
TradeOffers.BuyForOneEmeraldFactory. create(Entity entity, Random random)
Creates a trade offer.TradeOffer
TradeOffers.EnchantBookFactory. create(Entity entity, Random random)
Creates a trade offer.@Nullable TradeOffer
TradeOffers.Factory. create(Entity entity, Random random)
Creates a trade offer.@Nullable TradeOffer
TradeOffers.ProcessItemFactory. create(Entity entity, Random random)
Creates a trade offer.TradeOffer
TradeOffers.SellDyedArmorFactory. create(Entity entity, Random random)
Creates a trade offer.TradeOffer
TradeOffers.SellEnchantedToolFactory. create(Entity entity, Random random)
Creates a trade offer.TradeOffer
TradeOffers.SellItemFactory. create(Entity entity, Random random)
Creates a trade offer.@Nullable TradeOffer
TradeOffers.SellMapFactory. create(Entity entity, Random random)
Creates a trade offer.TradeOffer
TradeOffers.SellPotionHoldingItemFactory. create(Entity entity, Random random)
Creates a trade offer.@Nullable TradeOffer
TradeOffers.SellSuspiciousStewFactory. create(Entity entity, Random random)
Creates a trade offer.@Nullable TradeOffer
TradeOffers.TypeAwareBuyForOneEmeraldFactory. create(Entity entity, Random random)
Creates a trade offer. -
Uses of Entity in net.minecraft.village.raid
Methods in net.minecraft.village.raid with parameters of type Entity Modifier and Type Method Description void
Raid. addHero(Entity entity)
-
Uses of Entity in net.minecraft.world
Fields in net.minecraft.world declared as Entity Modifier and Type Field Description private @Nullable Entity
BlockCollisionSpliterator. entity
private @Nullable Entity
MobSpawnerLogic. renderedEntity
Fields in net.minecraft.world with type parameters of type Entity Modifier and Type Field Description private Int2ObjectMap<Entity>
EntityList. entities
private @Nullable Int2ObjectMap<Entity>
EntityList. iterating
private Int2ObjectMap<Entity>
EntityList. temp
Methods in net.minecraft.world with type parameters of type Entity Modifier and Type Method Description default <T extends Entity>
List<T>EntityView. 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.<T extends Entity>
List<T>ChunkRegion. getEntitiesByType(TypeFilter<Entity,T> filter, Box box, Predicate<? super T> predicate)
<T extends Entity>
List<T>EntityView. getEntitiesByType(TypeFilter<Entity,T> filter, Box box, Predicate<? super T> predicate)
<T extends Entity>
List<T>World. getEntitiesByType(TypeFilter<Entity,T> filter, Box box, Predicate<? super T> predicate)
default <T extends Entity>
List<T>EntityView. getNonSpectatingEntities(Class<T> entityClass, Box box)
<T extends Entity>
voidWorld. tickEntity(Consumer<T> tickConsumer, T entity)
Methods in net.minecraft.world that return Entity Modifier and Type Method Description abstract @Nullable Entity
World. getEntityById(int id)
@Nullable Entity
MobSpawnerLogic. getRenderedEntity(World world)
Methods in net.minecraft.world that return types with arguments of type Entity Modifier and Type Method Description protected abstract EntityLookup<Entity>
World. getEntityLookup()
List<Entity>
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.default List<Entity>
EntityView. getOtherEntities(@Nullable Entity except, Box box)
Computes a list of entities within some box, excluding the given entity, that are not spectators.List<Entity>
EntityView. getOtherEntities(@Nullable Entity except, Box box, Predicate<? super Entity> predicate)
Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.List<Entity>
World. getOtherEntities(@Nullable Entity except, Box box, Predicate<? super Entity> predicate)
Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Methods in net.minecraft.world with parameters of type Entity Modifier and Type Method Description void
EntityList. add(Entity entity)
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)
Explosion
World. createExplosion(@Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType)
Explosion
World. createExplosion(@Nullable Entity entity, double x, double y, double z, float power, Explosion.DestructionType destructionType)
Explosion
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)
default Stream<VoxelShape>
CollisionView. getBlockCollisions(@Nullable Entity entity, Box box)
default Stream<VoxelShape>
CollisionView. getBlockCollisions(@Nullable Entity entity, Box box, BiPredicate<BlockState,BlockPos> biPredicate)
default @Nullable PlayerEntity
EntityView. getClosestPlayer(Entity entity, double maxDistance)
default Stream<VoxelShape>
CollisionView. getCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
Stream<VoxelShape>
CollisionView. getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
default Stream<VoxelShape>
EntityView. getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
default Stream<VoxelShape>
RegistryWorldView. getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
List<Entity>
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.default List<Entity>
EntityView. getOtherEntities(@Nullable Entity except, Box box)
Computes a list of entities within some box, excluding the given entity, that are not spectators.List<Entity>
EntityView. getOtherEntities(@Nullable Entity except, Box box, Predicate<? super Entity> predicate)
Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.List<Entity>
World. getOtherEntities(@Nullable Entity except, Box box, Predicate<? super Entity> predicate)
Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.boolean
EntityList. has(Entity entity)
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)
default boolean
CollisionView. isBlockSpaceEmpty(@Nullable Entity entity, Box box, BiPredicate<BlockState,BlockPos> biPredicate)
boolean
World. isDirectionSolid(BlockPos pos, Entity entity, Direction direction)
default boolean
CollisionView. isSpaceEmpty(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
default boolean
CollisionView. isSpaceEmpty(Entity entity)
default boolean
CollisionView. isSpaceEmpty(Entity entity, Box box)
boolean
World. isTopSolid(BlockPos pos, Entity entity)
default Optional<Vec3d>
CollisionView. method_33594(@Nullable Entity entity, VoxelShape voxelShape, Vec3d vec3d, double double2, double double3, double double4)
abstract void
World. playSoundFromEntity(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch)
void
EntityList. remove(Entity entity)
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.Method parameters in net.minecraft.world with type arguments of type Entity Modifier and Type Method Description void
EntityList. forEach(Consumer<Entity> action)
Runs anaction
on every entity in this storage.@Nullable PlayerEntity
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>
CollisionView. getCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
<T extends Entity>
List<T>ChunkRegion. getEntitiesByType(TypeFilter<Entity,T> filter, Box box, Predicate<? super T> predicate)
<T extends Entity>
List<T>EntityView. getEntitiesByType(TypeFilter<Entity,T> filter, Box box, Predicate<? super T> predicate)
<T extends Entity>
List<T>World. getEntitiesByType(TypeFilter<Entity,T> filter, Box box, Predicate<? super T> predicate)
Stream<VoxelShape>
CollisionView. getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
default Stream<VoxelShape>
EntityView. getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
default Stream<VoxelShape>
RegistryWorldView. getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
List<Entity>
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.List<Entity>
EntityView. getOtherEntities(@Nullable Entity except, Box box, Predicate<? super Entity> predicate)
Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.List<Entity>
World. getOtherEntities(@Nullable Entity except, Box box, Predicate<? super Entity> predicate)
Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.default boolean
CollisionView. isSpaceEmpty(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
static SpawnHelper.Info
SpawnHelper. setupSpawn(int spawningChunkCount, Iterable<Entity> entities, SpawnHelper.ChunkSource chunkSource)
Constructors in net.minecraft.world with parameters of type Entity Constructor Description BlockCollisionSpliterator(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
Methods in net.minecraft.world.border with parameters of type Entity Modifier and Type Method Description double
WorldBorder. getDistanceInsideBorder(Entity entity)
-
Uses of Entity in net.minecraft.world.chunk
Methods in net.minecraft.world.chunk with parameters of type Entity Modifier and Type Method Description void
Chunk. addEntity(Entity entity)
void
ProtoChunk. addEntity(Entity entity)
void
ReadOnlyChunk. addEntity(Entity entity)
void
WorldChunk. addEntity(Entity entity)
Deprecated.Stream<VoxelShape>
ChunkCache. getCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
Stream<VoxelShape>
ChunkCache. getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
Method parameters in net.minecraft.world.chunk with type arguments of type Entity Modifier and Type Method Description Stream<VoxelShape>
ChunkCache. getCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
Stream<VoxelShape>
ChunkCache. getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
-
Uses of Entity in net.minecraft.world.event
Fields in net.minecraft.world.event with type parameters of type Entity Modifier and Type Field Description private Optional<Entity>
EntityPositionSource. entity
-
Uses of Entity in net.minecraft.world.event.listener
Methods in net.minecraft.world.event.listener with parameters of type Entity Modifier and Type Method Description boolean
SculkSensorListener.Callback. accepts(World world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity)
Returns whether the callback wants to accept this event.void
GameEventDispatcher. dispatch(GameEvent event, @Nullable Entity entity, BlockPos pos)
Dispatches an event to all the listeners in this dispatcher.void
SimpleGameEventDispatcher. dispatch(GameEvent event, @Nullable Entity entity, BlockPos pos)
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
GameEventListener. listen(World world, GameEvent event, @Nullable Entity entity, BlockPos pos)
Listens to an incoming game event.boolean
SculkSensorListener. listen(World world, GameEvent event, @Nullable Entity entity, BlockPos pos)
Listens to an incoming game event.private boolean
SculkSensorListener. shouldActivate(GameEvent event, @Nullable Entity entity)
-
Uses of Entity in net.minecraft.world.explosion
Fields in net.minecraft.world.explosion declared as Entity Modifier and Type Field Description private Entity
EntityExplosionBehavior. entity
private @Nullable Entity
Explosion. entity
Methods in net.minecraft.world.explosion with parameters of type Entity Modifier and Type Method Description private ExplosionBehavior
Explosion. chooseBehavior(@Nullable Entity entity)
static float
Explosion. getExposure(Vec3d source, Entity entity)
Constructors in net.minecraft.world.explosion with parameters of type Entity Constructor Description EntityExplosionBehavior(Entity entity)
Explosion(World world, @Nullable Entity entity, double x, double y, double z, float power)
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
Methods in net.minecraft.world.storage that return types with arguments of type Entity Modifier and Type Method Description private static ChunkDataList<Entity>
EntityChunkDataAccess. emptyDataList(ChunkPos pos)
CompletableFuture<ChunkDataList<Entity>>
EntityChunkDataAccess. readChunkData(ChunkPos pos)
Method parameters in net.minecraft.world.storage with type arguments of type Entity Modifier and Type Method Description void
EntityChunkDataAccess. writeChunkData(ChunkDataList<Entity> dataList)