Uses of Class
net.minecraft.entity.Entity
Packages that use Entity
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
The basic AI system for Minecraft living entities.
-
Uses of Entity in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type EntityModifier and TypeMethodDescriptionvoidEffectsChangedCriterion.trigger(ServerPlayerEntity player, @Nullable Entity source) voidOnKilledCriterion.trigger(ServerPlayerEntity player, Entity entity, DamageSource killingDamage) voidPlayerHurtEntityCriterion.trigger(ServerPlayerEntity player, Entity entity, DamageSource damage, float dealt, float taken, boolean blocked) voidPlayerInteractedWithEntityCriterion.trigger(ServerPlayerEntity player, ItemStack stack, Entity entity) voidSummonedEntityCriterion.trigger(ServerPlayerEntity player, Entity entity) voidTargetHitCriterion.trigger(ServerPlayerEntity player, Entity projectile, Vec3d hitPos, int signalStrength) voidThrownItemPickedUpByEntityCriterion.trigger(ServerPlayerEntity player, ItemStack stack, @Nullable Entity entity) Method parameters in net.minecraft.advancement.criterion with type arguments of type EntityModifier and TypeMethodDescriptionvoidChanneledLightningCriterion.trigger(ServerPlayerEntity player, Collection<? extends Entity> victims) voidKilledByCrossbowCriterion.trigger(ServerPlayerEntity player, Collection<Entity> piercingKilledEntities) voidLightningStrikeCriterion.trigger(ServerPlayerEntity player, LightningEntity lightning, List<Entity> bystanders) -
Uses of Entity in net.minecraft.block
Fields in net.minecraft.block declared as EntityMethods in net.minecraft.block that return EntityMethods in net.minecraft.block that return types with arguments of type EntityModifier and TypeMethodDescriptionLandingBlock.getEntityPredicate()PointedDripstoneBlock.getEntityPredicate()Methods in net.minecraft.block with parameters of type EntityModifier and TypeMethodDescriptionprivate voidHoneyBlock.addCollisionEffects(World world, Entity entity) private static voidHoneyBlock.addParticles(Entity entity, int count) static voidHoneyBlock.addRegularParticles(Entity entity) static voidHoneyBlock.addRichParticles(Entity entity) private voidprivate voidBedBlock.bounceEntity(Entity entity) private booleanstatic booleanPowderSnowBlock.canWalkOnPowderSnow(Entity entity) static voidBlock.dropStacks(BlockState state, World world, BlockPos pos, @Nullable BlockEntity blockEntity, Entity entity, ItemStack stack) static voidCampfireBlock.extinguish(@Nullable Entity entity, WorldAccess world, BlockPos pos, BlockState state) Block.getDroppedStacks(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack) private static booleanHoneyBlock.hasHoneyBlockEffects(Entity entity) final booleanAbstractBlock.AbstractBlockState.hasSolidTopSurface(BlockView world, BlockPos pos, Entity entity) private static booleanBigDripleafBlock.isEntityAbove(BlockPos pos, Entity entity) protected booleanAbstractCauldronBlock.isEntityTouchingFluid(BlockState state, BlockPos pos, Entity entity) private booleanfinal booleanAbstractBlock.AbstractBlockState.isSolidSurface(BlockView world, BlockPos pos, Entity entity, Direction direction) static ShapeContextvoidAbstractBlock.AbstractBlockState.onEntityCollision(World world, BlockPos pos, Entity entity) voidAbstractBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) Deprecated.voidAbstractButtonBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidAbstractFireBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidAbstractPressurePlateBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidBigDripleafBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidBubbleColumnBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidCactusBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidCampfireBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidCobwebBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidCropBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidDetectorRailBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidEndPortalBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidFrogspawnBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidHoneyBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidHopperBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidLavaCauldronBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidLeveledCauldronBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidLilyPadBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidNetherPortalBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidPowderSnowBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidSweetBerryBushBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidTripwireBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidWitherRoseBlock.onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidBedBlock.onEntityLand(BlockView world, Entity entity) voidBlock.onEntityLand(BlockView world, Entity entity) voidSlimeBlock.onEntityLand(BlockView world, Entity entity) voidBedBlock.onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidBlock.onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidFarmlandBlock.onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidHayBlock.onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidHoneyBlock.onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidPointedDripstoneBlock.onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidPowderSnowBlock.onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidSlimeBlock.onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidTurtleEggBlock.onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) voidBlock.onSteppedOn(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.voidMagmaBlock.onSteppedOn(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.voidRedstoneOreBlock.onSteppedOn(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.voidSculkSensorBlock.onSteppedOn(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.voidSculkShriekerBlock.onSteppedOn(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.voidSlimeBlock.onSteppedOn(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.voidStairsBlock.onSteppedOn(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.voidTurtleEggBlock.onSteppedOn(World world, BlockPos pos, BlockState state, Entity entity) Called when an entity steps on this block.private voidbooleanstatic voidSculkSensorBlock.setActive(@Nullable Entity entity, World world, BlockPos pos, BlockState state, int power) voidDoorBlock.setOpen(@Nullable Entity entity, World world, BlockState state, BlockPos pos, boolean open) voidJukeboxBlock.setRecord(@Nullable Entity user, WorldAccess world, BlockPos pos, BlockState state, ItemStack stack) private static intTargetBlock.trigger(WorldAccess world, BlockState state, BlockHitResult hitResult, Entity entity) private voidHoneyBlock.triggerAdvancement(Entity entity, BlockPos pos) private voidTurtleEggBlock.tryBreakEgg(World world, BlockState state, BlockPos pos, Entity entity, int inverseChance) protected voidAbstractPressurePlateBlock.updatePlateState(@Nullable Entity entity, World world, BlockPos pos, BlockState state, int output) private voidHoneyBlock.updateSlidingVelocity(Entity entity) Method parameters in net.minecraft.block with type arguments of type EntityModifier and TypeMethodDescriptionprivate <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 EntityModifierConstructorDescriptionprotectedEntityShapeContext(boolean descending, double minY, ItemStack heldItem, Predicate<FluidState> walkOnFluidPredicate, @Nullable Entity entity) protectedEntityShapeContext(Entity entity) Deprecated. -
Uses of Entity in net.minecraft.block.dispenser
Methods in net.minecraft.block.dispenser with parameters of type EntityModifier and TypeMethodDescriptionstatic voidDispenserBehavior.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 EntityModifier and TypeMethodDescriptionBeehiveBlockEntity.tryReleaseBee(BlockState state, BeehiveBlockEntity.BeeState beeState) Methods in net.minecraft.block.entity with parameters of type EntityModifier and TypeMethodDescriptionvoidSculkSensorBlockEntity.accept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.voidSculkShriekerBlockEntity.accept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.booleanprivate static booleanPistonBlockEntity.canMoveEntity(Box box, Entity entity) static booleanEndGatewayBlockEntity.canTeleport(Entity entity) static @Nullable ServerPlayerEntitySculkShriekerBlockEntity.findResponsiblePlayerFromEntity(@Nullable Entity entity) private static voidPistonBlockEntity.moveEntity(Direction direction, Entity entity, double double2, Direction direction2) static voidHopperBlockEntity.onEntityCollided(World world, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity) private static voidprivate voidSculkShriekerBlockEntity.shriek(ServerWorld world, @Nullable Entity entity) private static voidConduitBlockEntity.spawnNautilusParticles(World world, BlockPos pos, List<BlockPos> activatingBlocks, @Nullable Entity entity, int ticks) voidBeehiveBlockEntity.tryEnterHive(Entity entity, boolean hasNectar) voidBeehiveBlockEntity.tryEnterHive(Entity entity, boolean hasNectar, int ticksInHive) static voidEndGatewayBlockEntity.tryTeleportingEntity(World world, BlockPos pos, BlockState state, Entity entity, EndGatewayBlockEntity blockEntity) Method parameters in net.minecraft.block.entity with type arguments of type EntityModifier and TypeMethodDescriptionprivate static booleanBeehiveBlockEntity.releaseBee(World world, BlockPos pos, BlockState state, BeehiveBlockEntity.Bee bee, @Nullable List<Entity> entities, BeehiveBlockEntity.BeeState beeState, @Nullable BlockPos flowerPos) -
Uses of Entity in net.minecraft.client
Fields in net.minecraft.client declared as EntityMethods in net.minecraft.client that return EntityMethods in net.minecraft.client with parameters of type EntityModifier and TypeMethodDescriptionbooleanMinecraftClient.hasOutline(Entity entity) Checks if the providedentityshould display an outline around its model.voidMinecraftClient.setCameraEntity(Entity entity) -
Uses of Entity in net.minecraft.client.gui.hud
Methods in net.minecraft.client.gui.hud with parameters of type EntityModifier and TypeMethodDescriptionprivate voidInGameHud.renderVignetteOverlay(Entity entity) private voidInGameHud.updateVignetteDarkness(Entity entity) -
Uses of Entity in net.minecraft.client.item
Methods in net.minecraft.client.item with parameters of type EntityModifier and TypeMethodDescriptionprivate booleanCompassAnglePredicateProvider.canPointTo(Entity entity, @Nullable GlobalPos pos) private floatCompassAnglePredicateProvider.getAngle(ItemStack stack, ClientWorld world, int seed, Entity entity) private floatCompassAnglePredicateProvider.getAngleTo(Entity entity, long time, BlockPos pos) private @Nullable ClientWorldCompassAnglePredicateProvider.getClientWorld(Entity entity, @Nullable ClientWorld world) CompassAnglePredicateProvider.CompassTarget.getPos(ClientWorld world, ItemStack stack, Entity entity) private doubleCompassAnglePredicateProvider.method_43213(Entity entity) private doubleCompassAnglePredicateProvider.method_43216(Entity entity, BlockPos blockPos) -
Uses of Entity in net.minecraft.client.network
Subclasses of Entity in net.minecraft.client.networkModifier and TypeClassDescriptionclassclassRepresents the client's own player entity.classRepresents 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 EntityModifier and TypeMethodDescriptionvoidClientPlayerEntity.addCritParticles(Entity target) voidClientPlayerEntity.addEnchantedHitParticles(Entity target) voidClientPlayerInteractionManager.attackEntity(PlayerEntity player, Entity target) ClientPlayerInteractionManager.interactEntity(PlayerEntity player, Entity entity, Hand hand) ClientPlayerInteractionManager.interactEntityAtLocation(PlayerEntity player, Entity entity, EntityHitResult hitResult, Hand hand) private voidClientPlayNetworkHandler.playSpawnSound(Entity entity) booleanClientPlayerEntity.startRiding(Entity entity, boolean force) -
Uses of Entity in net.minecraft.client.particle
Fields in net.minecraft.client.particle declared as EntityModifier and TypeFieldDescriptionprivate final EntityEmitterParticle.entityprivate final EntityItemPickupParticle.interactingEntityprivate final EntityItemPickupParticle.itemEntityMethods in net.minecraft.client.particle that return EntityMethods in net.minecraft.client.particle with parameters of type EntityModifier and TypeMethodDescriptionvoidParticleManager.addEmitter(Entity entity, ParticleEffect parameters) voidParticleManager.addEmitter(Entity entity, ParticleEffect parameters, int maxAge) private EntityConstructors in net.minecraft.client.particle with parameters of type EntityModifierConstructorDescriptionEmitterParticle(ClientWorld world, Entity entity, ParticleEffect parameters) EmitterParticle(ClientWorld world, Entity entity, ParticleEffect parameters, int maxEmitterAge) privateEmitterParticle(ClientWorld world, Entity entity, ParticleEffect parameters, int maxEmitterAge, Vec3d velocity) ItemPickupParticle(EntityRenderDispatcher dispatcher, BufferBuilderStorage bufferStorage, ClientWorld world, Entity itemEntity, Entity interactingEntity) privateItemPickupParticle(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 EntityMethods in net.minecraft.client.render that return EntityMethods in net.minecraft.client.render with parameters of type EntityModifier and TypeMethodDescriptionprivate voidWorldRenderer.drawBlockOutline(MatrixStack matrices, VertexConsumer vertexConsumer, Entity entity, double cameraX, double cameraY, double cameraZ, BlockPos pos, BlockState state) private static @Nullable BackgroundRenderer.StatusEffectFogModifierBackgroundRenderer.getFogModifier(Entity entity, float tickDelta) voidGameRenderer.onCameraEntitySet(@Nullable Entity entity) private voidWorldRenderer.renderEntity(Entity entity, double cameraX, double cameraY, double cameraZ, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers) voidCamera.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 EntityModifier and TypeMethodDescriptionDebugRenderer.getTargetedEntity(@Nullable Entity entity, int maxDistance) Methods in net.minecraft.client.render.debug with parameters of type EntityModifier and TypeMethodDescriptionDebugRenderer.getTargetedEntity(@Nullable Entity entity, int maxDistance) -
Uses of Entity in net.minecraft.client.render.entity
Classes in net.minecraft.client.render.entity with type parameters of type EntityModifier and TypeClassDescriptionclassEmptyEntityRenderer<T extends Entity>A renderer that does not render anything.classEntityRenderer<T extends Entity>interfaceEntityRendererFactory<T extends Entity>classFlyingItemEntityRenderer<T extends Entity & FlyingItemEntity>Fields in net.minecraft.client.render.entity declared as EntityMethods in net.minecraft.client.render.entity with type parameters of type EntityModifier and TypeMethodDescription<E extends Entity>
intEntityRenderDispatcher.getLight(E entity, float tickDelta) <T extends Entity>
EntityRenderer<? super T>EntityRenderDispatcher.getRenderer(T entity) 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) private <E extends Entity>
voidMobEntityRenderer.renderLeash(T entity, float tickDelta, MatrixStack matrices, VertexConsumerProvider provider, E holdingEntity) <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 EntityModifier and TypeMethodDescriptionvoiddoubleEntityRenderDispatcher.getSquaredDistanceToCamera(Entity entity) FlyingItemEntityRenderer.getTexture(Entity entity) private voidEntityRenderDispatcher.renderFire(MatrixStack matrices, VertexConsumerProvider vertexConsumers, Entity entity) private static voidEntityRenderDispatcher.renderHitbox(MatrixStack matrices, VertexConsumer vertices, Entity entity, float tickDelta) private static voidEntityRenderDispatcher.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 EntityModifier and TypeClassDescriptionclassEnergySwirlOverlayFeatureRenderer<T extends Entity & SkinOverlayOwner,M extends EntityModel<T>> classEyesFeatureRenderer<T extends Entity,M extends EntityModel<T>> classFeatureRenderer<T extends Entity,M extends EntityModel<T>> interfaceFeatureRendererContext<T extends Entity,M extends EntityModel<T>> classSaddleFeatureRenderer<T extends Entity & Saddleable,M extends EntityModel<T>> classSpiderEyesFeatureRenderer<T extends Entity,M extends SpiderEntityModel<T>> Methods in net.minecraft.client.render.entity.feature with parameters of type EntityModifier and TypeMethodDescriptionprotected voidStuckArrowsFeatureRenderer.renderObject(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, Entity entity, float directionX, float directionY, float directionZ, float tickDelta) protected abstract voidStuckObjectsFeatureRenderer.renderObject(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, Entity entity, float directionX, float directionY, float directionZ, float tickDelta) protected voidStuckStingersFeatureRenderer.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
Classes in net.minecraft.client.render.entity.model with type parameters of type EntityModifier and TypeClassDescriptionclassAnimalModel<E extends Entity>classBlazeEntityModel<T extends Entity>Represents the model of a blaze-like entity.classChickenEntityModel<T extends Entity>Represents the model of a chicken-like entity.classCodEntityModel<T extends Entity>Represents the model of a cod-like entity.classCompositeEntityModel<E extends Entity>classCowEntityModel<T extends Entity>Represents the model of a cow-like entity.classCreeperEntityModel<T extends Entity>Represents the model of a creeper-like entity.classDolphinEntityModel<T extends Entity>Represents the model of a dolphin-like entity.classEndermiteEntityModel<T extends Entity>Represents the model of an endermite-like entity.classEntityModel<T extends Entity>Represents the model of an Entity.classEvokerFangsEntityModel<T extends Entity>Represents the model of an evoker-fangs-like entity.classGhastEntityModel<T extends Entity>Represents the model of a ghast-like entity.classLargePufferfishEntityModel<T extends Entity>classLargeTropicalFishEntityModel<T extends Entity>classLeashKnotEntityModel<T extends Entity>Represents the model of a leash-knot-like entity.classLlamaSpitEntityModel<T extends Entity>Represents the model of llama-spit-like entity.classMediumPufferfishEntityModel<T extends Entity>classMinecartEntityModel<T extends Entity>Represents the model of a minecart-like entity.classOcelotEntityModel<T extends Entity>Represents the model of an ocelot-like entity.classPigEntityModel<T extends Entity>Represents the model of a pig-like entity.classQuadrupedEntityModel<T extends Entity>Represents the model of a quadruped entity.classSalmonEntityModel<T extends Entity>classShulkerBulletEntityModel<T extends Entity>Represents the model of shulker-bullet-like entity.classSilverfishEntityModel<T extends Entity>classSinglePartEntityModel<E extends Entity>classSlimeEntityModel<T extends Entity>classSmallPufferfishEntityModel<T extends Entity>classSmallTropicalFishEntityModel<T extends Entity>classSnowGolemEntityModel<T extends Entity>classSpiderEntityModel<T extends Entity>classSquidEntityModel<T extends Entity>Represents the model of a squid-like entity.classTintableAnimalModel<E extends Entity>classTintableCompositeModel<E extends Entity>classVillagerResemblingModel<T extends Entity>Represents the model of a villager resembling entity.classWitchEntityModel<T extends Entity>Represents the model of a witch resembling entity. -
Uses of Entity in net.minecraft.client.sound
Fields in net.minecraft.client.sound declared as EntityConstructors in net.minecraft.client.sound with parameters of type EntityModifierConstructorDescriptionEntityTrackingSoundInstance(SoundEvent sound, SoundCategory category, float volume, float pitch, Entity entity, long seed) -
Uses of Entity in net.minecraft.client.world
Fields in net.minecraft.client.world with type parameters of type EntityModifier and TypeFieldDescriptionprivate final ClientEntityManager<Entity>ClientWorld.entityManagerMethods in net.minecraft.client.world that return EntityModifier and TypeMethodDescriptionClientWorld.getEntityById(int id) Returns the entity using the entity ID, ornullif none was found.Methods in net.minecraft.client.world that return types with arguments of type EntityModifier and TypeMethodDescriptionClientWorld.getEntities()protected EntityLookup<Entity>ClientWorld.getEntityLookup()Methods in net.minecraft.client.world with parameters of type EntityModifier and TypeMethodDescriptionvoidprivate voidClientWorld.addEntityPrivate(int id, Entity entity) voidvoidvoidClientWorld.playSoundFromEntity(@Nullable PlayerEntity except, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) booleanClientWorld.shouldUpdatePostDeath(Entity entity) voidClientWorld.ClientEntityHandler.startTicking(Entity entity) voidClientWorld.ClientEntityHandler.startTracking(Entity entity) voidClientWorld.ClientEntityHandler.stopTicking(Entity entity) voidClientWorld.ClientEntityHandler.stopTracking(Entity entity) voidClientWorld.tickEntity(Entity entity) private voidClientWorld.tickPassenger(Entity entity, Entity passenger) voidClientWorld.ClientEntityHandler.updateLoadStatus(Entity entity) -
Uses of Entity in net.minecraft.command
Fields in net.minecraft.command declared as EntityFields in net.minecraft.command with type parameters of type EntityModifier and TypeFieldDescriptionstatic final BiConsumer<Vec3d,List<? extends Entity>> EntitySelectorReader.ARBITRARYEntitySelector.basePredicateprivate TypeFilter<Entity,?> EntitySelector.entityFilterstatic final BiConsumer<Vec3d,List<? extends Entity>> EntitySelectorReader.FURTHESTstatic final BiConsumer<Vec3d,List<? extends Entity>> EntitySelectorReader.NEARESTprivate static final TypeFilter<Entity,?> EntitySelector.PASSTHROUGH_FILTEREntitySelectorReader.predicatestatic final BiConsumer<Vec3d,List<? extends Entity>> EntitySelectorReader.RANDOMprivate final BiConsumer<Vec3d,List<? extends Entity>> EntitySelector.sorterprivate BiConsumer<Vec3d,List<? extends Entity>> EntitySelectorReader.sorterMethods in net.minecraft.command with type parameters of type EntityMethods in net.minecraft.command that return EntityMethods in net.minecraft.command that return types with arguments of type EntityModifier and TypeMethodDescriptionEntitySelector.getEntities(ServerCommandSource source) EntitySelector.getPositionPredicate(Vec3d pos) BiConsumer<Vec3d,List<? extends Entity>> EntitySelectorReader.getSorter()EntitySelectorReader.rotationPredicate(FloatRangeArgument angleRange, ToDoubleFunction<Entity> entityToAngle) Method parameters in net.minecraft.command with type arguments of type EntityModifier and TypeMethodDescriptionprivate voidEntitySelector.appendEntitiesFromWorld(List<Entity> result, ServerWorld world, Vec3d pos, Predicate<Entity> predicate) private voidEntitySelector.appendEntitiesFromWorld(List<Entity> result, ServerWorld world, Vec3d pos, Predicate<Entity> predicate) static TextEntitySelectorReader.rotationPredicate(FloatRangeArgument angleRange, ToDoubleFunction<Entity> entityToAngle) voidEntitySelectorReader.setPredicate(Predicate<Entity> predicate) voidEntitySelectorReader.setSorter(BiConsumer<Vec3d, List<? extends Entity>> sorter) Constructors in net.minecraft.command with parameters of type EntityConstructor parameters in net.minecraft.command with type arguments of type EntityModifierConstructorDescriptionEntitySelector(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 EntityModifier and TypeFieldDescriptionprivate final BiFunction<Vec3d,Entity, Vec3d> EntityAnchorArgumentType.EntityAnchor.offsetMethods in net.minecraft.command.argument that return EntityModifier and TypeMethodDescriptionstatic EntityEntityArgumentType.getEntity(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) Methods in net.minecraft.command.argument that return types with arguments of type EntityModifier and TypeMethodDescriptionstatic Collection<? extends Entity>EntityArgumentType.getEntities(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Collection<? extends Entity>EntityArgumentType.getOptionalEntities(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) Methods in net.minecraft.command.argument with parameters of type EntityModifier and TypeMethodDescriptionEntityAnchorArgumentType.EntityAnchor.positionAt(Entity entity) Constructor parameters in net.minecraft.command.argument with type arguments of type EntityModifierConstructorDescriptionprivateEntityAnchor(String id, BiFunction<Vec3d, Entity, Vec3d> offset) -
Uses of Entity in net.minecraft.enchantment
Methods in net.minecraft.enchantment with parameters of type EntityModifier and TypeMethodDescriptionvoidDamageEnchantment.onTargetDamaged(LivingEntity user, Entity target, int level) voidEnchantment.onTargetDamaged(LivingEntity user, Entity target, int level) static voidEnchantmentHelper.onTargetDamaged(LivingEntity user, Entity target) voidEnchantment.onUserDamaged(LivingEntity user, Entity attacker, int level) static voidEnchantmentHelper.onUserDamaged(LivingEntity user, Entity attacker) voidThornsEnchantment.onUserDamaged(LivingEntity user, Entity attacker, int level) -
Uses of Entity in net.minecraft.entity
Classes in net.minecraft.entity with type parameters of type EntityModifier and TypeClassDescriptionclassEntityType<T extends Entity>static classEntityType.Builder<T extends Entity>static interfaceEntityType.EntityFactory<T extends Entity>static interfaceSpawnRestriction.SpawnPredicate<T extends Entity>Subclasses of Entity in net.minecraft.entityModifier and TypeClassDescriptionclassclassclassclassclassclassclassRepresents an entity which has a health value and can receive damage.classclassFields in net.minecraft.entity declared as EntityFields in net.minecraft.entity with type parameters of type EntityModifier and TypeFieldDescriptionAreaEffectCloudEntity.affectedEntitiesprivate ImmutableList<Entity>Entity.passengerListLightningEntity.struckEntitiesMethods in net.minecraft.entity with type parameters of type EntityModifier and TypeMethodDescriptionstatic <T extends Entity>
booleanSpawnRestriction.canSpawn(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static <T extends Entity>
EntityType.Builder<T>EntityType.Builder.create(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup) static <T extends Entity>
EntityType.Builder<T>EntityType.Builder.create(SpawnGroup spawnGroup) private static <T extends Entity>
EntityType<T>EntityType.register(String id, EntityType.Builder<T> type) Methods in net.minecraft.entity that return EntityModifier and TypeMethodDescriptionEntity.getEventSource()ItemEntity.getEventSource()Entity.getFirstPassenger()Tameable.getOwner()Entity.getPrimaryPassenger()Entity.getRootVehicle()Gets the lowest entity this entity is riding.Entity.getVehicle()EntityType.loadEntityWithPassengers(NbtCompound nbt, World world, Function<Entity, Entity> entityProcessor) Entity.moveToWorld(ServerWorld destination) Moves this entity to another world.ItemEntity.moveToWorld(ServerWorld destination) Moves this entity to another world.EntityType.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 EntityModifier and TypeMethodDescriptionEntityType.getBaseClass()EntityType.getEntityFromNbt(NbtCompound nbt, World world) Entity.getPassengerList()Entity.getPassengersDeep()LightningEntity.getStruckEntities()EntityType.loadEntityFromNbt(NbtCompound nbt, World world) EntityType.streamFromNbt(List<? extends NbtElement> entityNbtList, World world) Entity.streamIntoPassengers()Entity.streamPassengersAndSelf()Returns a stream consisting of this entity and its passengers in which this entity's passengers are iterated before this entity.Entity.streamSelfAndPassengers()Returns a stream consisting of this entity and its passengers recursively.Methods in net.minecraft.entity with parameters of type EntityModifier and TypeMethodDescriptionvoidprotected voidEntity.addPassenger(Entity passenger) protected voidMarkerEntity.addPassenger(Entity passenger) booleanLivingEntity.addStatusEffect(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity.static Vec3dEntity.adjustMovementForCollisions(@Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, List<VoxelShape> collisions) voidEntity.applyDamageEffects(LivingEntity attacker, Entity target) Applies damage effects toattackerortarget.protected booleanEntity.canAddPassenger(Entity passenger) booleanprotected booleanEntity.canStartRiding(Entity entity) booleanEntity.collidesWith(Entity other) voidvoidEntity.copyPositionAndRotation(Entity entity) floatEntity.distanceTo(Entity entity) voidEntity.emitGameEvent(GameEvent event, @Nullable Entity entity) doubleLivingEntity.getAttackDistanceScalingFactor(@Nullable Entity entity) booleanEntity.handleAttack(Entity attacker) booleanEntity.hasPassenger(Entity passenger) booleanEntity.hasPassengerDeep(Entity passenger) booleanEntity.isConnectedThroughVehicle(Entity entity) Checks if this entity and another entity share the same root vehicle.booleanChecks if the distance between this entity and theotherentity is less thanradius.booleanbooleanbooleanEntity.isTeammate(Entity other) static voidEntityType.loadFromEntityNbt(World world, @Nullable PlayerEntity player, @Nullable Entity entity, @Nullable NbtCompound itemNbt) voidLivingEntity.onAttacking(Entity target) private voidLivingEntity.onDismounted(Entity vehicle) voidInteractionObserver.onInteractionWith(EntityInteraction interaction, Entity entity) voidEntity.onPassengerLookAround(Entity passenger) protected voidLivingEntity.onStatusEffectApplied(StatusEffectInstance effect, @Nullable Entity source) protected voidLivingEntity.onStatusEffectUpgraded(StatusEffectInstance effect, boolean reapplyEffect, @Nullable Entity source) protected voidvoidEntity.pushAwayFrom(Entity entity) voidLivingEntity.pushAwayFrom(Entity entity) protected voidEntity.removePassenger(Entity passenger) voidLivingEntity.sendPickup(Entity item, int count) voidLivingEntity.setStatusEffect(StatusEffectInstance effect, @Nullable Entity source) Sets a status effect in this entity.doubleEntity.squaredDistanceTo(Entity entity) booleanEntity.startRiding(Entity entity) booleanEntity.startRiding(Entity entity, boolean force) booleanvoidEntity.updateKilledAdvancementCriterion(Entity entityKilled, int score, DamageSource damageSource) voidEntity.updatePassengerPosition(Entity passenger) private voidEntity.updatePassengerPosition(Entity passenger, Entity.PositionUpdater positionUpdater) Method parameters in net.minecraft.entity with type arguments of type EntityModifier and TypeMethodDescriptionbooleanEntity.hasPassengerType(Predicate<Entity> predicate) EntityType.loadEntityWithPassengers(NbtCompound nbt, World world, Function<Entity, Entity> entityProcessor) EntityType.loadEntityWithPassengers(NbtCompound nbt, World world, Function<Entity, Entity> entityProcessor) -
Uses of Entity in net.minecraft.entity.ai
Fields in net.minecraft.entity.ai with type parameters of type EntityModifier and TypeFieldDescriptionWardenAngerManager.suspectPredicateWardenAngerManager.suspectsprotected final Object2IntMap<Entity>WardenAngerManager.suspectsToAngerLevelMethods in net.minecraft.entity.ai that return EntityMethods in net.minecraft.entity.ai with parameters of type EntityModifier and TypeMethodDescriptionintintWardenAngerManager.getAngerFor(@Nullable Entity entity) intWardenAngerManager.increaseAngerAt(Entity entity, int amount) voidWardenAngerManager.removeSuspect(Entity entity) Method parameters in net.minecraft.entity.ai with type arguments of type EntityModifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<WardenAngerManager>WardenAngerManager.createCodec(Predicate<Entity> suspectPredicate) voidWardenAngerManager.tick(ServerWorld world, Predicate<Entity> suspectPredicate) Constructor parameters in net.minecraft.entity.ai with type arguments of type Entity -
Uses of Entity in net.minecraft.entity.ai.brain
Fields in net.minecraft.entity.ai.brain declared as EntityFields in net.minecraft.entity.ai.brain with type parameters of type EntityModifier and TypeFieldDescriptionstatic final MemoryModuleType<Entity>MemoryModuleType.RIDE_TARGETMethods in net.minecraft.entity.ai.brain that return EntityConstructors in net.minecraft.entity.ai.brain with parameters of type EntityModifierConstructorDescriptionEntityLookTarget(Entity entity, boolean useEyeHeight) WalkTarget(Entity entity, float speed, int completionRange) -
Uses of Entity in net.minecraft.entity.ai.brain.task
Classes in net.minecraft.entity.ai.brain.task with type parameters of type EntityFields in net.minecraft.entity.ai.brain.task with type parameters of type EntityModifier and TypeFieldDescriptionprivate final BiPredicate<E,Entity> RidingTask.alternativeRideConditionMethods in net.minecraft.entity.ai.brain.task that return EntityMethods in net.minecraft.entity.ai.brain.task that return types with arguments of type EntityModifier and TypeMethodDescriptionstatic 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 EntityModifier and TypeMethodDescriptionprivate booleanRidingTask.canRideTarget(E entity, Entity target) WalkTask.findClosestWater(BlockView world, Entity entity) static voidLookTargetUtil.walkTowards(LivingEntity entity, Entity target, float speed, int completionRange) Method parameters in net.minecraft.entity.ai.brain.task with type arguments of type EntityModifier and TypeMethodDescriptionstatic 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 EntityModifierConstructorDescriptionRidingTask(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 -
Uses of Entity in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as EntityMethods in net.minecraft.entity.ai.goal with parameters of type EntityModifier and TypeMethodDescriptionEscapeDangerGoal.locateClosestWater(BlockView world, Entity entity, int rangeX) -
Uses of Entity in net.minecraft.entity.ai.pathing
Methods in net.minecraft.entity.ai.pathing with parameters of type EntityModifier and TypeMethodDescriptionBirdNavigation.findPathTo(Entity entity, int distance) EntityNavigation.findPathTo(Entity entity, int distance) MobNavigation.findPathTo(Entity entity, int distance) SpiderNavigation.findPathTo(Entity entity, int distance) Path.getNodePosition(Entity entity) Path.getNodePosition(Entity entity, int index) booleanEntityNavigation.startMovingTo(Entity entity, double speed) booleanSpiderNavigation.startMovingTo(Entity entity, double speed) -
Uses of Entity in net.minecraft.entity.boss
Subclasses of Entity in net.minecraft.entity.bossMethods in net.minecraft.entity.boss with parameters of type EntityModifier and TypeMethodDescriptionbooleanWitherEntity.addStatusEffect(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity.protected booleanWitherEntity.canStartRiding(Entity entity) -
Uses of Entity in net.minecraft.entity.boss.dragon
Subclasses of Entity in net.minecraft.entity.boss.dragonFields in net.minecraft.entity.boss.dragon with type parameters of type EntityMethods in net.minecraft.entity.boss.dragon with parameters of type EntityModifier and TypeMethodDescriptionbooleanEnderDragonEntity.addStatusEffect(StatusEffectInstance effect, @Nullable Entity source) Adds a status effect to this entity.protected booleanEnderDragonEntity.canStartRiding(Entity entity) booleanMethod parameters in net.minecraft.entity.boss.dragon with type arguments of type EntityModifier and TypeMethodDescriptionprivate voidEnderDragonEntity.damageLivingEntities(List<Entity> entities) private voidEnderDragonEntity.launchLivingEntities(List<Entity> entities) -
Uses of Entity in net.minecraft.entity.damage
Fields in net.minecraft.entity.damage declared as EntityModifier and TypeFieldDescriptionProjectileDamageSource.attackerprotected final EntityEntityDamageSource.sourceMethods in net.minecraft.entity.damage that return EntityModifier and TypeMethodDescriptionDamageRecord.getAttacker()DamageSource.getAttacker()EntityDamageSource.getAttacker()ProjectileDamageSource.getAttacker()DamageSource.getSource()ProjectileDamageSource.getSource()Methods in net.minecraft.entity.damage with parameters of type EntityModifier and TypeMethodDescriptionstatic DamageSourceDamageSource.arrow(PersistentProjectileEntity projectile, @Nullable Entity attacker) static DamageSourceDamageSource.fireball(AbstractFireballEntity fireball, @Nullable Entity attacker) static DamageSourceDamageSource.firework(FireworkRocketEntity firework, @Nullable Entity attacker) static DamageSourcestatic DamageSourceDamageSource.mobProjectile(Entity projectile, @Nullable LivingEntity attacker) static DamageSourcestatic DamageSourcestatic DamageSourceDamageSource.thrownProjectile(Entity projectile, @Nullable Entity attacker) static DamageSourcestatic DamageSourceDamageSource.witherSkull(WitherSkullEntity witherSkull, Entity attacker) Constructors in net.minecraft.entity.damage with parameters of type EntityModifierConstructorDescriptionEntityDamageSource(String name, 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 EntityFields in net.minecraft.entity.data with type parameters of type EntityModifier and TypeFieldDescriptionprivate static final Object2IntMap<Class<? extends Entity>>DataTracker.TRACKED_ENTITIESMethod parameters in net.minecraft.entity.data with type arguments of type EntityModifier and TypeMethodDescriptionstatic <T> TrackedData<T>DataTracker.registerData(Class<? extends Entity> entityClass, TrackedDataHandler<T> dataHandler) Constructors in net.minecraft.entity.data with parameters of type Entity -
Uses of Entity in net.minecraft.entity.decoration
Subclasses of Entity in net.minecraft.entity.decorationModifier and TypeClassDescriptionclassclassclassclassclassclassFields in net.minecraft.entity.decoration with type parameters of type EntityModifier and TypeFieldDescriptionAbstractDecorationEntity.PREDICATEArmorStandEntity.RIDEABLE_MINECART_PREDICATEMethods in net.minecraft.entity.decoration with parameters of type EntityModifier and TypeMethodDescriptionprivate voidItemFrameEntity.dropHeldStack(@Nullable Entity entity, boolean alwaysDrop) booleanAbstractDecorationEntity.handleAttack(Entity attacker) booleanArmorStandEntity.handleAttack(Entity attacker) abstract voidvoidvoidprotected void -
Uses of Entity in net.minecraft.entity.decoration.painting
Subclasses of Entity in net.minecraft.entity.decoration.paintingMethods in net.minecraft.entity.decoration.painting with parameters of type Entity -
Uses of Entity in net.minecraft.entity.effect
Methods in net.minecraft.entity.effect with parameters of type EntityModifier and TypeMethodDescriptionstatic List<ServerPlayerEntity>StatusEffectUtil.addEffectToPlayersWithinDistance(ServerWorld world, @Nullable Entity entity, Vec3d origin, double range, StatusEffectInstance statusEffectInstance, int duration) voidStatusEffect.applyInstantEffect(@Nullable Entity source, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity) -
Uses of Entity in net.minecraft.entity.mob
Subclasses of Entity in net.minecraft.entity.mobModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.entity.mob declared as EntityFields in net.minecraft.entity.mob with type parameters of type EntityMethods in net.minecraft.entity.mob that return EntityModifier and TypeMethodDescriptionMobEntity.getHoldingEntity()RavagerEntity.getPrimaryPassenger()private EntityPiglinEntity.getTopMostPassenger(Entity entity, int maxLevel) Returns the passenger entity atmaxLevelin a stacked riding (riding on an entity that is riding on another entity, etc).Methods in net.minecraft.entity.mob with parameters of type EntityModifier and TypeMethodDescriptionvoidWardenEntity.accept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.static voidWardenEntity.addDarknessToClosePlayers(ServerWorld world, Vec3d pos, @Nullable Entity entity, int range) voidMobEntity.attachLeash(Entity entity, boolean sendPacket) private booleanRavagerEntity.canBecomePrimaryPassenger(Entity entity) private static booleanPiglinBrain.canRide(PiglinEntity piglin, Entity ridden) booleanbooleanprotected booleanWardenEntity.canStartRiding(Entity entity) private EntityPiglinEntity.getTopMostPassenger(Entity entity, int maxLevel) Returns the passenger entity atmaxLevelin a stacked riding (riding on an entity that is riding on another entity, etc).voidWardenEntity.increaseAngerAt(@Nullable Entity entity) voidWardenEntity.increaseAngerAt(@Nullable Entity entity, int amount, boolean listening) booleanEvokerEntity.isTeammate(Entity other) booleanIllusionerEntity.isTeammate(Entity other) booleanPillagerEntity.isTeammate(Entity other) booleanVindicatorEntity.isTeammate(Entity other) booleanWardenEntity.isValidTarget(@Nullable Entity entity) private voidvoidMobEntity.lookAtEntity(Entity targetEntity, float maxYawChange, float maxPitchChange) protected voidvoidShulkerEntity.pushAwayFrom(Entity entity) voidSlimeEntity.pushAwayFrom(Entity entity) voidWardenEntity.removeSuspect(Entity entity) booleanMobEntity.startRiding(Entity entity, boolean force) booleanPiglinEntity.startRiding(Entity entity, boolean force) booleanShulkerEntity.startRiding(Entity entity, boolean force) (package private) booleanEndermanEntity.teleportTo(Entity entity) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanboolean -
Uses of Entity in net.minecraft.entity.passive
Subclasses of Entity in net.minecraft.entity.passiveModifier and TypeClassDescriptionclassclassclassclassclassRepresents an axolotl, the cutest predator.classclassclassMeow.classclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.entity.passive with type parameters of type EntityModifier and TypeFieldDescriptionFoxEntity.CHICKEN_AND_RABBIT_FILTERFoxEntity.JUST_ATTACKED_SOMETHING_FILTERFoxEntity.NOTICEABLE_PLAYER_FILTERMethods in net.minecraft.entity.passive that return EntityModifier and TypeMethodDescriptionPigEntity.getPrimaryPassenger()StriderEntity.getPrimaryPassenger()MerchantEntity.moveToWorld(ServerWorld destination) Moves this entity to another world.Methods in net.minecraft.entity.passive that return types with arguments of type EntityMethods in net.minecraft.entity.passive with parameters of type EntityModifier and TypeMethodDescriptionvoidAllayEntity.VibrationListenerCallback.accept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, Entity entity, Entity sourceEntity, float distance) Accepts a game event after delay.protected booleanStriderEntity.canAddPassenger(Entity passenger) private booleanPigEntity.canBeControlledByRider(Entity entity) private booleanStriderEntity.canEntityControl(Entity entity) protected booleanDolphinEntity.canStartRiding(Entity entity) static booleanParrotEntity.imitateNearbyMob(World world, Entity parrot) booleanTameableEntity.isTeammate(Entity other) private voidVillagerEntity.notifyDeath(Entity killer) voidVillagerEntity.onInteractionWith(EntityInteraction interaction, Entity entity) protected voidprotected voidprotected voidvoidFrogEntity.setFrogTarget(Entity entity) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidAbstractHorseEntity.updatePassengerPosition(Entity passenger) voidChickenEntity.updatePassengerPosition(Entity passenger) voidLlamaEntity.updatePassengerPosition(Entity passenger) -
Uses of Entity in net.minecraft.entity.player
Subclasses of Entity in net.minecraft.entity.playerMethods in net.minecraft.entity.player with parameters of type EntityModifier and TypeMethodDescriptionvoidPlayerEntity.addCritParticles(Entity target) voidPlayerEntity.addEnchantedHitParticles(Entity target) voidprivate voidPlayerEntity.collideWithEntity(Entity entity) -
Uses of Entity in net.minecraft.entity.projectile
Subclasses of Entity in net.minecraft.entity.projectileModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.entity.projectile declared as EntityModifier and TypeFieldDescriptionFishingBobberEntity.hookedEntityProjectileEntity.ownerShulkerBulletEntity.targetFields in net.minecraft.entity.projectile with type parameters of type EntityMethods in net.minecraft.entity.projectile that return EntityModifier and TypeMethodDescriptionProjectileEntity.getEffectCause()Returns the cause entity of any effect applied by this projectile.FishingBobberEntity.getHookedEntity()ProjectileEntity.getOwner()Methods in net.minecraft.entity.projectile with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanstatic HitResultProjectileUtil.getCollision(Entity entity, Predicate<Entity> predicate) static @Nullable EntityHitResultProjectileUtil.getEntityCollision(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate) static @Nullable EntityHitResultProjectileUtil.getEntityCollision(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, float float2) protected booleanprotected voidFishingBobberEntity.pullHookedEntity(Entity entity) static @Nullable EntityHitResultProjectileUtil.raycast(Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, double double2) voidvoidvoidstatic voidProjectileUtil.setRotationFromVelocity(Entity entity, float delta) voidProjectileEntity.setVelocity(Entity shooter, float pitch, float yaw, float roll, float speed, float divergence) Sets velocity and updates rotation accordingly.private voidFishingBobberEntity.updateHookedEntityId(@Nullable Entity entity) Method parameters in net.minecraft.entity.projectile with type arguments of type EntityModifier and TypeMethodDescriptionstatic HitResultProjectileUtil.getCollision(Entity entity, Predicate<Entity> predicate) static @Nullable EntityHitResultProjectileUtil.getEntityCollision(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate) static @Nullable EntityHitResultProjectileUtil.getEntityCollision(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, float float2) static @Nullable EntityHitResultProjectileUtil.raycast(Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, double double2) Constructors in net.minecraft.entity.projectile with parameters of type EntityModifierConstructorDescriptionFireworkRocketEntity(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.thrownModifier and TypeClassDescriptionclassclassclassclassclassclassclassMethods in net.minecraft.entity.projectile.thrown that return EntityModifier and TypeMethodDescriptionEnderPearlEntity.moveToWorld(ServerWorld destination) Moves this entity to another world.Methods in net.minecraft.entity.projectile.thrown with parameters of type EntityModifier and TypeMethodDescriptionprivate voidPotionEntity.applySplashPotion(List<StatusEffectInstance> statusEffects, @Nullable Entity entity) -
Uses of Entity in net.minecraft.entity.raid
Subclasses of Entity in net.minecraft.entity.raid -
Uses of Entity in net.minecraft.entity.vehicle
Subclasses of Entity in net.minecraft.entity.vehicleModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassMethods in net.minecraft.entity.vehicle that return EntityMethods in net.minecraft.entity.vehicle with parameters of type EntityModifier and TypeMethodDescriptionprotected booleanBoatEntity.canAddPassenger(Entity passenger) static booleanBoatEntity.canCollide(Entity entity, Entity other) booleanAbstractMinecartEntity.collidesWith(Entity other) booleanBoatEntity.collidesWith(Entity other) protected voidBoatEntity.copyEntityData(Entity entity) default voidVehicleInventory.onBroken(DamageSource source, World world, Entity vehicle) voidBoatEntity.onPassengerLookAround(Entity passenger) voidAbstractMinecartEntity.pushAwayFrom(Entity entity) voidBoatEntity.pushAwayFrom(Entity entity) voidBoatEntity.updatePassengerPosition(Entity passenger) Method parameters in net.minecraft.entity.vehicle with type arguments of type EntityModifier and TypeMethodDescriptiondefault ActionResultVehicleInventory.open(BiConsumer<GameEvent, Entity> gameEventEmitter, PlayerEntity player) -
Uses of Entity in net.minecraft.item
Classes in net.minecraft.item with type parameters of type EntityFields in net.minecraft.item declared as EntityFields in net.minecraft.item with type parameters of type EntityMethods in net.minecraft.item that return EntityMethods in net.minecraft.item with parameters of type EntityModifier and TypeMethodDescriptionvoidCompassItem.inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) voidFilledMapItem.inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) voidItem.inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) voidItemStack.inventoryTick(World world, Entity entity, int slot, boolean selected) private voidBundleItem.playDropContentsSound(Entity entity) private voidBundleItem.playInsertSound(Entity entity) private voidBundleItem.playRemoveOneSound(Entity entity) voidvoidFilledMapItem.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 EntityModifier and TypeMethodDescriptionprotected booleanEntityScoresLootCondition.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 EntityModifier and TypeFieldDescriptionstatic final LootContextParameter<Entity>LootContextParameters.DIRECT_KILLER_ENTITYstatic final LootContextParameter<Entity>LootContextParameters.KILLER_ENTITYprivate final LootContextParameter<? extends Entity>LootContext.EntityTarget.parameterstatic final LootContextParameter<Entity>LootContextParameters.THIS_ENTITYMethods in net.minecraft.loot.context that return types with arguments of type EntityModifier and TypeMethodDescriptionLootContextParameter<? extends Entity>LootContext.EntityTarget.getParameter()Constructor parameters in net.minecraft.loot.context with type arguments of type EntityModifierConstructorDescriptionprivateEntityTarget(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 EntityModifier and TypeMethodDescriptionPlayerInteractEntityC2SPacket.getEntity(ServerWorld world) SpectatorTeleportC2SPacket.getTarget(ServerWorld world) Methods in net.minecraft.network.packet.c2s.play with parameters of type EntityModifier and TypeMethodDescriptionPlayerInteractEntityC2SPacket.interactAt(Entity entity, boolean playerSneaking, Hand hand, Vec3d pos) Constructors in net.minecraft.network.packet.c2s.play with parameters of type EntityModifierConstructorDescriptionClientCommandC2SPacket(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 EntityModifier and TypeMethodDescriptionConstructors in net.minecraft.network.packet.s2c.play with parameters of type EntityModifierConstructorDescriptionEntityAnimationS2CPacket(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, int entityTypeId, 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, long seed) SetCameraEntityS2CPacket(Entity entity) VehicleMoveS2CPacket(Entity entity) -
Uses of Entity in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type EntityModifier and TypeMethodDescriptionstatic NbtCompoundNbtPredicate.entityToNbt(Entity entity) boolean -
Uses of Entity in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity with type parameters of type EntityModifier and TypeFieldDescriptionEntityPredicates.CAN_COLLIDEEntityPredicates.EXCEPT_CREATIVE_OR_SPECTATOREntityPredicates.EXCEPT_SPECTATOREntityPredicates.NOT_MOUNTEDTests if an entity is not mounted.EntityPredicates.VALID_ENTITYTests if an entity is valid.EntityPredicates.VALID_INVENTORIESTests if an entity has a valid inventory.EntityPredicates.VALID_LIVING_ENTITYTests if a living entity is valid.VariantPredicates.variantGetterMethods in net.minecraft.predicate.entity that return types with arguments of type EntityModifier and TypeMethodDescriptionEntityPredicates.canBePushedBy(Entity entity) EntityPredicates.maxDistance(double x, double y, double z, double max) Methods in net.minecraft.predicate.entity with parameters of type EntityModifier and TypeMethodDescriptionEntityPredicates.canBePushedBy(Entity entity) static LootContextEntityPredicate.createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target) booleanbooleanbooleanbooleanEntityPredicate.test(ServerPlayerEntity player, @Nullable Entity entity) booleanbooleanbooleanFishingHookPredicate.test(Entity entity, ServerWorld world, @Nullable Vec3d pos) booleanLightningBoltPredicate.test(Entity entity, ServerWorld world, @Nullable Vec3d pos) booleanPlayerPredicate.test(Entity entity, ServerWorld world, @Nullable Vec3d pos) booleanSlimePredicate.test(Entity entity, ServerWorld world, @Nullable Vec3d pos) booleanTypeSpecificPredicate.test(Entity entity, ServerWorld world, @Nullable Vec3d pos) Method parameters in net.minecraft.predicate.entity with type arguments of type EntityConstructor parameters in net.minecraft.predicate.entity with type arguments of type Entity -
Uses of Entity in net.minecraft.scoreboard
Methods in net.minecraft.scoreboard with parameters of type Entity -
Uses of Entity in net.minecraft.server.command
Fields in net.minecraft.server.command declared as EntityModifier and TypeFieldDescriptionServerCommandSource.entityprivate final EntityTeleportCommand.LookTarget.targetMethods in net.minecraft.server.command that return EntityModifier and TypeMethodDescriptionServerCommandSource.getEntity()Gets the entity from this command source or returns null if this command source is not an entity.ServerCommandSource.getEntityOrThrow()Gets the entity from this command source or throws a command syntax exception if this command source is not an entity.Methods in net.minecraft.server.command with parameters of type EntityModifier and TypeMethodDescriptionprivate static intSpectateCommand.execute(ServerCommandSource source, @Nullable Entity entity, ServerPlayerEntity player) private static intTeleportCommand.execute(ServerCommandSource source, Collection<? extends Entity> targets, Entity destination) private static intAttributeCommand.executeBaseValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) private static intAttributeCommand.executeBaseValueSet(ServerCommandSource source, Entity target, EntityAttribute attribute, double value) private static intItemCommand.executeBlockCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot) private static intItemCommand.executeBlockCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, LootFunction modifier) private static intItemCommand.executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) private static intItemCommand.executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static intLootCommand.executeKill(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Entity entity, LootCommand.Target constructor) private static intAttributeCommand.executeModifierAdd(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, String name, double value, EntityAttributeModifier.Operation operation) private static intAttributeCommand.executeModifierRemove(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid) private static intAttributeCommand.executeModifierValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, double multiplier) private static intAttributeCommand.executeValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) private static EntityAttributeInstanceAttributeCommand.getAttributeInstance(Entity entity, EntityAttribute attribute) private static LivingEntityAttributeCommand.getLivingEntity(Entity entity) private static LivingEntityAttributeCommand.getLivingEntityWithAttribute(Entity entity, EntityAttribute attribute) private static ItemStackItemCommand.getStackInSlot(Entity entity, int slotId) voidTeleportCommand.LookTarget.look(ServerCommandSource source, Entity entity) private static voidLootCommand.replace(Entity entity, List<ItemStack> stacks, int slot, int stackCount, List<ItemStack> addedStacks) private static voidTeleportCommand.teleport(ServerCommandSource source, Entity target, ServerWorld world, double x, double y, double z, Set<PlayerPositionLookS2CPacket.Flag> movementFlags, float yaw, float pitch, @Nullable TeleportCommand.LookTarget facingLocation) ServerCommandSource.withEntity(Entity entity) ServerCommandSource.withLookingAt(Entity entity, EntityAnchorArgumentType.EntityAnchor anchor) Method parameters in net.minecraft.server.command with type arguments of type EntityModifier and TypeMethodDescriptionprivate static intEnchantCommand.execute(ServerCommandSource source, Collection<? extends Entity> targets, Enchantment enchantment, int level) private static intKillCommand.execute(ServerCommandSource source, Collection<? extends Entity> targets) private static intSpreadPlayersCommand.execute(ServerCommandSource source, Vec2f center, float spreadDistance, float maxRange, int maxY, boolean respectTeams, Collection<? extends Entity> players) private static intTeleportCommand.execute(ServerCommandSource source, Collection<? extends Entity> targets, Entity destination) private static intTeleportCommand.execute(ServerCommandSource source, Collection<? extends Entity> targets, ServerWorld world, PosArgument location, @Nullable PosArgument rotation, @Nullable TeleportCommand.LookTarget facingLocation) private static intTagCommand.executeAdd(ServerCommandSource source, Collection<? extends Entity> targets, String tag) private static intEffectCommand.executeClear(ServerCommandSource source, Collection<? extends Entity> targets) private static intEffectCommand.executeClear(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect) private static intItemCommand.executeEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot) private static intItemCommand.executeEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static intItemCommand.executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) private static intItemCommand.executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static intItemCommand.executeEntityModify(ServerCommandSource source, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static intItemCommand.executeEntityReplace(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack) private static intEffectCommand.executeGive(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect, @Nullable Integer seconds, int amplifier, boolean showParticles) private static intTagCommand.executeList(ServerCommandSource source, Collection<? extends Entity> targets) private static intTagCommand.executeRemove(ServerCommandSource source, Collection<? extends Entity> targets, String tag) private static intLootCommand.executeReplace(Collection<? extends Entity> targets, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static doubleSpreadPlayersCommand.getMinDistance(Collection<? extends Entity> entities, ServerWorld world, SpreadPlayersCommand.Pile[] piles, int maxY, boolean respectTeams) private static intSpreadPlayersCommand.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 EntityModifierConstructorDescriptionLookTarget(Entity target, EntityAnchorArgumentType.EntityAnchor targetAnchor) ServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity) protectedServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity, boolean silent, @Nullable com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, EntityAnchorArgumentType.EntityAnchor entityAnchor, CommandArgumentSigner signer) -
Uses of Entity in net.minecraft.server.network
Subclasses of Entity in net.minecraft.server.networkFields in net.minecraft.server.network declared as EntityModifier and TypeFieldDescriptionServerPlayerEntity.cameraEntityprivate final EntityEntityTrackerEntry.entityServerPlayNetworkHandler.topmostRiddenEntityFields in net.minecraft.server.network with type parameters of type EntityMethods in net.minecraft.server.network that return EntityModifier and TypeMethodDescriptionServerPlayerEntity.getCameraEntity()ServerPlayerEntity.moveToWorld(ServerWorld destination) Moves this entity to another world.Methods in net.minecraft.server.network with parameters of type EntityModifier and TypeMethodDescriptionvoidServerPlayerEntity.addCritParticles(Entity target) voidServerPlayerEntity.addEnchantedHitParticles(Entity target) voidprivate booleanServerPlayNetworkHandler.isEntityOnAir(Entity entity) voidServerPlayerEntity.lookAtEntity(EntityAnchorArgumentType.EntityAnchor anchorPoint, Entity targetEntity, EntityAnchorArgumentType.EntityAnchor targetAnchor) protected voidServerPlayerEntity.onStatusEffectApplied(StatusEffectInstance effect, @Nullable Entity source) protected voidServerPlayerEntity.onStatusEffectUpgraded(StatusEffectInstance effect, boolean reapplyEffect, @Nullable Entity source) ServerPlayNetworkHandler.Interaction.run(ServerPlayerEntity player, Entity entity, Hand hand) voidServerPlayerEntity.sendPickup(Entity item, int count) voidServerPlayerEntity.setCameraEntity(@Nullable Entity entity) booleanServerPlayerEntity.startRiding(Entity entity, boolean force) voidServerPlayerEntity.updateKilledAdvancementCriterion(Entity entityKilled, int score, DamageSource damageSource) Constructors in net.minecraft.server.network with parameters of type EntityModifierConstructorDescriptionEntityTrackerEntry(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 EntityModifier and TypeFieldDescription(package private) final EntityThreadedAnvilChunkStorage.EntityTracker.entityFields in net.minecraft.server.world with type parameters of type EntityModifier and TypeFieldDescriptionprivate final ServerEntityManager<Entity>ServerWorld.entityManagerMethods in net.minecraft.server.world with type parameters of type EntityModifier and TypeMethodDescriptionServerWorld.getEntitiesByType(TypeFilter<Entity, T> filter, Predicate<? super T> predicate) Computes a list of entities of the given type.Methods in net.minecraft.server.world that return EntityModifier and TypeMethodDescriptionServerWorld.getDragonPart(int id) Deprecated.Returns the entity using the UUID, ornullif none was found.ServerWorld.getEntityById(int id) Returns the entity using the entity ID, ornullif none was found.Methods in net.minecraft.server.world that return types with arguments of type EntityModifier and TypeMethodDescriptionprotected EntityLookup<Entity>ServerWorld.getEntityLookup()ServerWorld.iterateEntities()Methods in net.minecraft.server.world with parameters of type EntityModifier and TypeMethodDescriptionprivate booleanvoidServerWorld.createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) Creates an explosion.voidprivate static doubleThreadedAnvilChunkStorage.getSquaredDistance(ChunkPos pos, Entity entity) voidServerWorld.handleInteraction(EntityInteraction interaction, Entity entity, InteractionObserver observer) voidServerChunkManager.loadEntity(Entity entity) protected voidThreadedAnvilChunkStorage.loadEntity(Entity entity) voidServerWorld.onDimensionChanged(Entity entity) Called on the destination world when an entity changed the dimension.voidServerWorld.playSoundFromEntity(@Nullable PlayerEntity except, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) voidServerWorld.sendEntityStatus(Entity entity, byte status) Sends the entity status to nearby players.voidServerChunkManager.sendToNearbyPlayers(Entity entity, Packet<?> packet) protected voidThreadedAnvilChunkStorage.sendToNearbyPlayers(Entity entity, Packet<?> packet) voidServerChunkManager.sendToOtherNearbyPlayers(Entity entity, Packet<?> packet) voidThreadedAnvilChunkStorage.sendToOtherNearbyPlayers(Entity entity, Packet<?> packet) private booleanServerWorld.shouldCancelSpawn(Entity entity) booleanServerWorld.spawnEntity(Entity entity) Spawns an entity.booleanServerWorld.spawnNewEntityAndPassengers(Entity entity) Checks whether any of the entity and its passengers already exist in the world, and if not, spawns the entity with its passengers.voidServerWorld.ServerEntityHandler.startTicking(Entity entity) voidServerWorld.ServerEntityHandler.startTracking(Entity entity) voidServerWorld.ServerEntityHandler.stopTicking(Entity entity) voidServerWorld.ServerEntityHandler.stopTracking(Entity entity) voidServerWorld.tickEntity(Entity entity) private voidServerWorld.tickPassenger(Entity vehicle, Entity passenger) booleanServerWorld.tryLoadEntity(Entity entity) voidServerChunkManager.unloadEntity(Entity entity) protected voidThreadedAnvilChunkStorage.unloadEntity(Entity entity) voidServerWorld.ServerEntityHandler.updateLoadStatus(Entity entity) Method parameters in net.minecraft.server.world with type arguments of type EntityModifier and TypeMethodDescriptionvoidServerWorld.addEntities(Stream<Entity> entities) private static voidServerWorld.dumpEntities(Writer writer, Iterable<Entity> entities) ServerWorld.getEntitiesByType(TypeFilter<Entity, T> filter, Predicate<? super T> predicate) Computes a list of entities of the given type.voidServerWorld.loadEntities(Stream<Entity> entities) Constructors in net.minecraft.server.world with parameters of type EntityModifierConstructorDescriptionEntityTracker(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 EntityModifier and TypeMethodDescriptionStructureTemplate.getEntity(ServerWorldAccess world, NbtCompound nbt) -
Uses of Entity in net.minecraft.test
Methods in net.minecraft.test with type parameters of type EntityModifier and TypeMethodDescription<E extends Entity,T>
voidTestContext.expectEntityWithData(BlockPos pos, EntityType<E> type, Function<? super E, T> entityDataGetter, T data) <E extends Entity,T>
voidTestContext.expectEntityWithDataEnd(BlockPos pos, EntityType<E> type, Function<E, T> entityDataGetter, T data) TestContext.getEntitiesAround(EntityType<T> type, BlockPos pos, double radius) <E extends Entity>
ETestContext.spawnEntity(EntityType<E> type, float x, float y, float z) <E extends Entity>
ETestContext.spawnEntity(EntityType<E> type, int x, int y, int z) <E extends Entity>
ETestContext.spawnEntity(EntityType<E> type, BlockPos pos) <E extends Entity>
ETestContext.spawnEntity(EntityType<E> type, Vec3d pos) <E extends Entity>
voidTestContext.testEntity(E entity, Predicate<E> predicate, String testName) <E extends Entity,T>
voidTestContext.testEntityProperty(E entity, Function<E, T> propertyGetter, String propertyName, T expectedValue) Methods in net.minecraft.test with parameters of type EntityModifier and TypeMethodDescriptionvoidTestContext.expectEntityAt(Entity entity, int x, int y, int z) voidTestContext.expectEntityAt(Entity entity, BlockPos pos) voidTestContext.throwPositionedException(String message, Entity entity) -
Uses of Entity in net.minecraft.text
Methods in net.minecraft.text with parameters of type EntityModifier and TypeMethodDescriptionNbtTextContent.parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) Parses this content into a basic mutable text without custom style or siblings.ScoreTextContent.parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) Parses this content into a basic mutable text without custom style or siblings.SelectorTextContent.parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) Parses this content into a basic mutable text without custom style or siblings.default MutableTextTextContent.parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) Parses this content into a basic mutable text without custom style or siblings.static Optional<MutableText>Texts.parse(@Nullable ServerCommandSource source, Optional<Text> text, @Nullable Entity sender, int depth) static MutableTextTranslatableTextContent.parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) Parses this content into a basic mutable text without custom style or siblings.private static StyleTexts.parseStyle(@Nullable ServerCommandSource source, Style style, @Nullable Entity sender, int depth) -
Uses of Entity in net.minecraft.util
Methods in net.minecraft.util with parameters of type Entity -
Uses of Entity in net.minecraft.util.hit
Fields in net.minecraft.util.hit declared as EntityMethods in net.minecraft.util.hit that return EntityMethods in net.minecraft.util.hit with parameters of type EntityConstructors in net.minecraft.util.hit with parameters of type EntityModifierConstructorDescriptionEntityHitResult(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 EntityModifier and TypeMethodDescriptionstatic Direction[]Direction.getEntityFacingOrder(Entity entity) static DirectionDirection.getLookDirectionForAxis(Entity entity, Direction.Axis axis) -
Uses of Entity in net.minecraft.village
Methods in net.minecraft.village with parameters of type EntityModifier and TypeMethodDescriptionCreates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer.Creates a trade offer. -
Uses of Entity in net.minecraft.village.raid
Methods in net.minecraft.village.raid with parameters of type Entity -
Uses of Entity in net.minecraft.world
Fields in net.minecraft.world declared as EntityFields in net.minecraft.world with type parameters of type EntityModifier and TypeFieldDescriptionprivate Int2ObjectMap<Entity>EntityList.entitiesprivate @Nullable Int2ObjectMap<Entity>EntityList.iteratingprivate Int2ObjectMap<Entity>EntityList.tempMethods in net.minecraft.world with type parameters of type EntityModifier and TypeMethodDescriptionEntityView.getEntitiesByClass(Class<T> entityClass, Box box, Predicate<? super T> predicate) Computes a list of entities within some box whose runtime Java class is the same as or is a subclass of the given class.ChunkRegion.getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) EntityView.getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) World.getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) EntityView.getNonSpectatingEntities(Class<T> entityClass, Box box) <T extends Entity>
voidWorld.tickEntity(Consumer<T> tickConsumer, T entity) Methods in net.minecraft.world that return EntityModifier and TypeMethodDescriptionWorld.getEntityById(int id) Returns the entity using the entity ID, ornullif none was found.MobSpawnerLogic.getRenderedEntity(World world) Methods in net.minecraft.world that return types with arguments of type EntityModifier and TypeMethodDescriptionprotected abstract EntityLookup<Entity>World.getEntityLookup()ChunkRegion.getOtherEntities(@Nullable Entity except, Box box, @Nullable Predicate<? super Entity> predicate) Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.EntityView.getOtherEntities(@Nullable Entity except, Box box) Computes a list of entities within some box, excluding the given entity, that are not spectators.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Methods in net.minecraft.world with parameters of type EntityModifier and TypeMethodDescriptionvoidbooleanChunkRegion.breakBlock(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.default booleanModifiableWorld.breakBlock(BlockPos pos, boolean drop, @Nullable Entity breakingEntity) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.booleanModifiableWorld.breakBlock(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.booleanWorld.breakBlock(BlockPos pos, boolean drop, @Nullable Entity breakingEntity, int maxUpdateDepth) Removes the block and replaces it with the fluid occupying the block (such as water inside kelp), or air if it does not exist.default booleanCollisionView.canCollide(@Nullable Entity entity, Box box) World.createExplosion(@Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) Creates an explosion.World.createExplosion(@Nullable Entity entity, double x, double y, double z, float power, Explosion.DestructionType destructionType) Creates an explosion without creating fire.World.createExplosion(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) Creates an explosion.default booleanCollisionView.doesNotIntersectEntities(@Nullable Entity except, VoxelShape shape) Returnstrueifshapedoes not intersect with non-spectator entities exceptexcept.default booleanCollisionView.doesNotIntersectEntities(Entity entity) default booleanEntityView.doesNotIntersectEntities(@Nullable Entity except, VoxelShape shape) Returnstrueifshapedoes not intersect with non-spectator entities exceptexcept.default booleanRegistryWorldView.doesNotIntersectEntities(@Nullable Entity except, VoxelShape shape) Returnstrueifshapedoes not intersect with non-spectator entities exceptexcept.default voidWorldAccess.emitGameEvent(@Nullable Entity entity, GameEvent event, BlockPos pos) default voidWorldAccess.emitGameEvent(@Nullable Entity entity, GameEvent event, Vec3d pos) CollisionView.findClosestCollision(@Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z) default Iterable<VoxelShape>CollisionView.getBlockCollisions(@Nullable Entity entity, Box box) default @Nullable PlayerEntityEntityView.getClosestPlayer(Entity entity, double maxDistance) default Iterable<VoxelShape>CollisionView.getCollisions(@Nullable Entity entity, Box box) CollisionView.getEntityCollisions(@Nullable Entity entity, Box box) default List<VoxelShape>EntityView.getEntityCollisions(@Nullable Entity entity, Box box) default List<VoxelShape>RegistryWorldView.getEntityCollisions(@Nullable Entity entity, Box box) ChunkRegion.getOtherEntities(@Nullable Entity except, Box box, @Nullable Predicate<? super Entity> predicate) Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.EntityView.getOtherEntities(@Nullable Entity except, Box box) Computes a list of entities within some box, excluding the given entity, that are not spectators.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.private @Nullable VoxelShapeCollisionView.getWorldBorderCollisions(Entity entity, Box box) booleanbooleanWorld.isDirectionSolid(BlockPos pos, Entity entity, Direction direction) default booleanCollisionView.isSpaceEmpty(@Nullable Entity entity, Box box) default booleanCollisionView.isSpaceEmpty(Entity entity) booleanWorld.isTopSolid(BlockPos pos, Entity entity) voidWorld.playSoundFromEntity(@Nullable PlayerEntity player, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) abstract voidWorld.playSoundFromEntity(@Nullable PlayerEntity except, Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch, long seed) voidvoidWorld.sendEntityStatus(Entity entity, byte status) Sends the entity status to nearby players.booleanWorld.shouldUpdatePostDeath(Entity entity) booleanChunkRegion.spawnEntity(Entity entity) Spawns an entity.default booleanModifiableWorld.spawnEntity(Entity entity) Spawns an entity.default voidServerWorldAccess.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 EntityModifier and TypeMethodDescriptionvoidRuns anactionon every entity in this storage.ChunkRegion.getClosestPlayer(double x, double y, double z, double maxDistance, Predicate<Entity> targetPredicate) default @Nullable PlayerEntityEntityView.getClosestPlayer(double x, double y, double z, double maxDistance, @Nullable Predicate<Entity> targetPredicate) ChunkRegion.getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) EntityView.getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) World.getEntitiesByType(TypeFilter<Entity, T> filter, Box box, Predicate<? super T> predicate) ChunkRegion.getOtherEntities(@Nullable Entity except, Box box, @Nullable Predicate<? super Entity> predicate) Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.Computes a list of entities within some box, excluding the given entity, that satisfy the given predicate.static SpawnHelper.InfoSpawnHelper.setupSpawn(int spawningChunkCount, Iterable<Entity> entities, SpawnHelper.ChunkSource chunkSource, SpawnDensityCapper spawnDensityCapper) Constructors in net.minecraft.world with parameters of type EntityModifierConstructorDescriptionBlockCollisionSpliterator(CollisionView world, @Nullable Entity entity, Box box) BlockCollisionSpliterator(CollisionView world, @Nullable Entity entity, Box box, boolean forEntity) 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 EntityModifier and TypeMethodDescriptionbooleanWorldBorder.canCollide(Entity entity, Box box) doubleWorldBorder.getDistanceInsideBorder(Entity entity) -
Uses of Entity in net.minecraft.world.chunk
Methods in net.minecraft.world.chunk with parameters of type EntityModifier and TypeMethodDescriptionabstract voidvoidvoidvoidDeprecated.ChunkCache.getEntityCollisions(@Nullable Entity entity, Box box) -
Uses of Entity in net.minecraft.world.event
Fields in net.minecraft.world.event declared as EntityModifier and TypeFieldDescriptionGameEvent.Emitter.sourceEntityThe field for thesourceEntityrecord component.Fields in net.minecraft.world.event with type parameters of type EntityMethods in net.minecraft.world.event that return EntityModifier and TypeMethodDescriptionGameEvent.Emitter.sourceEntity()Returns the value of thesourceEntityrecord component.Methods in net.minecraft.world.event with parameters of type EntityModifier and TypeMethodDescriptionstatic GameEvent.Emitterstatic GameEvent.EmitterGameEvent.Emitter.of(@Nullable Entity sourceEntity, @Nullable BlockState affectedState) Constructors in net.minecraft.world.event with parameters of type EntityModifierConstructorDescriptionEmitter(@Nullable Entity entity, @Nullable BlockState blockState) EntityPositionSource(Entity entity, float yOffset) Constructor parameters in net.minecraft.world.event with type arguments of type EntityModifierConstructorDescription(package private)EntityPositionSource(com.mojang.datafixers.util.Either<Entity, com.mojang.datafixers.util.Either<UUID, Integer>> source, float yOffset) -
Uses of Entity in net.minecraft.world.event.listener
Fields in net.minecraft.world.event.listener declared as EntityModifier and TypeFieldDescriptionVibrationListener.Vibration.entityThe field for theentityrecord component.Methods in net.minecraft.world.event.listener that return EntityModifier and TypeMethodDescriptionVibrationListener.Vibration.entity()Returns the value of theentityrecord component.Methods in net.minecraft.world.event.listener that return types with arguments of type EntityModifier and TypeMethodDescriptionVibrationListener.Vibration.getEntity(ServerWorld world) VibrationListener.Vibration.getOwner(ServerWorld world) Methods in net.minecraft.world.event.listener with parameters of type EntityModifier and TypeMethodDescriptionvoidVibrationListener.Callback.accept(ServerWorld world, GameEventListener listener, BlockPos pos, GameEvent event, @Nullable Entity entity, @Nullable Entity sourceEntity, float distance) Accepts a game event after delay.VibrationListener.Vibration.getOwnerUuid(@Nullable Entity entity) Constructors in net.minecraft.world.event.listener with parameters of type Entity -
Uses of Entity in net.minecraft.world.explosion
Fields in net.minecraft.world.explosion declared as EntityModifier and TypeFieldDescriptionprivate final EntityEntityExplosionBehavior.entityExplosion.entityMethods in net.minecraft.world.explosion with parameters of type EntityModifier and TypeMethodDescriptionprivate ExplosionBehaviorExplosion.chooseBehavior(@Nullable Entity entity) static floatExplosion.getExposure(Vec3d source, Entity entity) Constructors in net.minecraft.world.explosion with parameters of type EntityModifierConstructorDescriptionEntityExplosionBehavior(Entity entity) Explosion(World world, @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) Explosion(World world, @Nullable Entity entity, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType, List<BlockPos> affectedBlocks) Explosion(World world, @Nullable Entity entity, double x, double y, double z, float power, List<BlockPos> affectedBlocks) Explosion(World world, @Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, double x, double y, double z, float power, boolean createFire, Explosion.DestructionType destructionType) -
Uses of Entity in net.minecraft.world.storage
Methods in net.minecraft.world.storage that return types with arguments of type EntityModifier and TypeMethodDescriptionprivate static ChunkDataList<Entity>EntityChunkDataAccess.emptyDataList(ChunkPos pos) EntityChunkDataAccess.readChunkData(ChunkPos pos) Method parameters in net.minecraft.world.storage with type arguments of type EntityModifier and TypeMethodDescriptionvoidEntityChunkDataAccess.writeChunkData(ChunkDataList<Entity> dataList)
AbstractBlock.AbstractBlockState.onEntityCollision(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity)instead.