YATS/Forge Documentation
|
Classes | |
interface | IVillageCreationHandler |
interface | IVillageTradeHandler |
Public Member Functions | |
void | registerVillagerType (int villagerId, String villagerSkin) |
void | registerVillageCreationHandler (IVillageCreationHandler handler) |
void | registerVillageTradeHandler (int villagerId, IVillageTradeHandler handler) |
Static Public Member Functions | |
static VillagerRegistry | instance () |
static String | getVillagerSkin (int villagerType, String defaultSkin) |
static Collection< Integer > | getRegisteredVillagers () |
static void | manageVillagerTrades (MerchantRecipeList recipeList, EntityVillager villager, int villagerType, Random random) |
static void | addExtraVillageComponents (ArrayList components, Random random, int i) |
static Object | getVillageComponent (StructureVillagePieceWeight villagePiece, ComponentVillageStartPiece startPiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5) |
static void | addEmeraldBuyRecipe (EntityVillager villager, MerchantRecipeList list, Random random, Item item, float chance, int min, int max) |
static void | addEmeraldSellRecipe (EntityVillager villager, MerchantRecipeList list, Random random, Item item, float chance, int min, int max) |
static void | applyRandomTrade (EntityVillager villager, Random rand) |
Registry for villager trading control
|
static |
|
static |
|
static |
|
static |
|
static |
Returns a list of all added villager types
|
static |
|
static |
Callback to setup new villager types
villagerType | |
defaultSkin |
|
static |
|
static |
Callback to handle trade setup for villagers
recipeList | |
villager | |
villagerType | |
random |
void cpw.mods.fml.common.registry.VillagerRegistry.registerVillageCreationHandler | ( | IVillageCreationHandler | handler) |
Register a new village creation handler
handler |
void cpw.mods.fml.common.registry.VillagerRegistry.registerVillagerType | ( | int | villagerId, |
String | villagerSkin | ||
) |
Register a new skin for a villager type
villagerId | |
villagerSkin |
void cpw.mods.fml.common.registry.VillagerRegistry.registerVillageTradeHandler | ( | int | villagerId, |
IVillageTradeHandler | handler | ||
) |
Register a new villager trading handler for the specified villager type
villagerId | |
handler |