ComponentType

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 tClass, final int index)

Method init.

Parameters:
@Nonnull final ComponentRegistry registry
@Nonnull final Class tClass
final int index

getRegistry

public ComponentRegistry getRegistry ()

Method getRegistry.

getTypeClass

public T> getTypeClass ()

Method getTypeClass.

getIndex

public int getIndex ()

Method getIndex.

invalidate

public void invalidate ()

Method invalidate.

isValid

public boolean isValid ()

Method isValid.

test

public boolean test (@Nonnull final Archetype archetype)

Method test.

Parameters:
@Nonnull final Archetype archetype

requiresComponentType

public boolean requiresComponentType (final ComponentType componentType)

Method requiresComponentType.

Parameters:
final ComponentType componentType

validateRegistry

public void validateRegistry (final ComponentRegistry registry)

Method validateRegistry.

Parameters:
final ComponentRegistry registry

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.

compareTo

public int compareTo (@Nonnull final ComponentType o)

Method compareTo.

Parameters:
@Nonnull final ComponentType o

equals

public boolean equals (@Nullable final Object o)

Method equals.

Parameters:
@Nullable final Object o

hashCode

public int hashCode ()

Method hashCode.

toString

public String toString ()

Method toString.