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