Class FabricServerContext
java.lang.Object
net.tearpelato.craftcorelib.network.FabricServerContext
- All Implemented Interfaces:
NetworkContext
-
Constructor Summary
ConstructorsConstructorDescriptionFabricServerContext(net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking.Context ctx) -
Method Summary
-
Constructor Details
-
FabricServerContext
public FabricServerContext(net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking.Context 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
-