public class TagRewriter extends Object
Constructor and Description |
---|
TagRewriter(Protocol protocol,
@Nullable IdRewriteFunction entityRewriter) |
Modifier and Type | Method and Description |
---|---|
void |
addEmptyTag(RegistryType tagType,
String id)
Adds an empty tag (since the client crashes if a checked tag is not registered.)
|
void |
addEmptyTags(RegistryType tagType,
String... ids) |
void |
addTag(RegistryType tagType,
String id,
int... oldIds) |
void |
register(ClientboundPacketType packetType) |
public TagRewriter(Protocol protocol, @Nullable @Nullable IdRewriteFunction entityRewriter)
public void addEmptyTag(RegistryType tagType, String id)
public void addEmptyTags(RegistryType tagType, String... ids)
public void addTag(RegistryType tagType, String id, int... oldIds)
public void register(ClientboundPacketType packetType)
Copyright © 2016–2021. All rights reserved.