Class IEffectMirror

java.lang.Object
com.saicone.rtag.item.mirror.IEffectMirror
All Implemented Interfaces:
ItemMirror

public class IEffectMirror extends Object implements ItemMirror
IEffectMirror class to convert item effect format across versions.
  • Constructor Details

    • IEffectMirror

      public IEffectMirror()
      Constructs an IEffectMirror for current server instance version.
    • IEffectMirror

      @Deprecated(since="1.5.14", forRemoval=true) public IEffectMirror(float version)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructs an IEffectMirror with specified server version to generate map names.
      Parameters:
      version - The server version to create keys for.
    • IEffectMirror

      public IEffectMirror(@NotNull @NotNull com.saicone.rtag.util.MC version)
      Constructs an IEffectMirror with specified server version to generate map names.
      Parameters:
      version - the server version to create keys for.
    • IEffectMirror

      public IEffectMirror(@NotNull @NotNull String fromId, @NotNull @NotNull String toId, @NotNull @NotNull String fromDuration, @NotNull @NotNull String toDuration)
      Constructs an IEffectMirror with specified key names.
      Parameters:
      fromId - Effect ID key to get.
      toId - Effect ID key to set.
      fromDuration - Effect duration key to get.
      toDuration - Effect duration key to set.
  • Method Details