Class SetTeamLootItemFunction

java.lang.Object
com.petrolpark.core.team.SetTeamLootItemFunction
All Implemented Interfaces:
BiFunction<net.minecraft.world.item.ItemStack,net.minecraft.world.level.storage.loot.LootContext,net.minecraft.world.item.ItemStack>, net.minecraft.world.level.storage.loot.functions.LootItemFunction, net.minecraft.world.level.storage.loot.LootContextUser

public final class SetTeamLootItemFunction extends Object implements net.minecraft.world.level.storage.loot.functions.LootItemFunction
Set the ITeam Component of ItemStacks to the context Team. No arguments.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.functions.LootItemFunction

    net.minecraft.world.level.storage.loot.functions.LootItemFunction.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    apply(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext context)
     
    Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>>
     
    net.minecraft.world.level.storage.loot.functions.LootItemFunctionType<SetTeamLootItemFunction>
     

    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

    Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser

    validate
  • Constructor Details

    • SetTeamLootItemFunction

      public SetTeamLootItemFunction()
  • Method Details

    • apply

      public net.minecraft.world.item.ItemStack apply(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.storage.loot.LootContext context)
      Specified by:
      apply in interface BiFunction<net.minecraft.world.item.ItemStack,net.minecraft.world.level.storage.loot.LootContext,net.minecraft.world.item.ItemStack>
    • getReferencedContextParams

      public Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>> getReferencedContextParams()
      Specified by:
      getReferencedContextParams in interface net.minecraft.world.level.storage.loot.LootContextUser
    • getType

      public net.minecraft.world.level.storage.loot.functions.LootItemFunctionType<SetTeamLootItemFunction> getType()
      Specified by:
      getType in interface net.minecraft.world.level.storage.loot.functions.LootItemFunction