Class FixedBogglePatternGenerator
java.lang.Object
com.petrolpark.core.recipe.bogglepattern.generator.FixedBogglePatternGenerator
- All Implemented Interfaces:
IBogglePatternGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FixedBogglePatternGenerator> static final com.mojang.serialization.MapCodec<FixedBogglePatternGenerator> Fields inherited from interface com.petrolpark.core.recipe.bogglepattern.generator.IBogglePatternGenerator
NETWORK_CODEC, POSITIONS, TYPED_CODEC, TYPED_NETWORK_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionFixedBogglePatternGenerator(int pattern) FixedBogglePatternGenerator(List<String> patternString) -
Method Summary
-
Field Details
-
CODEC
-
DIRECT_CODEC
-
-
Constructor Details
-
FixedBogglePatternGenerator
public FixedBogglePatternGenerator(int pattern) -
FixedBogglePatternGenerator
-
-
Method Details
-
getPattern
public int getPattern() -
toPatternString
-
generate
public int generate(net.minecraft.util.RandomSource random) - Specified by:
generatein interfaceIBogglePatternGenerator
-
getType
- Specified by:
getTypein interfaceIBogglePatternGenerator
-