public class ResourceType
Class ResourceType. Provides resourcetype functionality for the Hytale server.
java.lang.Object > ResourceType
Field Summary
registry
private
ComponentRegistry
registry
Field registry.
index
private
int
index
Field index.
invalid
private
boolean
invalid
Field invalid.
Method Detail
ResourceType
public
public
ResourceType
()
Method ResourceType.
init
public
void
init
(@Nonnull final ComponentRegistry registry, @Nonnull final Class super T> tClass, final int index)
Method init.
- Parameters:
@Nonnull final ComponentRegistryregistry@Nonnull final Class super T>tClassfinal intindex
getTypeClass
public
T>
getTypeClass
()
Method getTypeClass.
getIndex
public
int
getIndex
()
Method getIndex.
IllegalArgumentException
public
new
IllegalArgumentException
("ResourceType is for a different registry! " + String.valueOf(this)
Method IllegalArgumentException.
- Parameters:
"ResourceType is for a different registry! " +String.valueOf(this
validate
public
void
validate
()
Method validate.
invalidate
public
void
invalidate
()
Method invalidate.
isValid
public
boolean
isValid
()
Method isValid.
equals
public
boolean
equals
(@Nullable final Object o)
Method equals.
- Parameters:
@Nullable final Objecto
hashCode
public
int
hashCode
()
Method hashCode.
toString
public
String
toString
()
Method toString.