Class CustomPayloadMixin
java.lang.Object
eu.cloudnetservice.modules.bridge.platform.fabric.mixin.payload.CustomPayloadMixin
- All Implemented Interfaces:
CustomPayloadAccessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionio.netty.buffer.ByteBufprivate net.minecraft.resources.ResourceLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.buffer.ByteBufvoidcloudnet_bridge$setData(io.netty.buffer.ByteBuf data) static <T extends net.minecraft.network.FriendlyByteBuf>
net.minecraft.network.codec.StreamCodec<T, net.minecraft.network.protocol.common.custom.DiscardedPayload> codec(net.minecraft.resources.ResourceLocation id, int maxBytes) Overwrites the codec implementation of the custom packet payload.
-
Field Details
-
id
private net.minecraft.resources.ResourceLocation id -
cloudnet_bridge$dataBuf
public io.netty.buffer.ByteBuf cloudnet_bridge$dataBuf
-
-
Constructor Details
-
CustomPayloadMixin
public CustomPayloadMixin()
-
-
Method Details
-
codec
public static <T extends net.minecraft.network.FriendlyByteBuf> net.minecraft.network.codec.StreamCodec<T,net.minecraft.network.protocol.common.custom.DiscardedPayload> codec(net.minecraft.resources.ResourceLocation id, int maxBytes) Overwrites the codec implementation of the custom packet payload. -
cloudnet_bridge$setData
public void cloudnet_bridge$setData(io.netty.buffer.ByteBuf data) - Specified by:
cloudnet_bridge$setDatain interfaceCustomPayloadAccessor
-
cloudnet_bridge$getData
public io.netty.buffer.ByteBuf cloudnet_bridge$getData()- Specified by:
cloudnet_bridge$getDatain interfaceCustomPayloadAccessor
-