Interface EntityNumberProvider
- All Superinterfaces:
net.minecraft.world.level.storage.loot.LootContextUser
- All Known Implementing Classes:
EntityPredicateNumberProvider,EquipmentNumberProvider,ExperienceLevelNumberProvider
public interface EntityNumberProvider
extends net.minecraft.world.level.storage.loot.LootContextUser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EntityNumberProvider> static final com.mojang.serialization.Codec<EntityNumberProvider> UseCODECinstead. -
Method Summary
Modifier and TypeMethodDescriptionfloatgetFloat(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext lootContext) default floatgetMaxFloat(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context) getType()Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Field Details
-
TYPED_CODEC
UseCODECinstead. -
CODEC
-
-
Method Details
-
getFloat
float getFloat(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext lootContext) -
getEstimate
NumberEstimate getEstimate() -
getMaxFloat
default float getMaxFloat(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context) -
getType
LootEntityNumberProviderType getType()
-