public abstract class RecipeRewriter extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RecipeRewriter.RecipeConsumer |
Modifier and Type | Field and Description |
---|---|
protected Protocol |
protocol |
protected Map<String,RecipeRewriter.RecipeConsumer> |
recipeHandlers |
protected ItemRewriter.RewriteFunction |
rewriter |
Modifier | Constructor and Description |
---|---|
protected |
RecipeRewriter(Protocol protocol,
ItemRewriter.RewriteFunction rewriter) |
Modifier and Type | Method and Description |
---|---|
void |
handle(PacketWrapper wrapper,
String type) |
void |
registerDefaultHandler(ClientboundPacketType packetType) |
protected final Protocol protocol
protected final ItemRewriter.RewriteFunction rewriter
protected final Map<String,RecipeRewriter.RecipeConsumer> recipeHandlers
protected RecipeRewriter(Protocol protocol, ItemRewriter.RewriteFunction rewriter)
public void handle(PacketWrapper wrapper, String type) throws Exception
Exception
public void registerDefaultHandler(ClientboundPacketType packetType)
Copyright © 2016–2021. All rights reserved.