Class NeoForgeNetworkContext
java.lang.Object
net.tearpelato.craftcorelib.network.NeoForgeNetworkContext
- All Implemented Interfaces:
NetworkContext
-
Constructor Summary
ConstructorsConstructorDescriptionNeoForgeNetworkContext(net.neoforged.neoforge.network.handling.IPayloadContext ctx) -
Method Summary
-
Constructor Details
-
NeoForgeNetworkContext
public NeoForgeNetworkContext(net.neoforged.neoforge.network.handling.IPayloadContext ctx)
-
-
Method Details
-
enqueue
- Specified by:
enqueuein interfaceNetworkContext
-
isServer
public boolean isServer()- Specified by:
isServerin interfaceNetworkContext
-
serverPlayer
@Nullable public @Nullable net.minecraft.server.level.ServerPlayer serverPlayer()- Specified by:
serverPlayerin interfaceNetworkContext
-
reply
public void reply(net.minecraft.network.protocol.common.custom.CustomPacketPayload payload) - Specified by:
replyin interfaceNetworkContext
-