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_299723_) private RandomSequence
createSequence
(ResourceLocation p_299881_, int p_299267_, boolean p_300525_, boolean p_297272_) static SavedData.Factory
<RandomSequences> factory
(long p_297402_) void
forAllSequences
(BiConsumer<ResourceLocation, RandomSequence> p_299883_) get
(ResourceLocation p_287751_) private static boolean
getBooleanWithDefault
(CompoundTag p_297418_, String p_298953_, boolean p_297237_) static RandomSequences
load
(long p_287756_, CompoundTag p_287587_) void
reset
(ResourceLocation p_298741_) void
reset
(ResourceLocation p_301350_, int p_298554_, boolean p_298049_, boolean p_301283_) save
(CompoundTag p_287658_, HolderLookup.Provider p_332975_) void
setSeedDefaults
(int p_299968_, boolean p_298395_, boolean p_298518_)
-
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_299881_, int p_299267_, boolean p_300525_, boolean p_297272_) -
forAllSequences
-
setSeedDefaults
public void setSeedDefaults(int p_299968_, boolean p_298395_, boolean p_298518_) -
save
-
getBooleanWithDefault
private static boolean getBooleanWithDefault(CompoundTag p_297418_, String p_298953_, boolean p_297237_) -
load
-
clear
public int clear() -
reset
-
reset
-