Class IComponentMirror.MapDecorations
java.lang.Object
com.saicone.rtag.item.mirror.IComponentMirror.MapDecorations
- All Implemented Interfaces:
IComponentMirror.Transformation
- Enclosing class:
IComponentMirror
public static class IComponentMirror.MapDecorations
extends Object
implements IComponentMirror.Transformation
MapDecorations 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.
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.
-
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, upgradeComponent, upgradeObject
-
Constructor Details
-
MapDecorations
public MapDecorations()
-
-
Method Details
-
upgradeList
public boolean upgradeList(@NotNull @NotNull Object components, @NotNull @NotNull String id, @NotNull @NotNull List<Object> value) Description copied from interface:IComponentMirror.TransformationUpgrade list value into new component format.- Specified by:
upgradeListin interfaceIComponentMirror.Transformation- Parameters:
components- The component map from item.id- Component ID inside map.value- Value of component as Java list.- 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.
-