public abstract class AreaType
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AreaType.AreaTypeWidget |
static class |
AreaType.AreaTypeWidgetEnum<E extends java.lang.Enum<?>>
Adds a dropdownlist with alle the enum options
|
static class |
AreaType.AreaTypeWidgetInteger
Adds a number textbox.
|
static class |
AreaType.EnumAxis |
| Constructor and Description |
|---|
AreaType(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addArea(java.util.function.Consumer<net.minecraft.util.math.BlockPos> areaAdder,
net.minecraft.util.math.BlockPos p1,
net.minecraft.util.math.BlockPos p2,
int minX,
int minY,
int minZ,
int maxX,
int maxY,
int maxZ) |
void |
addUIWidgets(java.util.List<AreaType.AreaTypeWidget> widgets) |
void |
convertFromLegacy(LegacyAreaWidgetConverter.EnumOldAreaType oldType,
int typeInfo)
Called when loading old-style programs from pastebin etc.
|
java.lang.String |
getName() |
java.lang.String |
getTranslationKey() |
boolean |
isDeterministic()
Whether or not the area added in addArea is deterministic (used to determine if stuff can be cached or not).
|
void |
readFromNBT(net.minecraft.nbt.CompoundNBT tag) |
void |
readFromPacket(net.minecraft.network.PacketBuffer buf) |
void |
writeToNBT(net.minecraft.nbt.CompoundNBT tag) |
void |
writeToPacket(net.minecraft.network.PacketBuffer buffer) |
public java.lang.String getName()
public java.lang.String getTranslationKey()
public abstract void addArea(java.util.function.Consumer<net.minecraft.util.math.BlockPos> areaAdder,
net.minecraft.util.math.BlockPos p1,
net.minecraft.util.math.BlockPos p2,
int minX,
int minY,
int minZ,
int maxX,
int maxY,
int maxZ)
public void convertFromLegacy(LegacyAreaWidgetConverter.EnumOldAreaType oldType, int typeInfo)
oldType - the old-style area typetypeInfo - extra integer type information used by some typespublic boolean isDeterministic()
public void writeToPacket(net.minecraft.network.PacketBuffer buffer)
public void readFromPacket(net.minecraft.network.PacketBuffer buf)
public void writeToNBT(net.minecraft.nbt.CompoundNBT tag)
public void readFromNBT(net.minecraft.nbt.CompoundNBT tag)
public void addUIWidgets(java.util.List<AreaType.AreaTypeWidget> widgets)