public class ChangingObject<T>
extends java.lang.Object
Constructor and Description |
---|
ChangingObject(T[] options) |
Modifier and Type | Method and Description |
---|---|
protected int |
computeHash() |
boolean |
equals(java.lang.Object obj) |
T |
get() |
T |
get(int indexOffset) |
int |
hashCode() |
void |
setTimeGap(int timeGap)
Sets the time gap between different stacks showing, in milliseconds.
|
protected final T[] options
public ChangingObject(T[] options)
protected int computeHash()
public T get()
ItemStack
that should be displayed at the current time.public T get(int indexOffset)
public void setTimeGap(int timeGap)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object