Package net.minecraft.world.entity.npc
Class VillagerTrades.DyedArmorForEmeralds
java.lang.Object
net.minecraft.world.entity.npc.VillagerTrades.DyedArmorForEmeralds
- All Implemented Interfaces:
VillagerTrades.ItemListing
- Enclosing class:
VillagerTrades
public static class VillagerTrades.DyedArmorForEmeralds
extends Object
implements VillagerTrades.ItemListing
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Itemprivate final intprivate final intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionDyedArmorForEmeralds(Item pItem, int pValue) DyedArmorForEmeralds(Item pItem, int pValue, int pMaxUses, int pVillagerXp) -
Method Summary
Modifier and TypeMethodDescriptiongetOffer(Entity pTrader, RandomSource pRandom) private static DyeItemgetRandomDye(RandomSource pRandom)
-
Field Details
-
item
-
value
private final int value -
maxUses
private final int maxUses -
villagerXp
private final int villagerXp
-
-
Constructor Details
-
DyedArmorForEmeralds
-
DyedArmorForEmeralds
-
-
Method Details
-
getOffer
- Specified by:
getOfferin interfaceVillagerTrades.ItemListing
-
getRandomDye
-