Class CustomPayloadMixin

java.lang.Object
eu.cloudnetservice.modules.bridge.platform.fabric.mixin.payload.CustomPayloadMixin
All Implemented Interfaces:
CustomPayloadAccessor

public class CustomPayloadMixin extends Object implements CustomPayloadAccessor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    io.netty.buffer.ByteBuf
     
    private net.minecraft.resources.ResourceLocation
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.buffer.ByteBuf
     
    void
    cloudnet_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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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$setData in interface CustomPayloadAccessor
    • cloudnet_bridge$getData

      public io.netty.buffer.ByteBuf cloudnet_bridge$getData()
      Specified by:
      cloudnet_bridge$getData in interface CustomPayloadAccessor