Package hiiragi283.core.common.gui.sync
Class HTFluidSyncSlot
-
- All Implemented Interfaces:
-
hiiragi283.core.api.gui.sync.HTSyncableSlot,hiiragi283.core.common.gui.sync.HTIntSyncSlot
public final class HTFluidSyncSlot implements HTIntSyncSlot
FluidStack向けのHTIntSyncSlotの実装クラスです。
- Since:
0.8.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private FluidStackasFluidStackprivate IntegeramountAsInt
-
Constructor Summary
Constructors Constructor Description HTFluidSyncSlot(Supplier<FluidStack> getter, Consumer<FluidStack> setter)HTFluidSyncSlot(KMutableProperty0<FluidStack> property)HTFluidSyncSlot(HTResourceView.Mutable<HTFluidResourceType> view)
-
Method Summary
Modifier and Type Method Description final FluidStackgetAsFluidStack()final UnitsetAsFluidStack(FluidStack value)IntegergetAmountAsInt()UnitsetAmountAsInt(Integer value)HTChangeTypegetChange()現在の同期のフラグを取得します。 HTSyncablePayloadcreatePayload(RegistryAccess access, HTChangeType changeType)指定したaccessとchangeTypeからHTSyncablePayloadを作成します。 final FluidStackgetValue(Object thisRef, KProperty<?> property)final UnitsetValue(Object thisRef, KProperty<?> property, FluidStack value)-
-
Constructor Detail
-
HTFluidSyncSlot
HTFluidSyncSlot(KMutableProperty0<FluidStack> property)
-
HTFluidSyncSlot
HTFluidSyncSlot(HTResourceView.Mutable<HTFluidResourceType> view)
-
-
Method Detail
-
getAsFluidStack
final FluidStack getAsFluidStack()
-
setAsFluidStack
final Unit setAsFluidStack(FluidStack value)
-
getAmountAsInt
Integer getAmountAsInt()
-
setAmountAsInt
Unit setAmountAsInt(Integer value)
-
getChange
HTChangeType getChange()
現在の同期のフラグを取得します。
- Returns:
同期を行わない場合は
null
-
createPayload
HTSyncablePayload createPayload(RegistryAccess access, HTChangeType changeType)
指定したaccessとchangeTypeからHTSyncablePayloadを作成します。
- Returns:
同期を行わない場合は
null
-
-
-
-