Class MessageWrapperFabric
java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<net.minecraft.server.level.ServerPlayer, net.fabricmc.fabric.api.networking.v1.PacketSender>
mods.thecomputerizer.theimpossiblelibrary.fabric.network.MessageWrapperFabric
public class MessageWrapperFabric
extends mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI<net.minecraft.server.level.ServerPlayer, net.fabricmc.fabric.api.networking.v1.PacketSender>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationprotected static final Stringprotected static final net.minecraft.resources.ResourceLocationprotected static final net.minecraft.resources.ResourceLocationprotected final net.minecraft.resources.ResourceLocationFields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI
info -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMessageWrapperFabric(net.minecraft.resources.ResourceLocation registryName) protectedMessageWrapperFabric(net.minecraft.resources.ResourceLocation registryName, io.netty.buffer.ByteBuf buf) -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageWrapperFabricstatic MessageWrapperFabricgetInstance(io.netty.buffer.ByteBuf buf) static MessageWrapperFabricgetInstance(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?, ?> network, Object dir) static MessageWrapperFabricgetInstance(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?, ?> network, Object dir, io.netty.buffer.ByteBuf buf) static net.minecraft.resources.ResourceLocationgetRegistryName(boolean client, boolean login) protected static booleanprotected static booleanMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.network.message.MessageWrapperAPI
decode, encode, handle, send, setMessage, setMessages, setMessages, setPlayer, setPlayers, setPlayers
-
Field Details
-
ID_PATH
- See Also:
-
ID
public static final net.minecraft.resources.ResourceLocation ID -
ID_CLIENT_LOGIN
protected static final net.minecraft.resources.ResourceLocation ID_CLIENT_LOGIN -
ID_CLIENT_PLAY
protected static final net.minecraft.resources.ResourceLocation ID_CLIENT_PLAY -
ID_SERVER_LOGIN
protected static final net.minecraft.resources.ResourceLocation ID_SERVER_LOGIN -
ID_SERVER_PLAY
protected static final net.minecraft.resources.ResourceLocation ID_SERVER_PLAY -
registryName
protected final net.minecraft.resources.ResourceLocation registryName
-
-
Constructor Details
-
MessageWrapperFabric
protected MessageWrapperFabric(net.minecraft.resources.ResourceLocation registryName) -
MessageWrapperFabric
protected MessageWrapperFabric(net.minecraft.resources.ResourceLocation registryName, io.netty.buffer.ByteBuf buf)
-
-
Method Details
-
getInstance
-
getInstance
-
getInstance
public static MessageWrapperFabric getInstance(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?, ?> network, Object dir) -
getInstance
public static MessageWrapperFabric getInstance(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?, ?> network, Object dir, io.netty.buffer.ByteBuf buf) -
isClient
protected static boolean isClient(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?, ?> network, Object dir) -
isLogin
protected static boolean isLogin(mods.thecomputerizer.theimpossiblelibrary.api.network.NetworkAPI<?, ?> network, Object dir) -
getRegistryName
public static net.minecraft.resources.ResourceLocation getRegistryName(boolean client, boolean login)
-