Package net.minecraft.loot.functions
Class SetLootTable
- java.lang.Object
-
- net.minecraft.loot.LootFunction
-
- net.minecraft.loot.functions.SetLootTable
-
- All Implemented Interfaces:
java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
,ILootFunction
,IParameterized
public class SetLootTable extends LootFunction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SetLootTable.Serializer
-
Nested classes/interfaces inherited from class net.minecraft.loot.LootFunction
LootFunction.Builder<T extends LootFunction.Builder<T>>
-
Nested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
name
private long
seed
-
Fields inherited from class net.minecraft.loot.LootFunction
predicates
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SetLootTable(ILootCondition[] p_i51224_1_, ResourceLocation p_i51224_2_, long p_i51224_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LootFunctionType
getType()
ItemStack
run(ItemStack p_215859_1_, LootContext p_215859_2_)
void
validate(ValidationTracker p_225580_1_)
-
Methods inherited from class net.minecraft.loot.LootFunction
apply, simpleBuilder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.loot.IParameterized
getReferencedContextParams
-
-
-
-
Field Detail
-
name
private final ResourceLocation name
-
seed
private final long seed
-
-
Constructor Detail
-
SetLootTable
private SetLootTable(ILootCondition[] p_i51224_1_, ResourceLocation p_i51224_2_, long p_i51224_3_)
-
-
Method Detail
-
getType
public LootFunctionType getType()
-
run
public ItemStack run(ItemStack p_215859_1_, LootContext p_215859_2_)
- Specified by:
run
in classLootFunction
-
validate
public void validate(ValidationTracker p_225580_1_)
- Specified by:
validate
in interfaceIParameterized
- Overrides:
validate
in classLootFunction
-
-