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