public final class GenericObject extends NamedObjectWithAttributes
WPObject, not tied to any particular platform or file
 format.
 Created by Pepijn on 9-3-2017.WPObject.BlockVisitorATTRIBUTE_COLLISION_MODE, ATTRIBUTE_CONNECT_BLOCKS, ATTRIBUTE_EXTEND_FOUNDATION, ATTRIBUTE_FILE, ATTRIBUTE_FREQUENCY, ATTRIBUTE_HEIGHT_MODE, ATTRIBUTE_LEAF_DECAY_MODE, ATTRIBUTE_MANAGE_WATERLOGGED, ATTRIBUTE_NEEDS_FOUNDATION, ATTRIBUTE_OFFSET, ATTRIBUTE_RANDOM_MIRRORING_ONLY, ATTRIBUTE_RANDOM_ROTATION, ATTRIBUTE_RANDOM_ROTATION_ONLY, ATTRIBUTE_REPLACE_WITH_AIR, ATTRIBUTE_REPLACE_WITH_AIR_MATERIAL, ATTRIBUTE_SPAWN_IN_LAVA, ATTRIBUTE_SPAWN_IN_WATER, ATTRIBUTE_SPAWN_ON_LAND, ATTRIBUTE_SPAWN_ON_LAVA, ATTRIBUTE_SPAWN_ON_WATER, ATTRIBUTE_SPAWN_ON_WATER_NO_COLLIDE, ATTRIBUTE_UNDERGROUND_MODE, ATTRIBUTE_VERTICAL_OFFSET, ATTRIBUTE_Y_VARIATION, COLLISION_MODE_ALL, COLLISION_MODE_NONE, COLLISION_MODE_SOLID, HEIGHT_MODE_FIXED, HEIGHT_MODE_TERRAIN, LEAF_DECAY_NO_CHANGE, LEAF_DECAY_OFF, LEAF_DECAY_ON| Constructor and Description | 
|---|
| GenericObject(java.lang.String name,
             int dimX,
             int dimY,
             int dimZ,
             Material[] data) | 
| GenericObject(java.lang.String name,
             int dimX,
             int dimY,
             int dimZ,
             Material[] data,
             java.util.List<Entity> entities,
             java.util.List<TileEntity> tileEntities,
             java.util.Map<java.lang.String,java.io.Serializable> attributes) | 
| GenericObject(WPObject object) | 
| Modifier and Type | Method and Description | 
|---|---|
| javax.vecmath.Point3i | getDimensions()Get the dimensions of the object. | 
| java.util.List<Entity> | getEntities()Get any entities contained in the object. | 
| boolean | getMask(int x,
       int y,
       int z)Determine whether a block should be placed at the specified relative coordinates. | 
| Material | getMaterial(int x,
           int y,
           int z)Get the material to place at the specified relative coordinates. | 
| java.util.List<TileEntity> | getTileEntities()Get any tile entities contained in the object. | 
getAttributes, getName, setAttribute, setAttributes, setNameclone, getOffset, prepareForExportequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdump, getAllMaterials, getAttribute, guessConnectBlocks, guessManageWaterlogged, guestimateOffset, hasAttribute, visitBlockspublic GenericObject(java.lang.String name,
                     int dimX,
                     int dimY,
                     int dimZ,
                     Material[] data)
public GenericObject(java.lang.String name,
                     int dimX,
                     int dimY,
                     int dimZ,
                     Material[] data,
                     java.util.List<Entity> entities,
                     java.util.List<TileEntity> tileEntities,
                     java.util.Map<java.lang.String,java.io.Serializable> attributes)
public GenericObject(WPObject object)
public javax.vecmath.Point3i getDimensions()
WPObjectpublic Material getMaterial(int x, int y, int z)
WPObjectWPObject.getMask(int, int, int) returns true. These coordinates are zero-based and must never be
 negative.x - The relative X coordinate.y - The relative Y coordinate.z - The relative Z coordinate.public boolean getMask(int x,
                       int y,
                       int z)
WPObjectx - The relative X coordinate.y - The relative Y coordinate.z - The relative Z coordinate.true if a block should be placed at the specified relative coordinates.public java.util.List<Entity> getEntities()
WPObjectnull.public java.util.List<TileEntity> getTileEntities()
WPObjectnull.