Class IComponentMirror.DamageResistant
java.lang.Object
com.saicone.rtag.item.mirror.IComponentMirror.DamageResistant
- All Implemented Interfaces:
IComponentMirror.Transformation
- Enclosing class:
IComponentMirror
public static class IComponentMirror.DamageResistant
extends Object
implements IComponentMirror.Transformation
DamageResistant component transformation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddowngrade(@NotNull Object components, @NotNull String id, @NotNull Object component, @NotNull com.saicone.rtag.util.MC from, @NotNull com.saicone.rtag.util.MC to) Downgrade component value from upper version.voidupgrade(@NotNull Object components, @NotNull String id, @NotNull Object component, @NotNull com.saicone.rtag.util.MC from, @NotNull com.saicone.rtag.util.MC to) Upgrade component value from lower version.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IComponentMirror.Transformation
downgrade, downgradeComponent, downgradeList, downgradeObject, move, move, setFlag, upgrade, upgradeComponent, upgradeList, upgradeObject
-
Constructor Details
-
DamageResistant
public DamageResistant()
-
-
Method Details
-
upgrade
public void upgrade(@NotNull @NotNull Object components, @NotNull @NotNull String id, @NotNull @NotNull Object component, @NotNull @NotNull com.saicone.rtag.util.MC from, @NotNull @NotNull com.saicone.rtag.util.MC to) Description copied from interface:IComponentMirror.TransformationUpgrade component value from lower version.- Specified by:
upgradein interfaceIComponentMirror.Transformation- Parameters:
components- the component map from item.id- component ID inside map.component- the component itself.from- the initial version of item data.to- the version to upgrade item data.
-
downgrade
public void downgrade(@NotNull @NotNull Object components, @NotNull @NotNull String id, @NotNull @NotNull Object component, @NotNull @NotNull com.saicone.rtag.util.MC from, @NotNull @NotNull com.saicone.rtag.util.MC to) Description copied from interface:IComponentMirror.TransformationDowngrade component value from upper version.- Specified by:
downgradein interfaceIComponentMirror.Transformation- Parameters:
components- the component map from item.id- component ID inside map.component- the component itself.from- the initial version of item data.to- the version to downgrade item data.
-