Class IComponentMirror.ChargedProjectiles
java.lang.Object
com.saicone.rtag.item.mirror.IComponentMirror.ChargedProjectiles
- All Implemented Interfaces:
IComponentMirror.Transformation
- Enclosing class:
IComponentMirror
public static class IComponentMirror.ChargedProjectiles
extends Object
implements IComponentMirror.Transformation
ChargedProjectiles component transformation.
This transformation is just to add/remove old "Charged" boolean tag across versions.
This transformation is just to add/remove old "Charged" boolean tag across versions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDowngrade list value from new component format.booleanUpgrade list value into new component format.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IComponentMirror.Transformation
downgrade, downgrade, downgradeComponent, downgradeObject, move, move, setFlag, upgrade, upgrade, upgradeComponent, upgradeObject
-
Constructor Details
-
ChargedProjectiles
public ChargedProjectiles()
-
-
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.
-
downgradeList
public boolean downgradeList(@NotNull @NotNull Object components, @NotNull @NotNull String id, @NotNull @NotNull List<Object> value) Description copied from interface:IComponentMirror.TransformationDowngrade list value from new component format.- Specified by:
downgradeListin 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.
-