Package net.minecraft.loot.functions
Class CopyBlockState
- java.lang.Object
-
- net.minecraft.loot.LootFunction
-
- net.minecraft.loot.functions.CopyBlockState
-
- All Implemented Interfaces:
java.util.function.BiFunction<ItemStack,LootContext,ItemStack>,ILootFunction,IParameterized
public class CopyBlockState extends LootFunction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCopyBlockState.Builderstatic classCopyBlockState.Serializer-
Nested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private Blockblockprivate java.util.Set<Property<?>>properties-
Fields inherited from class net.minecraft.loot.LootFunction
predicates
-
-
Constructor Summary
Constructors Modifier Constructor Description privateCopyBlockState(ILootCondition[] p_i225890_1_, Block p_i225890_2_, java.util.Set<Property<?>> p_i225890_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CopyBlockState.BuildercopyState(Block p_227545_0_)java.util.Set<LootParameter<?>>getReferencedContextParams()LootFunctionTypegetType()protected ItemStackrun(ItemStack p_215859_1_, LootContext p_215859_2_)private static <T extends java.lang.Comparable<T>>
java.lang.Stringserialize(BlockState p_227546_0_, Property<T> p_227546_1_)-
Methods inherited from class net.minecraft.loot.LootFunction
apply, simpleBuilder, validate
-
-
-
-
Constructor Detail
-
CopyBlockState
private CopyBlockState(ILootCondition[] p_i225890_1_, Block p_i225890_2_, java.util.Set<Property<?>> p_i225890_3_)
-
-
Method Detail
-
getType
public LootFunctionType getType()
-
getReferencedContextParams
public java.util.Set<LootParameter<?>> getReferencedContextParams()
-
run
protected ItemStack run(ItemStack p_215859_1_, LootContext p_215859_2_)
- Specified by:
runin classLootFunction
-
copyState
public static CopyBlockState.Builder copyState(Block p_227545_0_)
-
serialize
private static <T extends java.lang.Comparable<T>> java.lang.String serialize(BlockState p_227546_0_, Property<T> p_227546_1_)
-
-