Class RtagMirror
java.lang.Object
com.saicone.rtag.RtagMirror
- Direct Known Subclasses:
Rtag
RtagMirror class to convert objects.
By default, it's only compatible with regular Java
objects like String, Short, Integer, Double, Float,
Long, Byte, Map and List.
It also converts Byte, Integer and Long arrays as well.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RtagMirrorRtagMirrorpublic instance only compatible with regular Java objects.protected static final Class<?> Tag class object.protected static final Class<?> CompoundTag class object.protected static final Class<?> ListTag class object. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs anRtagMirroronly compatible with regular Java objects.RtagMirror(Rtag ignored) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionCopy any Tag object into new one.getRtag()Deprecated.RtagextendsRtagMirror.getTagValue(Object tag) Convert any tag object to regular Java object.Convert any object to tag object.voidDeprecated.RtagextendsRtagMirror.
-
Field Details
-
TAG_BASE
Tag class object. -
TAG_COMPOUND
CompoundTag class object. -
TAG_LIST
ListTag class object. -
INSTANCE
RtagMirrorpublic instance only compatible with regular Java objects.
-
-
Constructor Details
-
RtagMirror
public RtagMirror()Constructs anRtagMirroronly compatible with regular Java objects. -
RtagMirror
Deprecated.RtagextendsRtagMirror.Constructs anRtagMirroronly compatible with regular Java objects, ignoring the providedRtag.- Parameters:
ignored- Ignored Rtag instance.
-
-
Method Details
-
getRtag
Deprecated.RtagextendsRtagMirror.Get the current object if it is and instance ofRtag.- Returns:
- the current Rtag instance or null.
-
setRtag
Deprecated.RtagextendsRtagMirror.Ignored method to set Rtag instance.- Parameters:
rtag- Ignored Rtag instance.
-
newTag
-
clone
-
getTagValue
-
RtagextendsRtagMirror.