Class HTLongSyncSlot
-
- All Implemented Interfaces:
-
hiiragi283.core.api.inventory.slot.HTSyncableSlot
public final class HTLongSyncSlot implements HTSyncableSlot
Long向けのHTSyncableSlotの実装クラスです。
- Since:
0.4.0
Hiiragi Tsubasa
-
-
Constructor Summary
Constructors Constructor Description HTLongSyncSlot(LongSupplier getter, LongConsumer setter)HTLongSyncSlot(KMutableProperty0<Long> property)
-
Method Summary
Modifier and Type Method Description final LonggetAmount()final UnitsetAmount(Long amount)HTChangeTypegetChange()現在の同期のフラグを取得します。 HTLongSyncPayloadcreatePayload(RegistryAccess access, HTChangeType changeType)指定したaccessとchangeTypeから同期用のパケットを作成します。 -
-
Constructor Detail
-
HTLongSyncSlot
HTLongSyncSlot(LongSupplier getter, LongConsumer setter)
-
HTLongSyncSlot
HTLongSyncSlot(KMutableProperty0<Long> property)
-
-
Method Detail
-
getChange
HTChangeType getChange()
現在の同期のフラグを取得します。
-
createPayload
HTLongSyncPayload createPayload(RegistryAccess access, HTChangeType changeType)
指定したaccessとchangeTypeから同期用のパケットを作成します。
- Returns:
同期を行わない場合は
null
-
-
-
-