Class IComponentMirror.Fireworks
java.lang.Object
com.saicone.rtag.item.mirror.IComponentMirror.FireworkExplosion
com.saicone.rtag.item.mirror.IComponentMirror.Fireworks
- All Implemented Interfaces:
IComponentMirror.Transformation
- Enclosing class:
IComponentMirror
Fireworks component transformation.
This transformation save any new explosion shape if it's not compatible with older server version, and bring back when it's converted into newer version.
This transformation save any new explosion shape 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 IComponentMirror.FireworkExplosion
downgradeExplosion, upgradeExplosionMethods 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, upgradeList, upgradeObject
-
Constructor Details
-
Fireworks
public Fireworks()
-
-
Method Details
-
upgradeComponent
public boolean upgradeComponent(@NotNull @NotNull Object components, @NotNull @NotNull String id, @NotNull @NotNull Map<String, Object> value) Description copied from interface:IComponentMirror.TransformationUpgrade map value into new component format.- Specified by:
upgradeComponentin interfaceIComponentMirror.Transformation- Overrides:
upgradeComponentin classIComponentMirror.FireworkExplosion- 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.
-
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- Overrides:
downgradeComponentin classIComponentMirror.FireworkExplosion- 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.
-