public abstract class DynamicType<T extends IdHolder> extends Type<T>
Modifier and Type | Class and Description |
---|---|
class |
DynamicType.DataFiller |
static interface |
DynamicType.DataReader<T> |
class |
DynamicType.RawDataFiller |
Modifier and Type | Field and Description |
---|---|
protected it.unimi.dsi.fastutil.ints.Int2ObjectMap<DynamicType.DataReader<T>> |
readers |
ACKNOWLEDGED_BIT_SET, BLOCK_CHANGE_RECORD, BLOCK_CHANGE_RECORD_ARRAY, BLOCK_ENTITY1_18, BLOCK_ENTITY1_20_2, BOOLEAN, BYTE, BYTE_ARRAY_PRIMITIVE, CHUNK_POSITION, COMPONENT, COMPOUND_TAG, DOUBLE, EMPTY, FLAT_ITEM, FLAT_ITEM_ARRAY, FLAT_ITEM_ARRAY_VAR_INT, FLAT_VAR_INT_ITEM, FLAT_VAR_INT_ITEM_ARRAY, FLAT_VAR_INT_ITEM_ARRAY_VAR_INT, FLOAT, GAME_PROFILE, GLOBAL_POSITION, HOLDER_SET, INT, INT_ARRAY_PRIMITIVE, ITEM, ITEM_ARRAY, ITEM1_13, ITEM1_13_2, ITEM1_13_2_ARRAY, ITEM1_13_2_SHORT_ARRAY, ITEM1_13_ARRAY, ITEM1_13_SHORT_ARRAY, ITEM1_20_2, ITEM1_20_2_ARRAY, ITEM1_8, ITEM1_8_SHORT_ARRAY, LONG, LONG_ARRAY_PRIMITIVE, NAMED_COMPOUND_TAG, NAMED_COMPOUND_TAG_ARRAY, NBT, NBT_ARRAY, OPTIONAL_BOOLEAN, OPTIONAL_BYTE_ARRAY_PRIMITIVE, OPTIONAL_COMPONENT, OPTIONAL_COMPOUND_TAG, OPTIONAL_FLOAT, OPTIONAL_GLOBAL_POSITION, OPTIONAL_HOLDER_SET, OPTIONAL_NAMED_COMPOUND_TAG, OPTIONAL_PLAYER_MESSAGE_SIGNATURE, OPTIONAL_POSITION_1_14, OPTIONAL_POSITION1_8, OPTIONAL_PROFILE_KEY, OPTIONAL_SIGNATURE_BYTES, OPTIONAL_STRING, OPTIONAL_TAG, OPTIONAL_UUID, OPTIONAL_VAR_INT, PLAYER_MESSAGE_SIGNATURE, PLAYER_MESSAGE_SIGNATURE_ARRAY, POSITION1_14, POSITION1_8, PROFILE_ACTIONS_ENUM, PROFILE_KEY, QUATERNION, REGISTRY_ENTRY, REGISTRY_ENTRY_ARRAY, REMAINING_BYTES, ROTATION, SHORT, SHORT_BYTE_ARRAY, SIGNATURE_BYTES, SOUND_EVENT, STRING, STRING_ARRAY, TAG, TAG_ARRAY, UNSIGNED_BYTE, UNSIGNED_SHORT, UUID, UUID_ARRAY, VAR_INT, VAR_INT_ARRAY_PRIMITIVE, VAR_LONG, VAR_LONG_BLOCK_CHANGE_RECORD, VAR_LONG_BLOCK_CHANGE_RECORD_ARRAY, VECTOR, VECTOR3F, VILLAGER_DATA
Modifier | Constructor and Description |
---|---|
protected |
DynamicType(java.lang.Class<T> outputClass) |
protected |
DynamicType(it.unimi.dsi.fastutil.ints.Int2ObjectMap<DynamicType.DataReader<T>> readers,
java.lang.Class<T> outputClass) |
Modifier and Type | Method and Description |
---|---|
DynamicType.DataFiller |
filler(Protocol<?,?,?,?> protocol) |
DynamicType.DataFiller |
filler(Protocol<?,?,?,?> protocol,
boolean useMappedNames) |
protected abstract FullMappings |
mappings(Protocol<?,?,?,?> protocol) |
DynamicType.RawDataFiller |
rawFiller() |
protected void |
readData(io.netty.buffer.ByteBuf buffer,
T value) |
getBaseClass, getOutputClass, getTypeName, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
read
write
protected final it.unimi.dsi.fastutil.ints.Int2ObjectMap<DynamicType.DataReader<T extends IdHolder>> readers
protected DynamicType(it.unimi.dsi.fastutil.ints.Int2ObjectMap<DynamicType.DataReader<T>> readers, java.lang.Class<T> outputClass)
protected DynamicType(java.lang.Class<T> outputClass)
public DynamicType.DataFiller filler(Protocol<?,?,?,?> protocol)
public DynamicType.DataFiller filler(Protocol<?,?,?,?> protocol, boolean useMappedNames)
protected void readData(io.netty.buffer.ByteBuf buffer, T value) throws java.lang.Exception
java.lang.Exception
public DynamicType.RawDataFiller rawFiller()
protected abstract FullMappings mappings(Protocol<?,?,?,?> protocol)