public abstract class BlockRailBase extends Block
anvil, beacon, bed, bedrock, blockClay, blockDiamond, blockEmerald, blockGold, blockHardness, blockID, blockIron, blockLapis, blockMaterial, blockNetherQuartz, blockParticleGravity, blockRedstone, blockResistance, blocksList, blockSnow, bookShelf, brewingStand, brick, cactus, cake, canBlockGrass, carrot, cauldron, chest, chestTrapped, cloth, cobblestone, cobblestoneMossy, cobblestoneWall, cocoaPlant, commandBlock, crops, daylightSensor, deadBush, dirt, dispenser, doorIron, doorWood, dragonEgg, dropper, enchantmentTable, enderChest, endPortal, endPortalFrame, fence, fenceGate, fenceIron, fire, flowerPot, furnaceBurning, furnaceIdle, glass, glowStone, grass, gravel, hopperBlock, ice, jukebox, ladder, lavaMoving, lavaStill, leaves, lever, lightOpacity, lightValue, lockedChest, melon, melonStem, mobSpawner, mushroomBrown, mushroomCapBrown, mushroomCapRed, mushroomRed, music, mycelium, netherBrick, netherFence, netherrack, netherStalk, obsidian, opaqueCubeLookup, oreCoal, oreDiamond, oreEmerald, oreGold, oreIron, oreLapis, oreNetherQuartz, oreRedstone, oreRedstoneGlowing, pistonBase, pistonExtension, pistonMoving, pistonStickyBase, planks, plantRed, plantYellow, portal, potato, pressurePlateGold, pressurePlateIron, pressurePlatePlanks, pressurePlateStone, pumpkin, pumpkinLantern, pumpkinStem, rail, railActivator, railDetector, railPowered, redstoneComparatorActive, redstoneComparatorIdle, redstoneLampActive, redstoneLampIdle, redstoneRepeaterActive, redstoneRepeaterIdle, redstoneWire, reed, sand, sandStone, sapling, signPost, signWall, silverfish, skull, slipperiness, slowSand, snow, soundAnvilFootstep, soundClothFootstep, soundGlassFootstep, soundGrassFootstep, soundGravelFootstep, soundLadderFootstep, soundMetalFootstep, soundPowderFootstep, soundSandFootstep, soundSnowFootstep, soundStoneFootstep, soundWoodFootstep, sponge, stairsBrick, stairsCobblestone, stairsNetherBrick, stairsNetherQuartz, stairsSandStone, stairsStoneBrick, stairsWoodBirch, stairsWoodJungle, stairsWoodOak, stairsWoodSpruce, stepSound, stone, stoneBrick, stoneButton, stoneDoubleSlab, stoneSingleSlab, tallGrass, thinGlass, tilledField, tnt, torchRedstoneActive, torchRedstoneIdle, torchWood, trapdoor, tripWire, tripWireSource, useNeighborBrightness, vine, waterlily, waterMoving, waterStill, web, whiteStone, wood, woodDoubleSlab, woodenButton, woodSingleSlab, workbench| Modifier and Type | Method and Description |
|---|---|
void |
breakBlock(World par1World,
int par2,
int par3,
int par4,
int par5,
int par6)
ejects contained items into the world, and notifies neighbours of an update, as appropriate
|
boolean |
canMakeSlopes(World world,
int x,
int y,
int z)
Returns true if the rail can make up and down slopes.
|
boolean |
canPlaceBlockAt(World par1World,
int par2,
int par3,
int par4)
Checks to see if its valid to put this block at the specified coordinates.
|
MovingObjectPosition |
collisionRayTrace(World par1World,
int par2,
int par3,
int par4,
Vec3 par5Vec3,
Vec3 par6Vec3)
Ray traces through the blocks collision from start vector to end vector returning a ray trace hit.
|
int |
getBasicRailMetadata(IBlockAccess world,
EntityMinecart cart,
int x,
int y,
int z)
Return the rail's metadata (without the power bit if the rail uses one).
|
AxisAlignedBB |
getCollisionBoundingBoxFromPool(World par1World,
int par2,
int par3,
int par4)
Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been
cleared to be reused)
|
int |
getMobilityFlag()
Returns the mobility information of the block, 0 = free, 1 = can't push but can move over, 2 = total immobility
and stop pistons
|
float |
getRailMaxSpeed(World world,
EntityMinecart cart,
int y,
int x,
int z)
Returns the max speed of the rail at the specified position.
|
int |
getRenderType()
The type of render function that is called for this block
|
boolean |
isFlexibleRail(World world,
int y,
int x,
int z)
Return true if the rail can make corners.
|
boolean |
isOpaqueCube()
Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two
adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
|
boolean |
isPowered()
Returns true if the block is power related rail.
|
static boolean |
isRailBlock(int par0)
Return true if the parameter is a blockID for a valid rail block (current is rail, powered or detector).
|
static boolean |
isRailBlockAt(World par0World,
int par1,
int par2,
int par3)
Returns true if the block at the coordinates of world passed is a valid rail block (current is rail, powered or
detector).
|
void |
onBlockAdded(World par1World,
int par2,
int par3,
int par4)
Called whenever the block is added into the world.
|
void |
onMinecartPass(World world,
EntityMinecart cart,
int y,
int x,
int z)
This function is called by any minecart that passes over this rail.
|
void |
onNeighborBlockChange(World par1World,
int par2,
int par3,
int par4,
int par5)
Lets the block know when one of its neighbor changes.
|
int |
quantityDropped(Random par1Random)
Returns the quantity of items to drop on block destruction.
|
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
|
void |
setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
Updates the blocks bounds based on its current state.
|
void |
setRenderType(int value) |
addBlockDestroyEffects, addBlockHitEffects, addCollisionBoxesToList, addCreativeItems, beginLeavesDecay, canBeReplacedByLeaves, canBlockStay, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDragonDestroy, canDropFromExplosion, canHarvestBlock, canPlaceBlockOnSide, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canSilkHarvest, canSustainLeaves, canSustainPlant, colorMultiplier, createTileEntity, damageDropped, dropBlockAsItem, dropBlockAsItemWithChance, fillWithRain, func_82506_l, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockBrightness, getBlockColor, getBlockDropped, getBlockHardness, getBlocksMovement, getBlockTexture, getBlockTextureFromSide, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getEnchantPower, getEnchantPowerBonus, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getIcon, getItemIconName, getLightOpacity, getLightValue, getLocalizedName, getMixedBrightnessForBlock, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, getSubBlocks, getTickRandomly, getUnlocalizedName, getUnlocalizedName2, getValidRotations, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, idDropped, idPicked, isAirBlock, isAssociatedBlockID, isAssociatedBlockID, isBeaconBase, isBed, isBedFoot, isBlockBurning, isBlockFoliage, isBlockNormalCube, isBlockReplaceable, isBlockSolid, isBlockSolidOnSide, isCollidable, isFertile, isFireSource, isFlammable, isFlowerPot, isGenMineableReplaceable, isLadder, isLadder, isLeaves, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isWood, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onPlantGrow, onPostBlockPlaced, onSetBlockIDWithMetaData, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, recolourBlock, registerIcons, removeBlockByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsForItemRender, setBlockUnbreakable, setBurnProperties, setCreativeTab, setHardness, setLightOpacity, setLightValue, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldSideBeRendered, tickRate, updateTick, velocityToAddToEntitypublic static final boolean isRailBlockAt(World par0World, int par1, int par2, int par3)
public static final boolean isRailBlock(int par0)
public boolean isPowered()
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getCollisionBoundingBoxFromPool in class Blockpublic boolean isOpaqueCube()
isOpaqueCube in class Blockpublic MovingObjectPosition collisionRayTrace(World par1World, int par2, int par3, int par4, Vec3 par5Vec3, Vec3 par6Vec3)
collisionRayTrace in class Blockpublic void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
setBlockBoundsBasedOnState in class Blockpublic boolean renderAsNormalBlock()
renderAsNormalBlock in class Blockpublic int getRenderType()
getRenderType in class Blockpublic int quantityDropped(Random par1Random)
quantityDropped in class Blockpublic boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
canPlaceBlockAt in class Blockpublic void onBlockAdded(World par1World, int par2, int par3, int par4)
onBlockAdded in class Blockpublic void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange in class Blockpublic int getMobilityFlag()
getMobilityFlag in class Blockpublic void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
breakBlock in class Blockpublic boolean isFlexibleRail(World world, int y, int x, int z)
world - The world.x - The rail X coordinate.y - The rail Y coordinate.z - The rail Z coordinate.public boolean canMakeSlopes(World world, int x, int y, int z)
world - The world.x - The rail X coordinate.y - The rail Y coordinate.z - The rail Z coordinate.public int getBasicRailMetadata(IBlockAccess world, EntityMinecart cart, int x, int y, int z)
world - The world.cart - The cart asking for the metadata, null if it is not called by EntityMinecart.y - The rail X coordinate.x - The rail Y coordinate.z - The rail Z coordinate.public float getRailMaxSpeed(World world, EntityMinecart cart, int y, int x, int z)
world - The world.cart - The cart on the rail, may be null.x - The rail X coordinate.y - The rail Y coordinate.z - The rail Z coordinate.public void onMinecartPass(World world, EntityMinecart cart, int y, int x, int z)
world - The world.cart - The cart on the rail.y - The rail X coordinate.x - The rail Y coordinate.z - The rail Z coordinate.public void setRenderType(int value)