Package net.minecraft.world.gen
Class StructureWeightSampler
java.lang.Object
net.minecraft.world.gen.StructureWeightSampler
- All Implemented Interfaces:
class_6910,class_6910.class_6913
Applies weights to noise values if they are near structures, placing terrain under them and hollowing out the space above them.
- Mappings:
Namespace Name official ctdintermediary net/minecraft/class_5817named net/minecraft/world/gen/StructureWeightSampler
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_6910
class_6910.class_6911, class_6910.class_6912, class_6910.class_6913, class_6910.class_6914, class_6910.class_6915 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static final intprivate final ObjectListIterator<JigsawJunction>private final ObjectList<JigsawJunction>private final ObjectListIterator<StructurePiece>private final ObjectList<StructurePiece>private static final float[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStructureWeightSampler(StructureAccessor structureAccessor, Chunk chunk) -
Method Summary
Modifier and TypeMethodDescriptionprivate static doublecalculateStructureWeight(int x, int y, int z) Calculates the structure weight for the given position.private static doublegetMagnitudeWeight(int x, int y, int z) private static doublegetStructureWeight(int x, int y, int z) Gets the structure weight from the array from the given position, or 0 if the position is out of bounds.doublemaxValue()doublemethod_40464(class_6910.class_6912 class_6912) doubleminValue()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.class_6910
method_40468, method_40471, method_40472, method_40473, method_40474, method_40475, method_40476Methods inherited from interface net.minecraft.class_6910.class_6913
method_40469, method_40470
-
Field Details
-
field_31461
public static final int field_31461- See Also:
- Mappings:
Namespace Name Mixin selector official aLctd;a:Iintermediary field_31461Lnet/minecraft/class_5817;field_31461:Inamed field_31461Lnet/minecraft/world/gen/StructureWeightSampler;field_31461:I
-
field_31462
private static final int field_31462- See Also:
- Mappings:
Namespace Name Mixin selector official bLctd;b:Iintermediary field_31462Lnet/minecraft/class_5817;field_31462:Inamed field_31462Lnet/minecraft/world/gen/StructureWeightSampler;field_31462:I
-
STRUCTURE_WEIGHT_TABLE
private static final float[] STRUCTURE_WEIGHT_TABLE- Mappings:
Namespace Name Mixin selector official cLctd;c:[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 dLctd;d: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 eLctd;e: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 fLctd;f: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 gLctd;g: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>Lctd;<init>(Lcbg;Lcqk;)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
-
-
Method Details
-
method_40464
- Specified by:
method_40464in interfaceclass_6910- Mappings:
Namespace Name Mixin selector official aLctj;a(Lctj$b;)Dintermediary method_40464Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)Dnamed method_40464Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)D
-
minValue
public double minValue()- Specified by:
minValuein interfaceclass_6910- Mappings:
Namespace Name Mixin selector official aLctj;a()Dintermediary comp_377Lnet/minecraft/class_6910;comp_377()Dnamed minValueLnet/minecraft/class_6910;minValue()D
-
maxValue
public double maxValue()- Specified by:
maxValuein interfaceclass_6910- Mappings:
Namespace Name Mixin selector official bLctj;b()Dintermediary comp_378Lnet/minecraft/class_6910;comp_378()Dnamed maxValueLnet/minecraft/class_6910;maxValue()D
-
getMagnitudeWeight
private static double getMagnitudeWeight(int x, int y, int z) - Mappings:
Namespace Name Mixin selector official aLctd;a(III)Dintermediary method_33832Lnet/minecraft/class_5817;method_33832(III)Dnamed getMagnitudeWeightLnet/minecraft/world/gen/StructureWeightSampler;getMagnitudeWeight(III)D
-
getStructureWeight
private static double getStructureWeight(int x, int y, int z) Gets the structure weight from the array from the given position, or 0 if the position is out of bounds.- Mappings:
Namespace Name Mixin selector official bLctd;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) Calculates the structure weight for the given position.The weight increases as x and z approach
(0, 0), and positive y values make the weight negative while negative y values make the weight positive.- Mappings:
Namespace Name Mixin selector official cLctd;c(III)Dintermediary method_33642Lnet/minecraft/class_5817;method_33642(III)Dnamed calculateStructureWeightLnet/minecraft/world/gen/StructureWeightSampler;calculateStructureWeight(III)D
-