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