Class SendRecipeDisplayPacket
java.lang.Object
org.cyclops.cyclopscore.network.PacketBase<SendRecipeDisplayPacket>
org.cyclops.cyclopscore.network.PacketCodec<SendRecipeDisplayPacket>
org.cyclops.cyclopscore.network.packet.SendRecipeDisplayPacket
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
public class SendRecipeDisplayPacket
extends org.cyclops.cyclopscore.network.PacketCodec<SendRecipeDisplayPacket>
Packet from server to client to update player advancement unlocked info.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.cyclopscore.network.PacketCodec
org.cyclops.cyclopscore.network.PacketCodec.ICodecAction
Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,
T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec
<net.minecraft.network.RegistryFriendlyByteBuf, SendRecipeDisplayPacket> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type
<SendRecipeDisplayPacket> Fields inherited from class org.cyclops.cyclopscore.network.PacketCodec
fieldCache
-
Constructor Summary
ConstructorsConstructorDescriptionSendRecipeDisplayPacket
(String recipeType, String recipe, net.minecraft.world.item.crafting.display.RecipeDisplayEntry recipeDisplay) -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionClient
(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) void
actionServer
(net.minecraft.world.level.Level level, net.minecraft.server.level.ServerPlayer player) void
decode
(net.minecraft.network.RegistryFriendlyByteBuf input) void
encode
(net.minecraft.network.RegistryFriendlyByteBuf output) boolean
isAsync()
Methods inherited from class org.cyclops.cyclopscore.network.PacketBase
getCodec, type, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Field Details
-
TYPE
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<SendRecipeDisplayPacket> TYPE -
CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,SendRecipeDisplayPacket> CODEC
-
-
Constructor Details
-
SendRecipeDisplayPacket
public SendRecipeDisplayPacket() -
SendRecipeDisplayPacket
-
-
Method Details
-
isAsync
public boolean isAsync()- Specified by:
isAsync
in classorg.cyclops.cyclopscore.network.PacketBase<SendRecipeDisplayPacket>
-
encode
public void encode(net.minecraft.network.RegistryFriendlyByteBuf output) - Overrides:
encode
in classorg.cyclops.cyclopscore.network.PacketCodec<SendRecipeDisplayPacket>
-
decode
public void decode(net.minecraft.network.RegistryFriendlyByteBuf input) - Overrides:
decode
in classorg.cyclops.cyclopscore.network.PacketCodec<SendRecipeDisplayPacket>
-
actionClient
public void actionClient(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) - Specified by:
actionClient
in classorg.cyclops.cyclopscore.network.PacketBase<SendRecipeDisplayPacket>
-
actionServer
public void actionServer(net.minecraft.world.level.Level level, net.minecraft.server.level.ServerPlayer player) - Specified by:
actionServer
in classorg.cyclops.cyclopscore.network.PacketBase<SendRecipeDisplayPacket>
-