Class IComponentMirror
java.lang.Object
com.saicone.rtag.item.mirror.IComponentMirror
- All Implemented Interfaces:
ItemMirror
IComponentMirror class to convert item
components across versions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAttributeModifiers component transformation.static classBannerPatterns component transformation.
This transformation save any new banner pattern if it's not compatible with older server version, and bring back when it's converted into newer version.static classBaseColor component transformation.static classBees component transformation.static classBookContents component transformation.
This transformation allow to convert any regular book component format.static classBuild component transformation.
This transformation allow to convert any regular build predicate format.static classChargedProjectiles component transformation.
This transformation is just to add/remove old "Charged" boolean tag across versions.static classContainer component transformation.static classCustomModelData component transformation.static classDamageResistant component transformation.static classDyedColor component transformation.static classEnchantments component transformation.
This transformation allow to convert any regular enchantment format.static classEquippable component transformation.static classFireworkExplosion component transformation.
This transformation save the new explosion shape if it's not compatible with older server version, and bring back when it's converted into newer version.static classFireworks component transformation.
This transformation save any new explosion shape if it's not compatible with older server version, and bring back when it's converted into newer version.static classConsumable component transformation.static classJukeboxPlayable component transformation.static classstatic classMapDecorations component transformation.
This transformation save any new map decoration if it's not compatible with older server version, and bring back when it's converted into newer version.static classProfile component transformation.
This transformation also fix any invalid texture name.static classstatic classTooltipDisplay component transformation.static classTooltip downgrade, to convert any show in tooltip option into old hide flag format.static interfaceTooltip transformation, to convert tooltips across versions.static interfaceComponent transformation interface, to upgrade/downgrade components from/into NBT format.static classTrim component transformation.static classUnbreakable component transformation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddowngrade(@NotNull Object compound, @NotNull String id, @NotNull com.saicone.rtag.util.MC from, @NotNull com.saicone.rtag.util.MC to) Downgrade current item tag compound from upper version.voiddowngrade(@NotNull Object compound, @NotNull String id, @NotNull Object components, @NotNull com.saicone.rtag.util.MC from, @NotNull com.saicone.rtag.util.MC to) Downgrade current item tag compound from upper version.voidupgrade(@NotNull Object compound, @NotNull String id, @NotNull com.saicone.rtag.util.MC from, @NotNull com.saicone.rtag.util.MC to) Upgrade current item tag compound from lower version.voidupgrade(@NotNull Object compound, @NotNull String id, @NotNull Object components, @NotNull com.saicone.rtag.util.MC from, @NotNull com.saicone.rtag.util.MC to) Upgrade current item tag compound from lower version.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ItemMirror
downgrade, downgrade, getDeprecationVersion, getMaximumVersion, getMinimumVersion, getMinVersion0, upgrade, upgrade
-
Constructor Details
-
IComponentMirror
public IComponentMirror()
-
-
Method Details
-
upgrade
public void upgrade(@NotNull @NotNull Object compound, @NotNull @NotNull String id, @NotNull @NotNull com.saicone.rtag.util.MC from, @NotNull @NotNull com.saicone.rtag.util.MC to) Description copied from interface:ItemMirrorUpgrade current item tag compound from lower version.- Specified by:
upgradein interfaceItemMirror- Parameters:
compound- the tag compound that represents item data.id- the item material id.from- the initial version of item data.to- the version to upgrade item data.
-
upgrade
public void upgrade(@NotNull @NotNull Object compound, @NotNull @NotNull String id, @NotNull @NotNull Object components, @NotNull @NotNull com.saicone.rtag.util.MC from, @NotNull @NotNull com.saicone.rtag.util.MC to) Description copied from interface:ItemMirrorUpgrade current item tag compound from lower version.- Specified by:
upgradein interfaceItemMirror- Parameters:
compound- the tag compound that represents item data.id- the item material id.components- the item components, on older versions this may be the item tag.from- the initial version of item data.to- the version to upgrade item data.
-
downgrade
public void downgrade(@NotNull @NotNull Object compound, @NotNull @NotNull String id, @NotNull @NotNull com.saicone.rtag.util.MC from, @NotNull @NotNull com.saicone.rtag.util.MC to) Description copied from interface:ItemMirrorDowngrade current item tag compound from upper version.- Specified by:
downgradein interfaceItemMirror- Parameters:
compound- the tag compound that represents item data.id- the item material id.from- the initial version of item data.to- the version to downgrade item data.
-
downgrade
public void downgrade(@NotNull @NotNull Object compound, @NotNull @NotNull String id, @NotNull @NotNull Object components, @NotNull @NotNull com.saicone.rtag.util.MC from, @NotNull @NotNull com.saicone.rtag.util.MC to) Description copied from interface:ItemMirrorDowngrade current item tag compound from upper version.- Specified by:
downgradein interfaceItemMirror- Parameters:
compound- the tag compound that represents item data.id- the item material id.components- the item components, on older versions this may be the item tag.from- the initial version of item data.to- the version to downgrade item data.
-