Package net.minecraft.world
Class RandomSequences
java.lang.Object
net.minecraft.world.level.saveddata.SavedData
net.minecraft.world.RandomSequences
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
Nested classes/interfaces inherited from class net.minecraft.world.level.saveddata.SavedData
SavedData.Factory<T extends SavedData>
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
private static final org.slf4j.Logger
private int
private final Map
<ResourceLocation, RandomSequence> private final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
clear()
private RandomSequence
createSequence
(ResourceLocation p_295796_) private RandomSequence
createSequence
(ResourceLocation p_295614_, int p_296284_, boolean p_296271_, boolean p_295917_) static SavedData.Factory
<RandomSequences> factory
(long p_294688_) void
forAllSequences
(BiConsumer<ResourceLocation, RandomSequence> p_294252_) get
(ResourceLocation p_287751_) private static boolean
getBooleanWithDefault
(CompoundTag p_296109_, String p_295934_, boolean p_295516_) static RandomSequences
load
(long p_287756_, CompoundTag p_287587_) void
reset
(ResourceLocation p_296099_) void
reset
(ResourceLocation p_294608_, int p_295700_, boolean p_296000_, boolean p_294735_) save
(CompoundTag p_287658_, HolderLookup.Provider p_323500_) void
setSeedDefaults
(int p_294511_, boolean p_294255_, boolean p_295889_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
worldSeed
private final long worldSeed -
salt
private int salt -
includeWorldSeed
private boolean includeWorldSeed -
includeSequenceId
private boolean includeSequenceId -
sequences
-
-
Constructor Details
-
RandomSequences
public RandomSequences(long p_287622_)
-
-
Method Details
-
factory
-
get
-
createSequence
-
createSequence
private RandomSequence createSequence(ResourceLocation p_295614_, int p_296284_, boolean p_296271_, boolean p_295917_) -
forAllSequences
-
setSeedDefaults
public void setSeedDefaults(int p_294511_, boolean p_294255_, boolean p_295889_) -
save
-
getBooleanWithDefault
private static boolean getBooleanWithDefault(CompoundTag p_296109_, String p_295934_, boolean p_295516_) -
load
-
clear
public int clear() -
reset
-
reset
-