public class TimerCallbackManager<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TimerCallbackManager.Entry<T> |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.Table<java.lang.String,java.lang.Long,TimerCallbackManager.Entry<T>> |
byName |
private java.util.Queue<TimerCallbackManager.Entry<T>> |
entries |
private TimerCallbackSerializers<T> |
field_216334_b |
private static org.apache.logging.log4j.Logger |
LOGGER |
private com.google.common.primitives.UnsignedLong |
nextUniqueId |
Constructor and Description |
---|
TimerCallbackManager(TimerCallbackSerializers<T> p_i51188_1_) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
func_227574_a_() |
int |
func_227575_a_(java.lang.String p_227575_1_) |
void |
func_227576_a_(java.lang.String p_227576_1_,
long p_227576_2_,
ITimerCallback<T> p_227576_4_) |
void |
read(ListNBT p_216323_1_) |
private void |
readEntry(CompoundNBT p_216329_1_) |
void |
run(T p_216331_1_,
long gameTime) |
private static <T> java.util.Comparator<TimerCallbackManager.Entry<T>> |
sorter() |
ListNBT |
write() |
private CompoundNBT |
writeEntry(TimerCallbackManager.Entry<T> p_216332_1_) |
private static final org.apache.logging.log4j.Logger LOGGER
private final TimerCallbackSerializers<T> field_216334_b
private final java.util.Queue<TimerCallbackManager.Entry<T>> entries
private com.google.common.primitives.UnsignedLong nextUniqueId
private final com.google.common.collect.Table<java.lang.String,java.lang.Long,TimerCallbackManager.Entry<T>> byName
public TimerCallbackManager(TimerCallbackSerializers<T> p_i51188_1_)
private static <T> java.util.Comparator<TimerCallbackManager.Entry<T>> sorter()
public void run(T p_216331_1_, long gameTime)
public void func_227576_a_(java.lang.String p_227576_1_, long p_227576_2_, ITimerCallback<T> p_227576_4_)
public int func_227575_a_(java.lang.String p_227575_1_)
public java.util.Set<java.lang.String> func_227574_a_()
private void readEntry(CompoundNBT p_216329_1_)
public void read(ListNBT p_216323_1_)
private CompoundNBT writeEntry(TimerCallbackManager.Entry<T> p_216332_1_)
public ListNBT write()