Class LootContext.Builder
java.lang.Object
net.minecraft.world.level.storage.loot.LootContext.Builder
- Enclosing class:
LootContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LootParamsprivate @Nullable IdentifierNeo: holds the loot table ID for persistence through the copy constructorprivate @Nullable RandomSource -
Constructor Summary
ConstructorsConstructorDescriptionBuilder(LootContext context) Neo: copy constructorBuilder(LootParams params) -
Method Summary
Modifier and TypeMethodDescriptioncreate(Optional<Identifier> randomSequenceKey) getLevel()withOptionalRandomSeed(long seed) withOptionalRandomSource(RandomSource randomSource) withQueriedLootTableId(Identifier queriedLootTableId)
-
Field Details
-
params
-
random
-
queriedLootTableId
Neo: holds the loot table ID for persistence through the copy constructor
-
-
Constructor Details
-
Builder
Neo: copy constructor -
Builder
-
-
Method Details
-
withOptionalRandomSeed
-
withOptionalRandomSource
-
withQueriedLootTableId
-
getLevel
-
create
-