Class SRecipeBookPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SRecipeBookPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SRecipeBookPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SRecipeBookPacket.State
-
Field Summary
Fields Modifier and Type Field Description private RecipeBookStatus
bookSettings
private java.util.List<ResourceLocation>
recipes
private SRecipeBookPacket.State
state
private java.util.List<ResourceLocation>
toHighlight
-
Constructor Summary
Constructors Constructor Description SRecipeBookPacket()
SRecipeBookPacket(SRecipeBookPacket.State p_i242083_1_, java.util.Collection<ResourceLocation> p_i242083_2_, java.util.Collection<ResourceLocation> p_i242083_3_, RecipeBookStatus p_i242083_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecipeBookStatus
getBookSettings()
java.util.List<ResourceLocation>
getHighlights()
java.util.List<ResourceLocation>
getRecipes()
SRecipeBookPacket.State
getState()
void
handle(IClientPlayNetHandler p_148833_1_)
void
read(PacketBuffer p_148837_1_)
void
write(PacketBuffer p_148840_1_)
-
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.IPacket
isSkippable
-
-
-
-
Field Detail
-
state
private SRecipeBookPacket.State state
-
recipes
private java.util.List<ResourceLocation> recipes
-
toHighlight
private java.util.List<ResourceLocation> toHighlight
-
bookSettings
private RecipeBookStatus bookSettings
-
-
Constructor Detail
-
SRecipeBookPacket
public SRecipeBookPacket()
-
SRecipeBookPacket
public SRecipeBookPacket(SRecipeBookPacket.State p_i242083_1_, java.util.Collection<ResourceLocation> p_i242083_2_, java.util.Collection<ResourceLocation> p_i242083_3_, RecipeBookStatus p_i242083_4_)
-
-
Method Detail
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
getRecipes
public java.util.List<ResourceLocation> getRecipes()
-
getHighlights
public java.util.List<ResourceLocation> getHighlights()
-
getBookSettings
public RecipeBookStatus getBookSettings()
-
getState
public SRecipeBookPacket.State getState()
-
-