public class ComponentType
Class ComponentType. Provides componenttype functionality for the Hytale server.
java.lang.Object > ComponentType
Field Summary
registry
private
ComponentRegistry
registry
Field registry.
index
private
int
index
Field index.
invalid
private
boolean
invalid
Field invalid.
Method Detail
ComponentType
public
public
ComponentType
()
Method ComponentType.
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.
invalidate
public
void
invalidate
()
Method invalidate.
isValid
public
boolean
isValid
()
Method isValid.
IllegalArgumentException
public
new
IllegalArgumentException
("ComponentType is for a different registry! " + String.valueOf(this)
Method IllegalArgumentException.
- Parameters:
"ComponentType is for a different registry! " +String.valueOf(this
validate
public
void
validate
()
Method validate.
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.