Package net.minecraft.loot.functions
Class CopyBlockState
java.lang.Object
net.minecraft.loot.LootFunction
net.minecraft.loot.functions.CopyBlockState
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> ILootFunction
,IParameterized
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface net.minecraft.loot.functions.ILootFunction
ILootFunction.IBuilder
-
Field Summary
Fields inherited from class net.minecraft.loot.LootFunction
predicates
-
Constructor Summary
ModifierConstructorDescriptionprivate
CopyBlockState
(ILootCondition[] p_i225890_1_, Block p_i225890_2_, Set<Property<?>> p_i225890_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic CopyBlockState.Builder
Set<LootParameter<?>>
getType()
protected ItemStack
run
(ItemStack p_215859_1_, LootContext p_215859_2_) private static <T extends Comparable<T>>
Stringserialize
(BlockState p_227546_0_, Property<T> p_227546_1_) Methods inherited from class net.minecraft.loot.LootFunction
apply, simpleBuilder, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
block
-
properties
-
-
Constructor Details
-
CopyBlockState
private CopyBlockState(ILootCondition[] p_i225890_1_, Block p_i225890_2_, Set<Property<?>> p_i225890_3_)
-
-
Method Details
-
getType
-
getReferencedContextParams
-
run
- Specified by:
run
in classLootFunction
-
copyState
-
serialize
private static <T extends Comparable<T>> String serialize(BlockState p_227546_0_, Property<T> p_227546_1_)
-