Class GameEntity
java.lang.Object
zombie.entity.GameEntity
- Direct Known Subclasses:
InventoryItem,IsoObject,MetaEntity,VehiclePart
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal AttributeContainerattrib()final intfinal booleancontainsComponent(Component arg0) final AttributeContainerfinal <T extends Component>
TgetComponent(ComponentType componentType) final <T extends Component>
TgetComponentAny(ComponentType... componentTypes) final ComponentgetComponentForIndex(int arg0) final ComponentgetComponentFromID(short arg0) static Stringfinal Durabilityabstract longfinal Stringfinal FluidContainerabstract GameEntityTypefinal SpriteConfigabstract IsoGridSquareabstract floatgetX()abstract floatgetY()abstract floatgetZ()final booleanhasComponent(ComponentType arg0) final booleanhasComponentAny(ComponentType... componentTypes) final booleanbooleanfinal booleanabstract booleanbooleanisMeta()booleanfinal booleanfinal booleanfinal booleanbooleanisUsingPlayer(IsoPlayer arg0) booleanfinal voidloadEntity(ByteBuffer arg0, int arg1) voidonEquip()voidonEquip(boolean arg0) voidvoidvoidfinal voidremoveFromWorld(boolean arg0) voidvoidfinal booleanvoidreset()final voidsaveEntity(ByteBuffer arg0) final voidsendSyncEntity(UdpConnection arg0) voidsetUsingPlayer(IsoPlayer arg0)
-
Field Details
-
DEFAULT_ENTITY_DISPLAY_NAME
- See Also:
-
-
Constructor Details
-
GameEntity
public GameEntity()
-
-
Method Details
-
getDefaultEntityDisplayName
-
getGameEntityType
-
getSquare
-
getEntityNetID
public abstract long getEntityNetID() -
getX
public abstract float getX() -
getY
public abstract float getY() -
getZ
public abstract float getZ() -
isEntityValid
public abstract boolean isEntityValid() -
isValidEngineEntity
public boolean isValidEngineEntity() -
isMeta
public boolean isMeta() -
isOutside
public boolean isOutside() -
getEntityDisplayName
-
getEntityFullTypeDebug
-
getEntityScript
-
getExceptionCompatibleString
-
attrib
-
getAttributes
-
getFluidContainer
-
getDurabilityComponent
-
getSpriteConfig
-
isAddedToEngine
public final boolean isAddedToEngine() -
isRemovingFromEngine
public final boolean isRemovingFromEngine() -
isScheduledForEngineRemoval
public final boolean isScheduledForEngineRemoval() -
isScheduledForBucketUpdate
public final boolean isScheduledForBucketUpdate() -
hasRenderers
public boolean hasRenderers() -
hasComponents
public final boolean hasComponents() -
hasComponent
-
hasComponentAny
-
componentSize
public final int componentSize() -
getComponentForIndex
-
getComponent
-
getComponentAny
-
getComponentFromID
-
containsComponent
-
reset
public void reset() -
onEquip
public void onEquip() -
onEquip
public void onEquip(boolean arg0) -
onUnEquip
public void onUnEquip() -
addToWorld
public void addToWorld() -
removeFromWorld
public void removeFromWorld() -
removeFromWorld
public final void removeFromWorld(boolean arg0) -
renderlast
public void renderlast() -
renderlastComponents
public void renderlastComponents() -
requiresEntitySave
public final boolean requiresEntitySave() -
saveEntity
- Throws:
IOException
-
loadEntity
- Throws:
IOException
-
isUsingPlayer
-
getUsingPlayer
-
setUsingPlayer
-
sendSyncEntity
-
onFluidContainerUpdate
public void onFluidContainerUpdate()
-