net.minecraft.loot.provider.intprovider

public record EnvironmentAttributeLootIntProvider

implements LootIntProvider, EnvironmentAttributeLootNumberProvider

net.minecraft.world.level.storage.loot.providers.number.ints.EnvironmentAttributeValue
net.minecraft.class_1_1672
net.minecraft.loot.provider.intprovider.EnvironmentAttributeLootIntProvider

Field summary

Modifier and TypeField
private final EnvironmentAttribute<?>
attribute
comp_1_405
attribute
private static final com.mojang.serialization.Codec<EnvironmentAttribute<?>>
ATTRIBUTE_CODEC
field_1_10504
INT_CONVERTIBLE_ATTRIBUTE_CODEC
public static final com.mojang.serialization.MapCodec<EnvironmentAttributeLootIntProvider>
MAP_CODEC
field_1_10505
CODEC

Constructor summary

ModifierConstructor
public (EnvironmentAttribute<?> attribute)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<EnvironmentAttributeLootIntProvider>
codec()
method_1_10380()
getCodec()
public int
getIntUnsafe(LootContext context)
method_1_10383(class_47 arg0)
nextInt(LootContext arg0)
private static <Value> int
getAsInt(LootContext context, EnvironmentAttribute<Value> attribute)
method_1_10443(class_47 arg0, class_12197<Value> arg1)
getInt(LootContext context, EnvironmentAttribute<Value> attribute)
public EnvironmentAttribute<?>
attribute()
comp_1_405()
attribute()
private static com.mojang.serialization.DataResult
lambda$static$0(EnvironmentAttribute arg0)
method_1_10444(class_12197 arg0)
method_1_10444(EnvironmentAttribute attribute)
private static String
lambda$static$1(EnvironmentAttribute arg0)
method_1_10445(class_12197 arg0)
method_1_10445(EnvironmentAttribute arg0)