Interface Entity

All Superinterfaces:
Sound.Emitter, Viewable
All Known Subinterfaces:
Allay, Animal, AreaEffectCloud, Armadillo, ArmorStand, Arrow, Axolotl, Bat, Bee, Blaze, BlockDisplay, Boat, Bogged, Breeze, BreezeWindCharge, Camel, Cat, CaveSpider, ChestBoat, ChestMinecart, Chicken, Cod, CommandBlockMinecart, Cow, Creeper, Display, Dolphin, Donkey, DragonFireball, Drowned, Egg, ElderGuardian, EndCrystal, EnderDragon, Enderman, Endermite, EnderPearl, Evoker, EvokerFangs, ExperienceBottle, ExperienceOrb, EyeOfEnder, FallingBlock, Fireball, FireworkRocket, FishingBobber, Fox, Frog, FurnaceMinecart, Ghast, Giant, GlowItemFrame, GlowSquid, Goat, Guardian, Hoglin, HopperMinecart, Horse, Husk, Illusioner, Interaction, IronGolem, Item, ItemDisplay, ItemFrame, LeashKnot, LightningBolt, LivingEntity, Llama, LlamaSpit, MagmaCube, Minecart, Mob, Monster, Mooshroom, Mule, Ocelot, OminousItemSpawner, Painting, Panda, Parrot, Phantom, Pig, Piglin, PiglinBrute, Pillager, Player, PolarBear, Potion, Projectile, Pufferfish, Rabbit, Raider, Ravager, Salmon, Sheep, Shulker, ShulkerBullet, Silverfish, Skeleton, SkeletonHorse, Slime, SmallFireball, Sniffer, Snowball, SnowGolem, SpawnerMinecart, SpectralArrow, Spider, Squid, Stray, Strider, Tadpole, TextDisplay, Tnt, TntMinecart, TraderLlama, Trident, TropicalFish, Turtle, Vex, Villager, Vindicator, WanderingTrader, Warden, WindCharge, Witch, Wither, WitherSkeleton, WitherSkull, Wolf, Zoglin, Zombie, ZombieHorse, ZombieVillager, ZombifiedPiglin

public interface Entity extends Viewable, Sound.Emitter
Represents an entity.
  • Method Details

    • uniqueId

      @NotNull @NotNull UUID uniqueId()
      Since:
      1.0.0
    • id

      int id()
      Since:
      1.0.0
    • type

      @NotNull @NotNull EntityType type()
      Since:
      1.0.0
    • world

      World world()
      Since:
      1.0.0
    • world

      void world(@NotNull @NotNull World world)
      Since:
      1.0.0
    • position

      @NotNull @NotNull Position position()
      Since:
      1.0.0
    • velocity

      @Experimental void velocity(@NotNull @NotNull Vector vector)
      Since:
      1.0.0
    • velocity

      @Experimental @NotNull @NotNull Vector velocity()
      Since:
      1.0.0
    • onFire

      boolean onFire()
      Since:
      1.0.0
    • crouching

      boolean crouching()
      Since:
      1.0.0
    • sprinting

      boolean sprinting()
      Since:
      1.0.0
    • swimming

      boolean swimming()
      Since:
      1.0.0
    • invisible

      boolean invisible()
      Since:
      1.0.0
    • invisible

      void invisible(boolean invisible)
      Since:
      1.0.0
    • glowing

      boolean glowing()
      Since:
      1.0.0
    • glowing

      void glowing(boolean glowing)
      Since:
      1.0.0
    • customName

      @Nullable @Nullable Component customName()
      Since:
      1.0.0
    • customName

      void customName(@Nullable @Nullable Component customName)
      Since:
      1.0.0
    • customNameVisible

      boolean customNameVisible()
      Since:
      1.0.0
    • customNameVisible

      void customNameVisible(boolean visible)
      Since:
      1.0.0
    • silent

      boolean silent()
      Since:
      1.0.0
    • silent

      void silent(boolean silent)
      Since:
      1.0.0
    • hasGravity

      boolean hasGravity()
      Since:
      1.0.0
    • gravity

      void gravity(boolean gravity)
      Since:
      1.0.0
    • teleport

      void teleport(@NotNull @NotNull Position position)
      Teleports an entity to the specified position.
      Parameters:
      position - the position to teleport
      Since:
      1.0.0
    • pose

      @Experimental @NotNull @NotNull Entity.Pose pose()
      Since:
      1.0.0
    • pose

      @Experimental void pose(@NotNull @NotNull Entity.Pose pose)
      Since:
      1.0.0