Class MinecartComponent
java.lang.Object
com.hypixel.hytale.builtin.mounts.minecart.MinecartComponent
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<MinecartComponent> private Instantprivate intprivate StringFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intvoidsetLastHit(Instant lastHit) voidsetNumberOfHits(int numberOfHits) voidsetSourceItem(String sourceItem) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
CODEC
-
numberOfHits
private int numberOfHits -
lastHit
-
sourceItem
-
-
Constructor Details
-
MinecartComponent
private MinecartComponent() -
MinecartComponent
-
-
Method Details
-
getComponentType
-
getNumberOfHits
public int getNumberOfHits() -
setNumberOfHits
public void setNumberOfHits(int numberOfHits) -
getLastHit
-
setLastHit
-
getSourceItem
-
setSourceItem
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-