Class LootFunctionCopyMechanicalSqueezerTank

java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
org.cyclops.integrateddynamics.loot.functions.LootFunctionCopyMechanicalSqueezerTank
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, net.minecraft.world.level.storage.loot.Validatable

public class LootFunctionCopyMechanicalSqueezerTank extends net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
Copies the mechanical squeezer tank.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction

    net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Builder<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<LootFunctionCopyMechanicalSqueezerTank>
     

    Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction

    predicates
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    LootFunctionCopyMechanicalSqueezerTank(List<net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditionsIn)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction>
     
    net.minecraft.world.item.ItemStack
    run(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.storage.loot.LootContext lootContext)
     

    Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction

    apply, commonFields, simpleBuilder, validate

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface BiFunction

    andThen

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

    getReferencedContextParams
  • Field Details

  • Constructor Details

    • LootFunctionCopyMechanicalSqueezerTank

      protected LootFunctionCopyMechanicalSqueezerTank(List<net.minecraft.world.level.storage.loot.predicates.LootItemCondition> conditionsIn)
  • Method Details

    • run

      public net.minecraft.world.item.ItemStack run(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.storage.loot.LootContext lootContext)
      Specified by:
      run in class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
    • codec

      public com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction> codec()
      Specified by:
      codec in interface net.minecraft.world.level.storage.loot.functions.LootItemFunction
      Specified by:
      codec in class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction