Class TemperatureLootCondition

java.lang.Object
com.github.thedeathlycow.thermoo.api.entity.v1.predicate.TemperatureLootCondition
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, net.minecraft.world.level.storage.loot.Validatable

public final class TemperatureLootCondition extends Object implements net.minecraft.world.level.storage.loot.predicates.LootItemCondition
Loot condition used to test the temperature values of an entity in a predicate. Only works for entities that implement TemperatureAware, which is all instances LivingEntity. All other entities will cause this condition to be false.
  • 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<TemperatureLootCondition>
     

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

    DIRECT_CODEC, TYPED_CODEC
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
    builder(net.minecraft.advancements.criterion.MinMaxBounds.Doubles scale)
     
    static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
    builder(net.minecraft.advancements.criterion.MinMaxBounds.Ints value)
     
    com.mojang.serialization.MapCodec<TemperatureLootCondition>
     
    net.minecraft.advancements.criterion.MinMaxBounds.Doubles
    Range of soaking scale that are required for this condition to pass.
    boolean
    test(net.minecraft.world.level.storage.loot.LootContext lootContext)
     
    net.minecraft.advancements.criterion.MinMaxBounds.Ints
    Range of soaking ticks that are required for this condition to pass.

    Methods inherited from class Object

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

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

    getReferencedContextParams, validate

    Methods inherited from interface Predicate

    and, negate, or
  • Field Details

  • Method Details

    • codec

      public com.mojang.serialization.MapCodec<TemperatureLootCondition> codec()
      Specified by:
      codec in interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
    • 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>
    • builder

      public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder builder(net.minecraft.advancements.criterion.MinMaxBounds.Ints value)
    • builder

      public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder builder(net.minecraft.advancements.criterion.MinMaxBounds.Doubles scale)
    • value

      public net.minecraft.advancements.criterion.MinMaxBounds.Ints value()
      Range of soaking ticks that are required for this condition to pass.
    • scale

      public net.minecraft.advancements.criterion.MinMaxBounds.Doubles scale()
      Range of soaking scale that are required for this condition to pass.