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