Class LecternSpellPacketC2S
java.lang.Object
com.binaris.wizardry.core.networking.c2s.LecternSpellPacketC2S
- All Implemented Interfaces:
Message
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLecternSpellPacketC2S(net.minecraft.core.BlockPos pos, @Nullable net.minecraft.resources.ResourceLocation spell) LecternSpellPacketC2S(net.minecraft.network.FriendlyByteBuf buf) -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(net.minecraft.network.FriendlyByteBuf buf) net.minecraft.resources.ResourceLocationgetId()voidhandleServer(net.minecraft.server.MinecraftServer server, net.minecraft.server.level.ServerPlayer player) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.binaris.wizardry.core.networking.abst.Message
handleClient
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
LecternSpellPacketC2S
public LecternSpellPacketC2S(net.minecraft.core.BlockPos pos, @Nullable @Nullable net.minecraft.resources.ResourceLocation spell) -
LecternSpellPacketC2S
public LecternSpellPacketC2S(net.minecraft.network.FriendlyByteBuf buf)
-
-
Method Details
-
getId
public net.minecraft.resources.ResourceLocation getId() -
encode
public void encode(net.minecraft.network.FriendlyByteBuf buf) -
handleServer
public void handleServer(net.minecraft.server.MinecraftServer server, net.minecraft.server.level.ServerPlayer player) - Specified by:
handleServerin interfaceMessage
-