Class AskServerPlayers
java.lang.Object
com.portingdeadmods.portingdeadlibs.networking.cache.AskServerPlayers
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
public class AskServerPlayers
extends Object
implements net.minecraft.network.protocol.common.custom.CustomPacketPayload
-
Nested Class Summary
Nested classes/interfaces inherited from interface 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> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, AskServerPlayers> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<AskServerPlayers> static final AskServerPlayers -
Method Summary
Modifier and TypeMethodDescriptionstatic voidping(AskServerPlayers payload, net.neoforged.neoforge.network.handling.IPayloadContext context) @NotNull net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> type()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Field Details
-
UNIT
-
TYPE
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<AskServerPlayers> TYPE -
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,AskServerPlayers> STREAM_CODEC
-
-
Method Details
-
type
@NotNull public @NotNull net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> type()- Specified by:
typein interfacenet.minecraft.network.protocol.common.custom.CustomPacketPayload
-
ping
public static void ping(AskServerPlayers payload, net.neoforged.neoforge.network.handling.IPayloadContext context)
-