Class DeployableComponent
java.lang.Object
com.hypixel.hytale.builtin.deployables.component.DeployableComponent
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DeployableConfigprivate Vector3fprivate booleanprivate final Map<DeployableComponent.DeployableFlag, Integer> private Ref<EntityStore> private UUIDprivate Stringprivate Instantprivate floatFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intgetOwner()floatfloatincrementTimeSinceLastAttack(float time) voidinit(Ref<EntityStore> deployerRef, Store<EntityStore> store, DeployableConfig config, Instant spawnInstant, String spawnFace) voidsetFlag(DeployableComponent.DeployableFlag key, int value) voidsetTimeSinceLastAttack(float time) voidtick(float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) 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
-
flags
-
config
-
owner
-
ownerUUID
-
spawnInstant
-
timeSinceLastAttack
private float timeSinceLastAttack -
debugColor
-
firstTickRan
private boolean firstTickRan -
spawnFace
-
-
Constructor Details
-
DeployableComponent
public DeployableComponent()
-
-
Method Details
-
getComponentType
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-
tick
public void tick(float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
init
public void init(@Nonnull Ref<EntityStore> deployerRef, @Nonnull Store<EntityStore> store, @Nonnull DeployableConfig config, @Nonnull Instant spawnInstant, @Nonnull String spawnFace) -
getOwner
-
getOwnerUUID
-
getConfig
-
getSpawnInstant
-
getTimeSinceLastAttack
public float getTimeSinceLastAttack() -
setTimeSinceLastAttack
public void setTimeSinceLastAttack(float time) -
incrementTimeSinceLastAttack
public float incrementTimeSinceLastAttack(float time) -
getSpawnFace
-
getFlag
-
setFlag
-
getDebugColor
-