net.minecraft.world.entity

public record DropChances

bvy
net.minecraft.world.entity.DropChances
net.minecraft.class_10582
net.minecraft.entity.EquipmentDropChances

Field summary

Modifier and TypeField
private final Map<EquipmentSlot, Float>
f
byEquipment
comp_3477
byEquipment
public static final float
a
DEFAULT_EQUIPMENT_DROP_CHANCE
field_55655
DEFAULT_CHANCE
public static final float
b
PRESERVE_ITEM_DROP_CHANCE_THRESHOLD
field_55656
UNHARMED_DROP_THRESHOLD
public static final int
c
PRESERVE_ITEM_DROP_CHANCE
field_55657
GUARANTEED_DROP_CHANCE
public static final DropChances
d
DEFAULT
field_55658
DEFAULT
public static final com.mojang.serialization.Codec<DropChances>
e
CODEC
field_55659
CODEC

Constructor summary

ModifierConstructor
public (Map<EquipmentSlot, Float> arg0)

Method summary

Modifier and TypeMethod
private static Map<EquipmentSlot, Float>
a(Map<bwk, Float> arg0)
filterDefaultValues(Map<EquipmentSlot, Float> arg0)
method_66238(Map<class_1304, Float> arg0)
removeDefaultChances(Map<EquipmentSlot, Float> byEquipment)
private static Map<EquipmentSlot, Float>
b(Map<bwk, Float> arg0)
toEnumMap(Map<EquipmentSlot, Float> arg0)
method_66241(Map<class_1304, Float> arg0)
fillDefaultChances(Map<EquipmentSlot, Float> byEquipment)
public DropChances
a(bwk arg0)
withGuaranteedDrop(EquipmentSlot arg0)
method_66234(class_1304 arg0)
setGuaranteed(EquipmentSlot slot)
public DropChances
a(bwk arg0, float arg1)
withEquipmentChance(EquipmentSlot arg0, float arg1)
method_66235(class_1304 arg0, float arg1)
setChance(EquipmentSlot slot, float chance)
public float
b(bwk arg0)
byEquipment(EquipmentSlot arg0)
method_66240(class_1304 arg0)
get(EquipmentSlot slot)
public boolean
c(bwk arg0)
isPreserved(EquipmentSlot arg0)
method_66242(class_1304 arg0)
dropsUnharmed(EquipmentSlot slot)
public Map<EquipmentSlot, Float>
a()
byEquipment()
comp_3477()
byEquipment()