public static class VillagerRegistry.VillagerProfession extends IForgeRegistryEntry.Impl<VillagerRegistry.VillagerProfession>
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
private java.util.List<VillagerRegistry.VillagerCareer> |
careers |
private ResourceLocation |
name |
private ResourceLocation |
texture |
private ResourceLocation |
zombie |
delegate
Constructor and Description |
---|
VillagerProfession(java.lang.String name,
java.lang.String texture,
java.lang.String zombie) |
Modifier and Type | Method and Description |
---|---|
VillagerRegistry.VillagerCareer |
getCareer(int id) |
int |
getRandomCareer(java.util.Random rand) |
ResourceLocation |
getSkin() |
ResourceLocation |
getZombieSkin() |
private void |
register(VillagerRegistry.VillagerCareer career) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
private ResourceLocation name
private ResourceLocation texture
private ResourceLocation zombie
private java.util.List<VillagerRegistry.VillagerCareer> careers
public VillagerProfession(java.lang.String name, java.lang.String texture, java.lang.String zombie)
private void register(VillagerRegistry.VillagerCareer career)
public ResourceLocation getSkin()
public ResourceLocation getZombieSkin()
public VillagerRegistry.VillagerCareer getCareer(int id)
public int getRandomCareer(java.util.Random rand)