Package net.minecraft.entity.villager
Class VillagerType
- java.lang.Object
-
- net.minecraft.entity.villager.VillagerType
-
public final class VillagerType extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<RegistryKey<Biome>,VillagerType>
BY_BIOME
static VillagerType
DESERT
static VillagerType
JUNGLE
private java.lang.String
name
static VillagerType
PLAINS
static VillagerType
SAVANNA
static VillagerType
SNOW
static VillagerType
SWAMP
static VillagerType
TAIGA
-
Constructor Summary
Constructors Modifier Constructor Description private
VillagerType(java.lang.String p_i241919_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VillagerType
byBiome(java.util.Optional<RegistryKey<Biome>> p_242371_0_)
private static VillagerType
register(java.lang.String p_221171_0_)
java.lang.String
toString()
-
-
-
Field Detail
-
DESERT
public static final VillagerType DESERT
-
JUNGLE
public static final VillagerType JUNGLE
-
PLAINS
public static final VillagerType PLAINS
-
SAVANNA
public static final VillagerType SAVANNA
-
SNOW
public static final VillagerType SNOW
-
SWAMP
public static final VillagerType SWAMP
-
TAIGA
public static final VillagerType TAIGA
-
name
private final java.lang.String name
-
BY_BIOME
private static final java.util.Map<RegistryKey<Biome>,VillagerType> BY_BIOME
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
register
private static VillagerType register(java.lang.String p_221171_0_)
-
byBiome
public static VillagerType byBiome(java.util.Optional<RegistryKey<Biome>> p_242371_0_)
-
-