Class IComponentMirror.TooltipDowngrade
java.lang.Object
com.saicone.rtag.item.mirror.IComponentMirror.TooltipDowngrade
- All Implemented Interfaces:
IComponentMirror.TooltipTransformation, IComponentMirror.Transformation
- Direct Known Subclasses:
IComponentMirror.AttributeModifiers, IComponentMirror.CanBuild, IComponentMirror.DyedColor, IComponentMirror.Enchantments, IComponentMirror.Trim, IComponentMirror.Unbreakable
- Enclosing class:
IComponentMirror
public static class IComponentMirror.TooltipDowngrade
extends Object
implements IComponentMirror.TooltipTransformation
Tooltip downgrade, to convert any show in tooltip option into old hide flag format.
-
Constructor Summary
ConstructorsConstructorDescriptionTooltipDowngrade(int ordinal) Constructs a TooltipDowngrade with specified flag ordinal. -
Method Summary
Modifier and TypeMethodDescriptionbooleandowngradeComponent(@NotNull Object components, @NotNull String id, @NotNull Map<String, Object> value) Downgrade map value from new component format.voiddowngradeTooltip(Object components, Map<String, Object> value) Downgrade show in tooltip option from specified component map.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, downgrade, downgradeList, downgradeObject, move, move, setFlag, upgrade, upgrade, upgradeComponent, upgradeList, upgradeObject
-
Constructor Details
-
TooltipDowngrade
public TooltipDowngrade(int ordinal) Constructs a TooltipDowngrade with specified flag ordinal.- Parameters:
ordinal- The flag ordinal to apply on detect tooltip option.
-
-
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.
-
downgradeTooltip
-