public class MapGenStructureIO
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Class<? extends StructureComponent>,java.lang.String> |
componentClassToNameMap |
private static java.util.Map<java.lang.String,java.lang.Class<? extends StructureComponent>> |
componentNameToClassMap |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static java.util.Map<java.lang.Class<? extends StructureStart>,java.lang.String> |
startClassToNameMap |
private static java.util.Map<java.lang.String,java.lang.Class<? extends StructureStart>> |
startNameToClassMap |
Constructor and Description |
---|
MapGenStructureIO() |
Modifier and Type | Method and Description |
---|---|
static StructureComponent |
getStructureComponent(NBTTagCompound tagCompound,
World worldIn) |
static java.lang.String |
getStructureComponentName(StructureComponent component) |
static StructureStart |
getStructureStart(NBTTagCompound tagCompound,
World worldIn) |
static java.lang.String |
getStructureStartName(StructureStart start) |
static void |
registerStructure(java.lang.Class<? extends StructureStart> startClass,
java.lang.String structureName) |
static void |
registerStructureComponent(java.lang.Class<? extends StructureComponent> componentClass,
java.lang.String componentName) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.Map<java.lang.String,java.lang.Class<? extends StructureStart>> startNameToClassMap
private static final java.util.Map<java.lang.Class<? extends StructureStart>,java.lang.String> startClassToNameMap
private static final java.util.Map<java.lang.String,java.lang.Class<? extends StructureComponent>> componentNameToClassMap
private static final java.util.Map<java.lang.Class<? extends StructureComponent>,java.lang.String> componentClassToNameMap
public static void registerStructure(java.lang.Class<? extends StructureStart> startClass, java.lang.String structureName)
public static void registerStructureComponent(java.lang.Class<? extends StructureComponent> componentClass, java.lang.String componentName)
public static java.lang.String getStructureStartName(StructureStart start)
public static java.lang.String getStructureComponentName(StructureComponent component)
@Nullable public static StructureStart getStructureStart(NBTTagCompound tagCompound, World worldIn)
public static StructureComponent getStructureComponent(NBTTagCompound tagCompound, World worldIn)