Contents
Class PositionDataComponent
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.PositionDataComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Component which stores data about the current position of an entity, such as the block it's standing on and in, etc.
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intintvoidsetInsideBlockTypeId(int insideBlockTypeId) voidsetStandingOnBlockTypeId(int standingOnBlockTypeId) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
PositionDataComponent
public PositionDataComponent() -
PositionDataComponent
public PositionDataComponent(int insideBlockTypeId, int standingOnBlockTypeId)
-
-
Method Details
-
getComponentType
-
getInsideBlockTypeId
public int getInsideBlockTypeId() -
setInsideBlockTypeId
public void setInsideBlockTypeId(int insideBlockTypeId) -
getStandingOnBlockTypeId
public int getStandingOnBlockTypeId() -
setStandingOnBlockTypeId
public void setStandingOnBlockTypeId(int standingOnBlockTypeId) -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-