public abstract class FillerPattern extends java.lang.Object implements IFillerPattern
| Modifier and Type | Class and Description |
|---|---|
protected class |
FillerPattern.PatternIterator |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<FillerPattern> |
patterns |
| Constructor and Description |
|---|
FillerPattern(java.lang.String tag) |
| Modifier and Type | Method and Description |
|---|---|
IPatternIterator |
createPatternIterator(net.minecraft.tileentity.TileEntity tile,
IBox box,
net.minecraftforge.common.util.ForgeDirection orientation)
Creates the object that does the pattern iteration.
|
static boolean |
empty(int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
net.minecraft.world.World world)
Attempt to remove the blocks in the area.
|
static boolean |
fill(int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
net.minecraft.item.ItemStack stackToPlace,
net.minecraft.world.World world)
Attempt to fill blocks in the area.
|
static boolean |
flatten(int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
net.minecraft.world.World world,
net.minecraft.item.ItemStack stackToPlace)
Attempt to fill the area defined by the box, from the top down.
|
java.lang.String |
getDisplayName() |
net.minecraft.util.IIcon |
getIcon() |
java.lang.String |
getUniqueTag() |
boolean |
iteratePattern(net.minecraft.tileentity.TileEntity tile,
IBox box,
net.minecraft.item.ItemStack stackToPlace)
stackToPlace contains the next item that can be place in the world.
|
void |
registerIcon(net.minecraft.client.renderer.texture.IIconRegister iconRegister) |
java.lang.String |
toString() |
public static final java.util.Set<FillerPattern> patterns
public boolean iteratePattern(net.minecraft.tileentity.TileEntity tile,
IBox box,
net.minecraft.item.ItemStack stackToPlace)
public java.lang.String getDisplayName()
getDisplayName in interface IFillerPatternpublic java.lang.String getUniqueTag()
getUniqueTag in interface IFillerPatternpublic void registerIcon(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
public net.minecraft.util.IIcon getIcon()
getIcon in interface IFillerPatternpublic java.lang.String toString()
toString in class java.lang.Objectpublic IPatternIterator createPatternIterator(net.minecraft.tileentity.TileEntity tile, IBox box, net.minecraftforge.common.util.ForgeDirection orientation)
IFillerPatterncreatePatternIterator in interface IFillerPatterntile - the Fillerbox - the area to fillorientation - not currently used, but may be in the future (the filler needs some orientation code)public static boolean fill(int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
net.minecraft.item.ItemStack stackToPlace,
net.minecraft.world.World world)
public static boolean empty(int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
net.minecraft.world.World world)
public static boolean flatten(int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
net.minecraft.world.World world,
net.minecraft.item.ItemStack stackToPlace)