类 ExamplePacket

java.lang.Object
com.cxxcxx.zinecraft.main.network.ExamplePacket
所有已实现的接口:
net.minecraft.network.protocol.common.custom.CustomPacketPayload

public class ExamplePacket extends Object implements net.minecraft.network.protocol.common.custom.CustomPacketPayload
  • 嵌套类概要

    从接口继承的嵌套类/接口 net.minecraft.network.protocol.common.custom.CustomPacketPayload

    net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,ExamplePacket>
     
    static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<ExamplePacket>
     
    net.minecraft.core.BlockPos
     
  • 构造器概要

    构造器
    构造器
    说明
    ExamplePacket(net.minecraft.core.BlockPos pos)
     
    ExamplePacket(net.minecraft.network.RegistryFriendlyByteBuf buf)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static void
    handle(ExamplePacket data, net.neoforged.neoforge.network.handling.IPayloadContext context)
     
    net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 net.minecraft.network.protocol.common.custom.CustomPacketPayload

    toVanillaClientbound, toVanillaServerbound
  • 字段详细资料

    • worldPos

      public net.minecraft.core.BlockPos worldPos
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,ExamplePacket> STREAM_CODEC
    • TYPE

      public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<ExamplePacket> TYPE
  • 构造器详细资料

    • ExamplePacket

      public ExamplePacket(net.minecraft.network.RegistryFriendlyByteBuf buf)
    • ExamplePacket

      public ExamplePacket(net.minecraft.core.BlockPos pos)
  • 方法详细资料

    • handle

      public static void handle(ExamplePacket data, net.neoforged.neoforge.network.handling.IPayloadContext context)
    • type

      public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> type()
      指定者:
      type 在接口中 net.minecraft.network.protocol.common.custom.CustomPacketPayload