接口 ICustomPacket<T extends Packet<?>>
- 所有已知实现类:
ClientboundCustomPayloadPacket
,ClientboundCustomQueryPacket
,ServerboundCustomPayloadPacket
,ServerboundCustomQueryPacket
public interface ICustomPacket<T extends Packet<?>>
-
方法概要
修饰符和类型方法说明default NetworkDirection
int
getIndex()
@Nullable FriendlyByteBuf
Returns a unsafe reference to this packet's internal data.getName()
default T
getThis()
-
方法详细资料
-
getInternalData
Returns a unsafe reference to this packet's internal data. Any modifications to this buffer will be reflected in the main buffer. -
getName
ResourceLocation getName() -
getIndex
int getIndex() -
getDirection
-
getThis
-