Interface EntityProperties
public interface EntityProperties
Describes various classes of entities.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Test whether the entity is an ambient creature, which includes the bat.boolean
isAnimal()
Test whether the entity is an animal.boolean
Test whether the entity is an armor stand.boolean
isBoat()
Test whether the entity is a boat.boolean
Test whether the entity is an experience orb.boolean
Test whether the entity is a falling block.boolean
isGolem()
Test whether the entity is the iron golem from Minecraft.boolean
isItem()
Test whether the entity is an item.boolean
Test whether the entity is an item frame.boolean
isLiving()
Test whether the entity is a living entity.boolean
Test whether the entity is a minecart.boolean
isNPC()
Test whether the entity is a non-player controlled character, which includes villagers, NPCs from mods, and so on.boolean
Test whether the entity is a painting.boolean
Test whether this entity can be pasted.boolean
Test whether the entity is a player-derived entity.boolean
Test whether the entity is a projectile.boolean
isTagged()
Test whether the entity has been named (tagged).boolean
isTamed()
Test whether the entity is tameable and is tamed.boolean
isTNT()
Test whether the entity is a primed TNT block.boolean
Test whether the entity is a water creature.
-
Method Details
-
isPlayerDerived
boolean isPlayerDerived()Test whether the entity is a player-derived entity.- Returns:
- true if a player derived entity
-
isProjectile
boolean isProjectile()Test whether the entity is a projectile.- Returns:
- true if a projectile
-
isItem
boolean isItem()Test whether the entity is an item.- Returns:
- true if an item
-
isFallingBlock
boolean isFallingBlock()Test whether the entity is a falling block.- Returns:
- true if a falling block
-
isPainting
boolean isPainting()Test whether the entity is a painting.- Returns:
- true if a painting
-
isItemFrame
boolean isItemFrame()Test whether the entity is an item frame.- Returns:
- true if an item frame
-
isBoat
boolean isBoat()Test whether the entity is a boat.- Returns:
- true if a boat
-
isMinecart
boolean isMinecart()Test whether the entity is a minecart.- Returns:
- true if a minecart
-
isTNT
boolean isTNT()Test whether the entity is a primed TNT block.- Returns:
- true if TNT
-
isExperienceOrb
boolean isExperienceOrb()Test whether the entity is an experience orb.- Returns:
- true if an experience orb
-
isLiving
boolean isLiving()Test whether the entity is a living entity.A "living entity" is the superclass of many living entity classes in Minecraft.
- Returns:
- true if a living entity
-
isAnimal
boolean isAnimal()Test whether the entity is an animal.- Returns:
- true if an animal
-
isAmbient
boolean isAmbient()Test whether the entity is an ambient creature, which includes the bat.- Returns:
- true if an ambient creature
-
isNPC
boolean isNPC()Test whether the entity is a non-player controlled character, which includes villagers, NPCs from mods, and so on.- Returns:
- true if an NPC
-
isGolem
boolean isGolem()Test whether the entity is the iron golem from Minecraft.- Returns:
- true if an iron golem
-
isTamed
boolean isTamed()Test whether the entity is tameable and is tamed.- Returns:
- true if tamed
-
isTagged
boolean isTagged()Test whether the entity has been named (tagged).- Returns:
- true if named
-
isArmorStand
boolean isArmorStand()Test whether the entity is an armor stand.- Returns:
- true if an armor stand
-
isPasteable
boolean isPasteable()Test whether this entity can be pasted.- Returns:
- true if pasteable
-
isWaterCreature
boolean isWaterCreature()Test whether the entity is a water creature.- Returns:
- true if water creature
-