mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-09-18 21:48:15 +00:00
152 lines
3.4 KiB
Java
152 lines
3.4 KiB
Java
|
/*
|
||
|
* WorldEdit, a Minecraft world manipulation toolkit
|
||
|
* Copyright (C) sk89q <http://www.sk89q.com>
|
||
|
* Copyright (C) WorldEdit team and contributors
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify it
|
||
|
* under the terms of the GNU Lesser General Public License as published by the
|
||
|
* Free Software Foundation, either version 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||
|
* for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Lesser General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
package com.sk89q.worldedit.entity.metadata;
|
||
|
|
||
|
/**
|
||
|
* Describes various classes of entities.
|
||
|
*/
|
||
|
public interface EntityType {
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is a player-derived entity.
|
||
|
*
|
||
|
* @return true if a player derived entity
|
||
|
*/
|
||
|
boolean isPlayerDerived();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is a projectile.
|
||
|
*
|
||
|
* @return true if a projectile
|
||
|
*/
|
||
|
boolean isProjectile();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is an item.
|
||
|
*
|
||
|
* @return true if an item
|
||
|
*/
|
||
|
boolean isItem();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is a falling block.
|
||
|
*
|
||
|
* @return true if a falling block
|
||
|
*/
|
||
|
boolean isFallingBlock();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is a painting.
|
||
|
*
|
||
|
* @return true if a painting
|
||
|
*/
|
||
|
boolean isPainting();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is an item frame.
|
||
|
*
|
||
|
* @return true if an item frame
|
||
|
*/
|
||
|
boolean isItemFrame();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is a boat.
|
||
|
*
|
||
|
* @return true if a boat
|
||
|
*/
|
||
|
boolean isBoat();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is a minecart.
|
||
|
*
|
||
|
* @return true if a minecart
|
||
|
*/
|
||
|
boolean isMinecart();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is a primed TNT block.
|
||
|
*
|
||
|
* @return true if TNT
|
||
|
*/
|
||
|
boolean isTNT();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is an experience orb.
|
||
|
*
|
||
|
* @return true if an experience orb
|
||
|
*/
|
||
|
boolean isExperienceOrb();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is a living entity.
|
||
|
*
|
||
|
* <p>A "living entity" is the superclass of many living entity classes
|
||
|
* in Minecraft.</p>
|
||
|
*
|
||
|
* @return true if a living entity
|
||
|
*/
|
||
|
boolean isLiving();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is an animal.
|
||
|
*
|
||
|
* @return true if an animal
|
||
|
*/
|
||
|
boolean isAnimal();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is an ambient creature, which includes
|
||
|
* the bat.
|
||
|
*
|
||
|
* @return true if an ambient creature
|
||
|
*/
|
||
|
boolean isAmbient();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is a non-player controlled character, which
|
||
|
* includes villagers, NPCs from mods, and so on.
|
||
|
*
|
||
|
* @return true if an NPC
|
||
|
*/
|
||
|
boolean isNPC();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is the iron golem from Minecraft.
|
||
|
*
|
||
|
* @return true if an iron golem
|
||
|
*/
|
||
|
boolean isGolem();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity is tameable and is tamed.
|
||
|
*
|
||
|
* @return true if tamed
|
||
|
*/
|
||
|
boolean isTamed();
|
||
|
|
||
|
/**
|
||
|
* Test whether the entity has been named (tagged).
|
||
|
*
|
||
|
* @return true if named
|
||
|
*/
|
||
|
boolean isTagged();
|
||
|
|
||
|
}
|