Class ScheduledTickHashSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<net.minecraft.world.ScheduledTick>
-
- com.therandomlabs.randompatches.world.ScheduledTickHashSet
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<net.minecraft.world.ScheduledTick>,Collection<net.minecraft.world.ScheduledTick>,Set<net.minecraft.world.ScheduledTick>
public final class ScheduledTickHashSet extends HashSet<net.minecraft.world.ScheduledTick>
An implementation ofHashSetdesigned to prevent the"TickNextTick list out of synch"IllegalStateException. This class should only be used byServerTickSchedulerMixin.An explanation can be found here.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScheduledTickHashSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(net.minecraft.world.ScheduledTick entry)booleancontains(Object entry)booleanremove(Object entry)booleanremoveAll(Collection<?> entries)intsize()-
Methods inherited from class java.util.AbstractSet
equals, hashCode
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
size
public int size()
-
contains
public boolean contains(Object entry)
-
add
public boolean add(net.minecraft.world.ScheduledTick entry)
-
remove
public boolean remove(Object entry)
-
removeAll
public boolean removeAll(Collection<?> entries)
- Specified by:
removeAllin interfaceCollection<net.minecraft.world.ScheduledTick>- Specified by:
removeAllin interfaceSet<net.minecraft.world.ScheduledTick>- Overrides:
removeAllin classAbstractSet<net.minecraft.world.ScheduledTick>
-
-