Package hiiragi283.core.common.gui.sync
Class HTFluidSyncPayload
-
- All Implemented Interfaces:
-
hiiragi283.core.api.gui.sync.HTSyncablePayload
@JvmRecord() public final class HTFluidSyncPayload extends Record implements HTSyncablePayload
-
-
Field Summary
Fields Modifier and Type Field Description public final static StreamCodec<RegistryFriendlyByteBuf, HTFluidSyncPayload>STREAM_CODECpublic final static HTSyncablePayload.Type<HTFluidSyncPayload>TYPEprivate final FluidStackvalue
-
Constructor Summary
Constructors Constructor Description HTFluidSyncPayload(FluidStack value)
-
Method Summary
Modifier and Type Method Description final FluidStackgetValue()HTSyncablePayload.Type<?>type()パケットへの書き込みに使用されるStreamCodecを返します。 UnitsetValue(HTSyncableMenu menu, Integer index)指定されたmenuとindexから値を更新します。 -
-
Method Detail
-
getValue
final FluidStack getValue()
-
type
HTSyncablePayload.Type<?> type()
パケットへの書き込みに使用されるStreamCodecを返します。
-
setValue
Unit setValue(HTSyncableMenu menu, Integer index)
-
-
-
-