Package net.minecraft.util.math.random
Class RandomSequencesState
java.lang.Object
net.minecraft.world.PersistentState
net.minecraft.util.math.random.RandomSequencesState
- Mappings:
Namespace Name named net/minecraft/util/math/random/RandomSequencesState
intermediary net/minecraft/class_8565
official brd
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.PersistentState
PersistentState.Type<T extends PersistentState>
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
private static final Logger
private int
private final long
private final Map
<Identifier, RandomSequence> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate RandomSequence
private RandomSequence
createSequence
(Identifier id, int salt, boolean includeWorldSeed, boolean includeSequenceId) void
forEachSequence
(BiConsumer<Identifier, RandomSequence> consumer) static RandomSequencesState
fromNbt
(long seed, NbtCompound nbt) private static boolean
getBooleanFromNbtOrFallback
(NbtCompound nbt, String key, boolean fallback) getPersistentStateType
(long seed) void
reset
(Identifier id) void
reset
(Identifier id, int salt, boolean includeWorldSeed, boolean includeSequenceId) int
resetAll()
void
setDefaultParameters
(int salt, boolean includeWorldSeed, boolean includeSequenceId) writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Methods inherited from class net.minecraft.world.PersistentState
isDirty, markDirty, save, setDirty
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/util/math/random/RandomSequencesState;LOGGER:Lorg/slf4j/Logger;
intermediary field_44861
Lnet/minecraft/class_8565;field_44861:Lorg/slf4j/Logger;
official a
Lbrd;a:Lorg/slf4j/Logger;
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector named seed
Lnet/minecraft/util/math/random/RandomSequencesState;seed:J
intermediary field_44862
Lnet/minecraft/class_8565;field_44862:J
official b
Lbrd;b:J
-
salt
private int salt- Mappings:
Namespace Name Mixin selector named salt
Lnet/minecraft/util/math/random/RandomSequencesState;salt:I
intermediary field_45100
Lnet/minecraft/class_8565;field_45100:I
official c
Lbrd;c:I
-
includeWorldSeed
private boolean includeWorldSeed- Mappings:
Namespace Name Mixin selector named includeWorldSeed
Lnet/minecraft/util/math/random/RandomSequencesState;includeWorldSeed:Z
intermediary field_45101
Lnet/minecraft/class_8565;field_45101:Z
official d
Lbrd;d:Z
-
includeSequenceId
private boolean includeSequenceId- Mappings:
Namespace Name Mixin selector named includeSequenceId
Lnet/minecraft/util/math/random/RandomSequencesState;includeSequenceId:Z
intermediary field_45102
Lnet/minecraft/class_8565;field_45102:Z
official e
Lbrd;e:Z
-
sequences
- Mappings:
Namespace Name Mixin selector named sequences
Lnet/minecraft/util/math/random/RandomSequencesState;sequences:Ljava/util/Map;
intermediary field_44863
Lnet/minecraft/class_8565;field_44863:Ljava/util/Map;
official f
Lbrd;f:Ljava/util/Map;
-
-
Constructor Details
-
RandomSequencesState
public RandomSequencesState(long seed) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/math/random/RandomSequencesState;<init>(J)V
intermediary <init>
Lnet/minecraft/class_8565;<init>(J)V
official <init>
Lbrd;<init>(J)V
-
-
Method Details
-
getPersistentStateType
- Mappings:
Namespace Name Mixin selector named getPersistentStateType
Lnet/minecraft/util/math/random/RandomSequencesState;getPersistentStateType(J)Lnet/minecraft/world/PersistentState$Type;
intermediary method_52511
Lnet/minecraft/class_8565;method_52511(J)Lnet/minecraft/class_18$class_8645;
official a
Lbrd;a(J)Lepe$a;
-
getOrCreate
- Mappings:
Namespace Name Mixin selector named getOrCreate
Lnet/minecraft/util/math/random/RandomSequencesState;getOrCreate(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/math/random/Random;
intermediary method_51843
Lnet/minecraft/class_8565;method_51843(Lnet/minecraft/class_2960;)Lnet/minecraft/class_5819;
official a
Lbrd;a(Lalf;)Lazh;
-
createSequence
- Mappings:
Namespace Name Mixin selector named createSequence
Lnet/minecraft/util/math/random/RandomSequencesState;createSequence(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/math/random/RandomSequence;
intermediary method_52519
Lnet/minecraft/class_8565;method_52519(Lnet/minecraft/class_2960;)Lnet/minecraft/class_8564;
official c
Lbrd;c(Lalf;)Lbrc;
-
createSequence
private RandomSequence createSequence(Identifier id, int salt, boolean includeWorldSeed, boolean includeSequenceId) - Mappings:
Namespace Name Mixin selector named createSequence
Lnet/minecraft/util/math/random/RandomSequencesState;createSequence(Lnet/minecraft/util/Identifier;IZZ)Lnet/minecraft/util/math/random/RandomSequence;
intermediary method_52518
Lnet/minecraft/class_8565;method_52518(Lnet/minecraft/class_2960;IZZ)Lnet/minecraft/class_8564;
official b
Lbrd;b(Lalf;IZZ)Lbrc;
-
forEachSequence
- Mappings:
Namespace Name Mixin selector named forEachSequence
Lnet/minecraft/util/math/random/RandomSequencesState;forEachSequence(Ljava/util/function/BiConsumer;)V
intermediary method_52513
Lnet/minecraft/class_8565;method_52513(Ljava/util/function/BiConsumer;)V
official a
Lbrd;a(Ljava/util/function/BiConsumer;)V
-
setDefaultParameters
public void setDefaultParameters(int salt, boolean includeWorldSeed, boolean includeSequenceId) - Mappings:
Namespace Name Mixin selector named setDefaultParameters
Lnet/minecraft/util/math/random/RandomSequencesState;setDefaultParameters(IZZ)V
intermediary method_52510
Lnet/minecraft/class_8565;method_52510(IZZ)V
official a
Lbrd;a(IZZ)V
-
writeNbt
- Specified by:
writeNbt
in classPersistentState
- Mappings:
Namespace Name Mixin selector named writeNbt
Lnet/minecraft/world/PersistentState;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;
intermediary method_75
Lnet/minecraft/class_18;method_75(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;
official a
Lepe;a(Lus;Ljk$a;)Lus;
-
getBooleanFromNbtOrFallback
- Mappings:
Namespace Name Mixin selector named getBooleanFromNbtOrFallback
Lnet/minecraft/util/math/random/RandomSequencesState;getBooleanFromNbtOrFallback(Lnet/minecraft/nbt/NbtCompound;Ljava/lang/String;Z)Z
intermediary method_52514
Lnet/minecraft/class_8565;method_52514(Lnet/minecraft/class_2487;Ljava/lang/String;Z)Z
official a
Lbrd;a(Lus;Ljava/lang/String;Z)Z
-
fromNbt
- Mappings:
Namespace Name Mixin selector named fromNbt
Lnet/minecraft/util/math/random/RandomSequencesState;fromNbt(JLnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/util/math/random/RandomSequencesState;
intermediary method_51842
Lnet/minecraft/class_8565;method_51842(JLnet/minecraft/class_2487;)Lnet/minecraft/class_8565;
official a
Lbrd;a(JLus;)Lbrd;
-
resetAll
public int resetAll()- Mappings:
Namespace Name Mixin selector named resetAll
Lnet/minecraft/util/math/random/RandomSequencesState;resetAll()I
intermediary method_52509
Lnet/minecraft/class_8565;method_52509()I
official a
Lbrd;a()I
-
reset
- Mappings:
Namespace Name Mixin selector named reset
Lnet/minecraft/util/math/random/RandomSequencesState;reset(Lnet/minecraft/util/Identifier;)V
intermediary method_52517
Lnet/minecraft/class_8565;method_52517(Lnet/minecraft/class_2960;)V
official b
Lbrd;b(Lalf;)V
-
reset
- Mappings:
Namespace Name Mixin selector named reset
Lnet/minecraft/util/math/random/RandomSequencesState;reset(Lnet/minecraft/util/Identifier;IZZ)V
intermediary method_52512
Lnet/minecraft/class_8565;method_52512(Lnet/minecraft/class_2960;IZZ)V
official a
Lbrd;a(Lalf;IZZ)V
-