public class FilledTemplate
extends java.lang.Object
IFillerPattern
As this is backed by a BitSet ordered [x][y][z] it is much faster to fill in the X axis than the Y or Z axis,
so many methods are provided that take advantage of this.
| Modifier and Type | Class and Description |
|---|---|
static class |
FilledTemplate.TemplateState |
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.util.math.BlockPos |
max |
int |
maxX |
int |
maxY |
int |
maxZ |
net.minecraft.util.math.BlockPos |
min |
net.minecraft.util.math.BlockPos |
size |
int |
sizeX |
int |
sizeXY |
int |
sizeXYZ |
int |
sizeY |
int |
sizeZ |
| Constructor and Description |
|---|
FilledTemplate(net.minecraft.util.math.BlockPos min,
net.minecraft.util.math.BlockPos max) |
FilledTemplate(FilledTemplate from) |
FilledTemplate(IBox box) |
FilledTemplate(net.minecraft.nbt.NBTTagCompound nbt) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Completely fills up this template.
|
void |
clear(net.minecraft.util.math.BlockPos pos) |
void |
clear(int x,
int y,
int z) |
void |
clearAreaYZ(int x,
int fy,
int fz,
int ty,
int tz) |
void |
clearAxisZ(int x,
int y)
Fills up the entire Z axis of a particular co-ord.
|
void |
clearLineZ(int x,
int y,
int fz,
int tz)
Fills a line in the Z-axis.
|
void |
clearPlaneYZ(int x)
Fills an entire plane of a particular X co-ord
|
void |
clearVolume(net.minecraft.util.math.BlockPos from,
net.minecraft.util.math.BlockPos to) |
void |
clearVolume(int fx,
int fy,
int fz,
int tx,
int ty,
int tz) |
void |
fill()
Completely fills up this template.
|
void |
fill(net.minecraft.util.math.BlockPos pos) |
void |
fill(int x,
int y,
int z) |
void |
fillAreaXY(int fx,
int tx,
int fy,
int ty,
int z) |
void |
fillAreaXZ(int fx,
int tx,
int y,
int fz,
int tz) |
void |
fillAreaYZ(int x,
int fy,
int ty,
int fz,
int tz) |
void |
fillAxisX(int y,
int z) |
void |
fillAxisY(int x,
int z) |
void |
fillAxisZ(int x,
int y)
Fills up the entire Z axis of a particular co-ord.
|
void |
fillLineX(int fx,
int tx,
int y,
int z)
Fills a line in the X-axis.
|
void |
fillLineY(int x,
int fy,
int ty,
int z) |
void |
fillLineZ(int x,
int y,
int fz,
int tz) |
void |
fillPlaneXY(int z) |
void |
fillPlaneXZ(int y) |
void |
fillPlaneYZ(int x)
Fills an entire plane of a particular X co-ord
|
void |
fillVolume(net.minecraft.util.math.BlockPos from,
net.minecraft.util.math.BlockPos to) |
void |
fillVolume(int fx,
int tx,
int fy,
int ty,
int fz,
int tz) |
FilledTemplate.TemplateState |
get(int x,
int y,
int z) |
FilledTemplate.TemplateState |
getAbsolute(net.minecraft.util.math.BlockPos pos) |
FilledTemplate.TemplateState |
getOffset(net.minecraft.util.math.BlockPos offset) |
void |
ignore() |
void |
ignore(int x,
int y,
int z) |
void |
invert()
Swaps every clear with fill, and fill with clear.
|
void |
set(net.minecraft.util.math.BlockPos pos,
boolean fill) |
void |
set(int x,
int y,
int z,
boolean fill) |
void |
set(int x,
int y,
int z,
FilledTemplate.TemplateState state) |
boolean |
shouldFill(int x,
int y,
int z) |
boolean |
shouldIgnore(int x,
int y,
int z) |
java.lang.String |
toString() |
net.minecraft.nbt.NBTTagCompound |
writeToNbt() |
public final net.minecraft.util.math.BlockPos min
public final net.minecraft.util.math.BlockPos max
public final net.minecraft.util.math.BlockPos size
public final int sizeX
public final int sizeY
public final int sizeZ
public final int sizeXY
public final int sizeXYZ
public final int maxX
public final int maxY
public final int maxZ
public FilledTemplate(net.minecraft.util.math.BlockPos min,
net.minecraft.util.math.BlockPos max)
public FilledTemplate(IBox box)
public FilledTemplate(FilledTemplate from)
public FilledTemplate(net.minecraft.nbt.NBTTagCompound nbt)
public net.minecraft.nbt.NBTTagCompound writeToNbt()
public FilledTemplate.TemplateState getAbsolute(net.minecraft.util.math.BlockPos pos)
public FilledTemplate.TemplateState getOffset(net.minecraft.util.math.BlockPos offset)
public FilledTemplate.TemplateState get(int x, int y, int z)
public boolean shouldFill(int x,
int y,
int z)
public boolean shouldIgnore(int x,
int y,
int z)
public void fill(net.minecraft.util.math.BlockPos pos)
public void fill(int x,
int y,
int z)
public void fillVolume(net.minecraft.util.math.BlockPos from,
net.minecraft.util.math.BlockPos to)
public void fillVolume(int fx,
int tx,
int fy,
int ty,
int fz,
int tz)
public void fillAreaYZ(int x,
int fy,
int ty,
int fz,
int tz)
public void fillAreaXZ(int fx,
int tx,
int y,
int fz,
int tz)
public void fillAreaXY(int fx,
int tx,
int fy,
int ty,
int z)
public void fill()
public void fillPlaneYZ(int x)
public void fillPlaneXZ(int y)
public void fillPlaneXY(int z)
public void fillAxisX(int y,
int z)
public void fillAxisY(int x,
int z)
public void fillAxisZ(int x,
int y)
public void fillLineX(int fx,
int tx,
int y,
int z)
public void fillLineY(int x,
int fy,
int ty,
int z)
public void fillLineZ(int x,
int y,
int fz,
int tz)
public void clear(net.minecraft.util.math.BlockPos pos)
public void clear(int x,
int y,
int z)
public void clearVolume(net.minecraft.util.math.BlockPos from,
net.minecraft.util.math.BlockPos to)
public void clearVolume(int fx,
int fy,
int fz,
int tx,
int ty,
int tz)
public void clearAreaYZ(int x,
int fy,
int fz,
int ty,
int tz)
public void clear()
public void clearPlaneYZ(int x)
public void clearAxisZ(int x,
int y)
public void clearLineZ(int x,
int y,
int fz,
int tz)
public void ignore()
public void ignore(int x,
int y,
int z)
public void set(net.minecraft.util.math.BlockPos pos,
boolean fill)
public void set(int x,
int y,
int z,
boolean fill)
public void set(int x,
int y,
int z,
FilledTemplate.TemplateState state)
public void invert()
public java.lang.String toString()
toString in class java.lang.Object