Package net.minecraft.world.gen
Class StructureWeightSampler
java.lang.Object
net.minecraft.world.gen.StructureWeightSampler
public class StructureWeightSampler extends Object
- Mappings:
Namespace Name official cmdintermediary net/minecraft/class_5817named net/minecraft/world/gen/StructureWeightSampler
-
Field Summary
Fields Modifier and Type Field Description static StructureWeightSamplerINSTANCEprivate ObjectListIterator<JigsawJunction>junctionIteratorprivate ObjectList<JigsawJunction>junctionsprivate ObjectListIterator<StructurePiece>pieceIteratorprivate ObjectList<StructurePiece>piecesprivate static float[]STRUCTURE_WEIGHT_TABLE -
Constructor Summary
Constructors Modifier Constructor Description privateStructureWeightSampler()protectedStructureWeightSampler(StructureAccessor accessor, Chunk chunk) -
Method Summary
Modifier and Type Method Description private static doublecalculateStructureWeight(int x, int y, int z)private static doublegetStructureWeight(int x, int y, int z)protected doublegetWeight(int x, int y, int z)
-
Field Details
-
INSTANCE
- Mappings:
Namespace Name Mixin selector official aLcmd;a:Lcmd;intermediary field_28740Lnet/minecraft/class_5817;field_28740:Lnet/minecraft/class_5817;named INSTANCELnet/minecraft/world/gen/StructureWeightSampler;INSTANCE:Lnet/minecraft/world/gen/StructureWeightSampler;
-
STRUCTURE_WEIGHT_TABLE
private static final float[] STRUCTURE_WEIGHT_TABLE- Mappings:
Namespace Name Mixin selector official bLcmd;b:[Fintermediary field_28741Lnet/minecraft/class_5817;field_28741:[Fnamed STRUCTURE_WEIGHT_TABLELnet/minecraft/world/gen/StructureWeightSampler;STRUCTURE_WEIGHT_TABLE:[F
-
pieces
- Mappings:
Namespace Name Mixin selector official cLcmd;c:Lit/unimi/dsi/fastutil/objects/ObjectList;intermediary field_28742Lnet/minecraft/class_5817;field_28742:Lit/unimi/dsi/fastutil/objects/ObjectList;named piecesLnet/minecraft/world/gen/StructureWeightSampler;pieces:Lit/unimi/dsi/fastutil/objects/ObjectList;
-
junctions
- Mappings:
Namespace Name Mixin selector official dLcmd;d:Lit/unimi/dsi/fastutil/objects/ObjectList;intermediary field_28743Lnet/minecraft/class_5817;field_28743:Lit/unimi/dsi/fastutil/objects/ObjectList;named junctionsLnet/minecraft/world/gen/StructureWeightSampler;junctions:Lit/unimi/dsi/fastutil/objects/ObjectList;
-
pieceIterator
- Mappings:
Namespace Name Mixin selector official eLcmd;e:Lit/unimi/dsi/fastutil/objects/ObjectListIterator;intermediary field_28744Lnet/minecraft/class_5817;field_28744:Lit/unimi/dsi/fastutil/objects/ObjectListIterator;named pieceIteratorLnet/minecraft/world/gen/StructureWeightSampler;pieceIterator:Lit/unimi/dsi/fastutil/objects/ObjectListIterator;
-
junctionIterator
- Mappings:
Namespace Name Mixin selector official fLcmd;f:Lit/unimi/dsi/fastutil/objects/ObjectListIterator;intermediary field_28745Lnet/minecraft/class_5817;field_28745:Lit/unimi/dsi/fastutil/objects/ObjectListIterator;named junctionIteratorLnet/minecraft/world/gen/StructureWeightSampler;junctionIterator:Lit/unimi/dsi/fastutil/objects/ObjectListIterator;
-
-
Constructor Details
-
StructureWeightSampler
- Mappings:
Namespace Name Mixin selector official <init>Lcmd;<init>(Lbum;Lcjl;)Vintermediary <init>Lnet/minecraft/class_5817;<init>(Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Vnamed <init>Lnet/minecraft/world/gen/StructureWeightSampler;<init>(Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)V
-
StructureWeightSampler
private StructureWeightSampler()
-
-
Method Details
-
getWeight
protected double getWeight(int x, int y, int z)- Mappings:
Namespace Name Mixin selector official aLcmd;a(III)Dintermediary method_33638Lnet/minecraft/class_5817;method_33638(III)Dnamed getWeightLnet/minecraft/world/gen/StructureWeightSampler;getWeight(III)D
-
getStructureWeight
private static double getStructureWeight(int x, int y, int z)- Mappings:
Namespace Name Mixin selector official bLcmd;b(III)Dintermediary method_33641Lnet/minecraft/class_5817;method_33641(III)Dnamed getStructureWeightLnet/minecraft/world/gen/StructureWeightSampler;getStructureWeight(III)D
-
calculateStructureWeight
private static double calculateStructureWeight(int x, int y, int z)- Mappings:
Namespace Name Mixin selector official cLcmd;c(III)Dintermediary method_33642Lnet/minecraft/class_5817;method_33642(III)Dnamed calculateStructureWeightLnet/minecraft/world/gen/StructureWeightSampler;calculateStructureWeight(III)D
-