public class DataFixerUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
VERSION1_12_2 |
static int |
VERSION1_16_5 |
static int |
VERSION1_17_1 |
static int |
VERSION1_18_2 |
static int |
VERSION1_19_2 |
static int |
VERSION1_19_4 |
static int |
VERSION1_20_1 |
static int |
VERSION1_20_2 |
static int |
VERSION1_20_4 |
static int |
VERSION1_20_5 |
static int |
VERSION1_21 |
static int |
VERSION1_21_2 |
static int |
VERSION1_21_3 |
Constructor and Description |
---|
DataFixerUtil() |
Modifier and Type | Method and Description |
---|---|
static ReadWriteNBT |
fixUpItemData(ReadWriteNBT nbt,
int fromVersion,
int toVersion) |
static Object |
fixUpRawItemData(Object nbt,
int fromVersion,
int toVersion) |
static int |
getCurrentVersion()
This method will return the closest or exact version number of the current
server.
|
public static final int VERSION1_12_2
public static final int VERSION1_16_5
public static final int VERSION1_17_1
public static final int VERSION1_18_2
public static final int VERSION1_19_2
public static final int VERSION1_19_4
public static final int VERSION1_20_1
public static final int VERSION1_20_2
public static final int VERSION1_20_4
public static final int VERSION1_20_5
public static final int VERSION1_21
public static final int VERSION1_21_2
public static final int VERSION1_21_3
public static Object fixUpRawItemData(Object nbt, int fromVersion, int toVersion) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException
public static ReadWriteNBT fixUpItemData(ReadWriteNBT nbt, int fromVersion, int toVersion) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException
public static int getCurrentVersion()
Copyright © 2015–2024 tr7zw. All rights reserved.