Class DeployableOwnerComponent
java.lang.Object
com.hypixel.hytale.builtin.deployables.component.DeployableOwnerComponent
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2IntMap<String> private final List<it.unimi.dsi.fastutil.Pair<String, Ref<EntityStore>>> private final List<Ref<EntityStore>> private final List<it.unimi.dsi.fastutil.Pair<String, Ref<EntityStore>>> Fields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()private voiddecrementId(String id) voiddeRegisterDeployable(String id, Ref<EntityStore> deployable) private intprivate static intprivate static intgetMaxDeployablesGlobal(Store<EntityStore> store) private voidhandleGlobalDeployableLimit(Store<EntityStore> store, Ref<EntityStore> owner) private voidhandleOverMaxDeployableDestruction(CommandBuffer<EntityStore> commandBuffer) private voidhandlePerDeployableLimit(String id, DeployableComponent deployableComponent) private voidincrementId(String id) voidregisterDeployable(Ref<EntityStore> owner, DeployableComponent deployableComp, String id, Ref<EntityStore> deployable, Store<EntityStore> store) voidtick(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
-
deployables
-
deployableCountPerId
-
deployablesForDestruction
-
tempDestructionList
-
-
Constructor Details
-
DeployableOwnerComponent
public DeployableOwnerComponent()
-
-
Method Details
-
getComponentType
-
getMaxDeployablesForId
-
getMaxDeployablesGlobal
-
tick
-
registerDeployable
public void registerDeployable(@Nonnull Ref<EntityStore> owner, @Nonnull DeployableComponent deployableComp, @Nonnull String id, @Nonnull Ref<EntityStore> deployable, @Nonnull Store<EntityStore> store) -
deRegisterDeployable
-
incrementId
-
decrementId
-
getCurrentDeployablesById
-
handlePerDeployableLimit
private void handlePerDeployableLimit(@Nonnull String id, @Nonnull DeployableComponent deployableComponent) -
handleGlobalDeployableLimit
private void handleGlobalDeployableLimit(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> owner) -
handleOverMaxDeployableDestruction
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-