Class IComponentMirror.TooltipDisplay
java.lang.Object
com.saicone.rtag.item.mirror.IComponentMirror.TooltipDisplay
- All Implemented Interfaces:
IComponentMirror.TooltipTransformation, IComponentMirror.Transformation
- Enclosing class:
IComponentMirror
public static class IComponentMirror.TooltipDisplay
extends Object
implements IComponentMirror.TooltipTransformation
TooltipDisplay 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.booleandowngradeComponent(@NotNull Object components, @NotNull String id, @NotNull Map<String, Object> value) Downgrade map value from new component format.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.TooltipTransformation
hideComponents, upgradeTooltipMethods inherited from interface IComponentMirror.Transformation
downgrade, downgradeList, downgradeObject, move, move, setFlag, upgrade, upgradeComponent, upgradeList, upgradeObject
-
Constructor Details
-
TooltipDisplay
public TooltipDisplay()
-
-
Method Details
-
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.
-
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.
-