Class ServerboundRecipeBookChangeSettingsPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundRecipeBookChangeSettingsPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
public class ServerboundRecipeBookChangeSettingsPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RecipeBookType
private final boolean
private final boolean
-
Constructor Summary
ModifierConstructorDescriptionprivate
ServerboundRecipeBookChangeSettingsPacket
(RecipeBookType p_134366_, boolean p_134367_, boolean p_134368_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(ServerGamePacketListener p_134374_) boolean
boolean
isOpen()
type()
private void
write
(FriendlyByteBuf p_134377_) 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.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<FriendlyByteBuf,ServerboundRecipeBookChangeSettingsPacket> STREAM_CODEC -
bookType
-
isOpen
private final boolean isOpen -
isFiltering
private final boolean isFiltering
-
-
Constructor Details
-
ServerboundRecipeBookChangeSettingsPacket
public ServerboundRecipeBookChangeSettingsPacket(RecipeBookType p_134366_, boolean p_134367_, boolean p_134368_) -
ServerboundRecipeBookChangeSettingsPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ServerGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getBookType
-
isOpen
public boolean isOpen() -
isFiltering
public boolean isFiltering()
-