Package net.minecraft.world.entity.npc
Class VillagerTrades
java.lang.Object
net.minecraft.world.entity.npc.VillagerTrades
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static interface
static class
static class
static class
static class
static class
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final VillagerTrades.TreasureMapForEmeralds
static final Map
<VillagerProfession, it.unimi.dsi.fastutil.ints.Int2ObjectMap<VillagerTrades.ItemListing[]>> static final List
<org.apache.commons.lang3.tuple.Pair<VillagerTrades.ItemListing[], Integer>> private static final float
private static final VillagerTrades.TreasureMapForEmeralds
private static final float
private static final VillagerTrades.TreasureMapForEmeralds
private static final VillagerTrades.TreasureMapForEmeralds
private static final VillagerTrades.TreasureMapForEmeralds
private static final VillagerTrades.TreasureMapForEmeralds
private static final VillagerTrades.TreasureMapForEmeralds
static final Map
<VillagerProfession, it.unimi.dsi.fastutil.ints.Int2ObjectMap<VillagerTrades.ItemListing[]>> private static final int
static final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<VillagerTrades.ItemListing[]> private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static VillagerTrades.ItemListing
commonBooks
(int p_301375_) private static ItemStack
private static ItemCost
potionCost
(Holder<Potion> p_330304_) private static VillagerTrades.ItemListing
private static it.unimi.dsi.fastutil.ints.Int2ObjectMap
<VillagerTrades.ItemListing[]> toIntMap
(com.google.common.collect.ImmutableMap<Integer, VillagerTrades.ItemListing[]> p_35631_)
-
Field Details
-
DEFAULT_SUPPLY
private static final int DEFAULT_SUPPLY- See Also:
-
COMMON_ITEMS_SUPPLY
private static final int COMMON_ITEMS_SUPPLY- See Also:
-
UNCOMMON_ITEMS_SUPPLY
private static final int UNCOMMON_ITEMS_SUPPLY- See Also:
-
XP_LEVEL_1_SELL
private static final int XP_LEVEL_1_SELL- See Also:
-
XP_LEVEL_1_BUY
private static final int XP_LEVEL_1_BUY- See Also:
-
XP_LEVEL_2_SELL
private static final int XP_LEVEL_2_SELL- See Also:
-
XP_LEVEL_2_BUY
private static final int XP_LEVEL_2_BUY- See Also:
-
XP_LEVEL_3_SELL
private static final int XP_LEVEL_3_SELL- See Also:
-
XP_LEVEL_3_BUY
private static final int XP_LEVEL_3_BUY- See Also:
-
XP_LEVEL_4_SELL
private static final int XP_LEVEL_4_SELL- See Also:
-
XP_LEVEL_4_BUY
private static final int XP_LEVEL_4_BUY- See Also:
-
XP_LEVEL_5_TRADE
private static final int XP_LEVEL_5_TRADE- See Also:
-
LOW_TIER_PRICE_MULTIPLIER
private static final float LOW_TIER_PRICE_MULTIPLIER- See Also:
-
HIGH_TIER_PRICE_MULTIPLIER
private static final float HIGH_TIER_PRICE_MULTIPLIER- See Also:
-
TRADES
public static final Map<VillagerProfession,it.unimi.dsi.fastutil.ints.Int2ObjectMap<VillagerTrades.ItemListing[]>> TRADES -
WANDERING_TRADER_TRADES
public static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<VillagerTrades.ItemListing[]> WANDERING_TRADER_TRADES -
DESERT_MAP
-
SAVANNA_MAP
-
PLAINS_MAP
-
TAIGA_MAP
-
SNOWY_MAP
-
JUNGLE_MAP
-
SWAMP_MAP
-
EXPERIMENTAL_TRADES
public static final Map<VillagerProfession,it.unimi.dsi.fastutil.ints.Int2ObjectMap<VillagerTrades.ItemListing[]>> EXPERIMENTAL_TRADES -
EXPERIMENTAL_WANDERING_TRADER_TRADES
public static final List<org.apache.commons.lang3.tuple.Pair<VillagerTrades.ItemListing[],Integer>> EXPERIMENTAL_WANDERING_TRADER_TRADES
-
-
Constructor Details
-
VillagerTrades
public VillagerTrades()
-
-
Method Details
-
commonBooks
-
specialBooks
-
toIntMap
private static it.unimi.dsi.fastutil.ints.Int2ObjectMap<VillagerTrades.ItemListing[]> toIntMap(com.google.common.collect.ImmutableMap<Integer, VillagerTrades.ItemListing[]> p_35631_) -
potionCost
-
potion
-