Package net.minecraft.structure.rule
Class LinearPosRuleTest
java.lang.Object
net.minecraft.structure.rule.PosRuleTest
net.minecraft.structure.rule.LinearPosRuleTest
public class LinearPosRuleTest extends PosRuleTest
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<LinearPosRuleTest>CODECprivate floatmaxChanceprivate intmaxDistanceprivate floatminChanceprivate intminDistanceFields inherited from class net.minecraft.structure.rule.PosRuleTest
field_25007 -
Constructor Summary
Constructors Constructor Description LinearPosRuleTest(float minChance, float maxChance, int minDistance, int maxDistance) -
Method Summary
-
Field Details
-
CODEC
-
minChance
private final float minChance -
maxChance
private final float maxChance -
minDistance
private final int minDistance -
maxDistance
private final int maxDistance
-
-
Constructor Details
-
LinearPosRuleTest
public LinearPosRuleTest(float minChance, float maxChance, int minDistance, int maxDistance)
-
-
Method Details
-
test
- Specified by:
testin classPosRuleTest
-
getType
- Specified by:
getTypein classPosRuleTest
-