Class FillPlayerHead

java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.FillPlayerHead
All Implemented Interfaces:
BiFunction<ItemStack,LootContext,ItemStack>, LootItemFunction, LootContextUser

public class FillPlayerHead extends LootItemConditionalFunction
LootItemFunction that applies the "SkullOwner" NBT tag to any player heads based on the given LootContext.EntityTarget. If the given target does not resolve to a player, nothing happens.