Class RealPlayerCondition

java.lang.Object
vazkii.botania.common.loot.RealPlayerCondition
All Implemented Interfaces:
Predicate<net.minecraft.world.level.storage.loot.LootContext>, net.minecraft.world.level.storage.loot.LootContextUser, net.minecraft.world.level.storage.loot.predicates.LootItemCondition

public class RealPlayerCondition extends Object implements net.minecraft.world.level.storage.loot.predicates.LootItemCondition
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition

    net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
  • Field Summary

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

    Fields inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition

    DIRECT_CODEC, TYPED_CODEC
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Set<net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>>
     
    @NotNull net.minecraft.world.level.storage.loot.predicates.LootItemConditionType
     
    boolean
    test(net.minecraft.world.level.storage.loot.LootContext lootContext)
     

    Methods inherited from class java.lang.Object

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

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

    validate

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Field Details

  • Method Details

    • test

      public boolean test(net.minecraft.world.level.storage.loot.LootContext lootContext)
      Specified by:
      test in interface Predicate<net.minecraft.world.level.storage.loot.LootContext>
    • getReferencedContextParams

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

      @NotNull public @NotNull net.minecraft.world.level.storage.loot.predicates.LootItemConditionType getType()
      Specified by:
      getType in interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition