Contents
Class DeployableOwnerComponent
java.lang.Object
com.hypixel.hytale.builtin.deployables.component.DeployableOwnerComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
An entity component that represents the owner of deployable entities.
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voiddeRegisterDeployable(String id, Ref<EntityStore> deployable) voidregisterDeployable(Ref<EntityStore> owner, DeployableComponent deployableComp, String id, Ref<EntityStore> deployable, Store<EntityStore> store) Called to register the given deployable for the givenvoidtick(CommandBuffer<EntityStore> commandBuffer) Called to tick the logic for this component.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
DeployableOwnerComponent
public DeployableOwnerComponent()
-
-
Method Details
-
getComponentType
- Returns:
- the component type for the
DeployableOwnerComponentcomponent.
-
tick
Called to tick the logic for this component.- Parameters:
commandBuffer- TheCommandBuffer<EntityStore>for component access.
-
registerDeployable
public void registerDeployable(@Nonnull Ref<EntityStore> owner, @Nonnull DeployableComponent deployableComp, @Nonnull String id, @Nonnull Ref<EntityStore> deployable, @Nonnull Store<EntityStore> store) Called to register the given deployable for the given- Parameters:
owner- The entity reference of the owner of the deployable.deployableComp- TheDeployableComponentof the deployable entity.id- The deployable ID of the deployable entity.deployable- The entity reference of the deployable entity.store- TheStore<EntityStore>for component access.
-
deRegisterDeployable
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-