Interface EntityNumberProvider
- All Superinterfaces:
net.minecraft.world.level.storage.loot.LootContextUser
- All Known Implementing Classes:
AttributeEntityNumberProvider,EntityPredicateNumberProvider,EquipmentNumberProvider,ExperienceLevelNumberProvider,FlatEntityNumberProvider
@ParametersAreNonnullByDefault
public interface EntityNumberProvider
extends net.minecraft.world.level.storage.loot.LootContextUser
Entity-specific version of
NumberProvider.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EntityNumberProvider> static final com.mojang.serialization.Codec<EntityNumberProvider> UseCODECinstead. -
Method Summary
Modifier and TypeMethodDescriptionGet the approximate bounds for theoutputof thisEntityNumberProvideron a best-effort basis.floatgetFloat(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) 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()Get the approximate bounds for theoutputof thisEntityNumberProvideron a best-effort basis.- See Also:
-
getMaxFloat
@Experimental default float getMaxFloat(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.storage.loot.LootContext context) -
getEntityNumberProviderType
LootEntityNumberProviderType getEntityNumberProviderType()
-