Package net.minecraft.world
Enum Class StructurePresence
- All Implemented Interfaces:
Serializable
,Comparable<StructurePresence>
,Constable
An enum holding the presence of a certain structure start in a chunk.
- See Also:
- Mappings:
Namespace Name official dkf
intermediary net/minecraft/class_6833
named net/minecraft/world/StructurePresence
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe chunk is not loaded.The structure start is not present in the chunk, or the start was already referenced and theskipExistingChunk
is set totrue
.The structure start is present in the chunk. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StructurePresence
Returns the enum constant of this class with the specified name.static StructurePresence[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START_PRESENT
The structure start is present in the chunk.- Mappings:
Namespace Name Mixin selector official a
Ldkf;a:Ldkf;
intermediary field_36239
Lnet/minecraft/class_6833;field_36239:Lnet/minecraft/class_6833;
named START_PRESENT
Lnet/minecraft/world/StructurePresence;START_PRESENT:Lnet/minecraft/world/StructurePresence;
-
START_NOT_PRESENT
The structure start is not present in the chunk, or the start was already referenced and theskipExistingChunk
is set totrue
.- Mappings:
Namespace Name Mixin selector official b
Ldkf;b:Ldkf;
intermediary field_36240
Lnet/minecraft/class_6833;field_36240:Lnet/minecraft/class_6833;
named START_NOT_PRESENT
Lnet/minecraft/world/StructurePresence;START_NOT_PRESENT:Lnet/minecraft/world/StructurePresence;
-
CHUNK_LOAD_NEEDED
The chunk is not loaded.- Mappings:
Namespace Name Mixin selector official c
Ldkf;c:Ldkf;
intermediary field_36241
Lnet/minecraft/class_6833;field_36241:Lnet/minecraft/class_6833;
named CHUNK_LOAD_NEEDED
Lnet/minecraft/world/StructurePresence;CHUNK_LOAD_NEEDED:Lnet/minecraft/world/StructurePresence;
-
-
Constructor Details
-
StructurePresence
private StructurePresence()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-