Class IComponentMirror.Profile
java.lang.Object
com.saicone.rtag.item.mirror.IComponentMirror.Profile
- All Implemented Interfaces:
IComponentMirror.Transformation
- Enclosing class:
IComponentMirror
public static class IComponentMirror.Profile
extends Object
implements IComponentMirror.Transformation
Profile component transformation.
This transformation also fix any invalid texture name.
This transformation also fix any invalid texture name.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IComponentMirror.Transformation
downgrade, downgrade, downgradeList, downgradeObject, move, move, setFlag, upgrade, upgrade, upgradeList, upgradeObject
-
Constructor Details
-
Profile
public Profile()
-
-
Method Details
-
upgradeComponent
public boolean upgradeComponent(@NotNull @NotNull Object components, @NotNull @NotNull String id, @NotNull @NotNull Map<String, Object> value) Description copied from interface:IComponentMirror.TransformationUpgrade map value into new component format.- Specified by:
upgradeComponentin interfaceIComponentMirror.Transformation- Parameters:
components- The component map from item.id- Component ID inside map.value- Value of component as Java map.- Returns:
- true to continue with conversion or false to delete component.
-
downgradeComponent
public boolean downgradeComponent(@NotNull @NotNull Object components, @NotNull @NotNull String id, @NotNull @NotNull Map<String, Object> value) Description copied from interface:IComponentMirror.TransformationDowngrade map value from new component format.- Specified by:
downgradeComponentin interfaceIComponentMirror.Transformation- Parameters:
components- The component map from item.id- Component ID inside map.value- Value of component as Java map.- Returns:
- true to continue with conversion or false to delete component.
-