Package net.minecraftforge.client
Class ChunkRenderTypeSet
java.lang.Object
net.minecraftforge.client.ChunkRenderTypeSet
- All Implemented Interfaces:
Iterable<RenderType>
- Direct Known Subclasses:
ChunkRenderTypeSet.All
,ChunkRenderTypeSet.None
public sealed class ChunkRenderTypeSet
extends Object
implements Iterable<RenderType>
permits ChunkRenderTypeSet.None, ChunkRenderTypeSet.All
An immutable ordered set (not implementing
Set
) of chunk render types.
Considerably speeds up lookups and merges of sets of chunk render types. Users should cache their instances of this class whenever possible, as instantiating it is cheap, but not free.
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final class
private final class
private static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ChunkRenderTypeSet
private final BitSet
private static final RenderType[]
private static final List
<RenderType> private static final ChunkRenderTypeSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChunkRenderTypeSet
all()
asList()
boolean
contains
(RenderType renderType) static ChunkRenderTypeSet
static ChunkRenderTypeSet
static ChunkRenderTypeSet
intersection
(ChunkRenderTypeSet... sets) boolean
isEmpty()
@NotNull Iterator
<RenderType> iterator()
static ChunkRenderTypeSet
none()
private static ChunkRenderTypeSet
of
(Iterable<RenderType> renderTypes) static ChunkRenderTypeSet
of
(Collection<RenderType> renderTypes) static ChunkRenderTypeSet
of
(RenderType... renderTypes) static ChunkRenderTypeSet
union
(Iterable<ChunkRenderTypeSet> sets) static ChunkRenderTypeSet
union
(Collection<ChunkRenderTypeSet> sets) static ChunkRenderTypeSet
union
(ChunkRenderTypeSet... sets) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
CHUNK_RENDER_TYPES_LIST
-
CHUNK_RENDER_TYPES
-
NONE
-
ALL
-
bits
-
-
Constructor Details
-
ChunkRenderTypeSet
-
-
Method Details
-
none
-
all
-
of
-
of
-
of
-
union
-
union
-
union
-
intersection
-
intersection
-
intersection
-
isEmpty
public boolean isEmpty() -
contains
-
iterator
- Specified by:
iterator
in interfaceIterable<RenderType>
-
asList
-