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
FieldsModifier and TypeFieldDescriptionstatic 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 TypeMethodDescriptionstatic net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderbuilder(net.minecraft.advancements.criterion.MinMaxBounds.Doubles scale) static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderbuilder(net.minecraft.advancements.criterion.MinMaxBounds.Ints value) com.mojang.serialization.MapCodec<TemperatureLootCondition> codec()net.minecraft.advancements.criterion.MinMaxBounds.Doublesscale()Range of soaking scale that are required for this condition to pass.booleantest(net.minecraft.world.level.storage.loot.LootContext lootContext) net.minecraft.advancements.criterion.MinMaxBounds.Intsvalue()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, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Field Details
-
CODEC
-
-
Method Details
-
codec
- Specified by:
codecin interfacenet.minecraft.world.level.storage.loot.predicates.LootItemCondition
-
test
-
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.
-