public class BlockRail extends Block
bedrock, blockBed, blockClay, blockConstructorCalled, blockDiamond, blockGold, blockHardness, blockID, blockIndexInTexture, blockLapis, blockMaterial, blockParticleGravity, blockResistance, blocksList, blockSnow, blockSteel, bookShelf, brick, button, cactus, cake, canBlockGrass, chest, cloth, cobblestone, cobblestoneMossy, crops, deadBush, dirt, dispenser, doorSteel, doorWood, enableStats, fence, field_28032_t, fire, glass, glowStone, grass, gravel, ice, isBlockContainer, jukebox, ladder, lavaMoving, lavaStill, leaves, lever, lightOpacity, lightValue, lockedChest, maxX, maxY, maxZ, minX, minY, minZ, mobSpawner, mushroomBrown, mushroomRed, musicBlock, netherrack, obsidian, opaqueCubeLookup, oreCoal, oreDiamond, oreGold, oreIron, oreLapis, oreRedstone, oreRedstoneGlowing, pistonBase, pistonExtension, pistonMoving, pistonStickyBase, planks, plantRed, plantYellow, portal, pressurePlatePlanks, pressurePlateStone, pumpkin, pumpkinLantern, rail, railDetector, railPowered, redstoneRepeaterActive, redstoneRepeaterIdle, redstoneWire, reed, sand, sandStone, sapling, signPost, signWall, slipperiness, slowSand, snow, soundClothFootstep, soundGlassFootstep, soundGrassFootstep, soundGravelFootstep, soundMetalFootstep, soundPowderFootstep, soundSandFootstep, soundStoneFootstep, soundWoodFootstep, sponge, stairCompactCobblestone, stairCompactPlanks, stairDouble, stairSingle, stepSound, stone, stoneOvenActive, stoneOvenIdle, tallGrass, tickOnLoad, tilledField, tnt, torchRedstoneActive, torchRedstoneIdle, torchWood, trapdoor, waterMoving, waterStill, web, wood, workbench| Modifier | Constructor and Description |
|---|---|
protected |
BlockRail(int i,
int j,
boolean flag) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlaceBlockAt(World world,
int i,
int j,
int k) |
MovingObjectPosition |
collisionRayTrace(World world,
int i,
int j,
int k,
Vec3D vec3d,
Vec3D vec3d1) |
int |
getBlockTextureFromSideAndMetadata(int i,
int j) |
AxisAlignedBB |
getCollisionBoundingBoxFromPool(World world,
int i,
int j,
int k) |
boolean |
getIsPowered() |
int |
getMobilityFlag() |
int |
getRenderType() |
boolean |
isOpaqueCube() |
static boolean |
isRailBlock(int i) |
static boolean |
isRailBlockAt(World world,
int i,
int j,
int k) |
void |
onBlockAdded(World world,
int i,
int j,
int k) |
void |
onNeighborBlockChange(World world,
int i,
int j,
int k,
int l) |
int |
quantityDropped(java.util.Random random) |
boolean |
renderAsNormalBlock() |
void |
setBlockBoundsBasedOnState(IBlockAccess iblockaccess,
int i,
int j,
int k) |
blockActivated, blockStrength, canBlockStay, canCollideCheck, canPlaceBlockOnSide, canProvidePower, colorMultiplier, damageDropped, disableNeighborNotifyOnMetadataChange, disableStats, dropBlockAsItem_do, dropBlockAsItem, dropBlockAsItemWithChance, getBlockBrightness, getBlockName, getBlockTexture, getBlockTextureFromSide, getCollidingBoundingBoxes, getEnableStats, getExplosionResistance, getHardness, getIsBlockSolid, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, harvestBlock, idDropped, initializeBlock, isCollidable, isIndirectlyPoweringTo, isPoweringTo, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockPlaced, onBlockPlacedBy, onBlockRemoval, onEntityCollidedWithBlock, onEntityWalking, playBlock, randomDisplayTick, setBlockBounds, setBlockBoundsForItemRender, setBlockName, setBlockUnbreakable, setHardness, setLightOpacity, setLightValue, setResistance, setStepSound, setTickOnLoad, shouldSideBeRendered, tickRate, translateBlockName, updateTick, velocityToAddToEntitypublic static final boolean isRailBlockAt(World world, int i, int j, int k)
public static final boolean isRailBlock(int i)
public boolean getIsPowered()
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
getCollisionBoundingBoxFromPool in class Blockpublic boolean isOpaqueCube()
isOpaqueCube in class Blockpublic MovingObjectPosition collisionRayTrace(World world, int i, int j, int k, Vec3D vec3d, Vec3D vec3d1)
collisionRayTrace in class Blockpublic void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k)
setBlockBoundsBasedOnState in class Blockpublic int getBlockTextureFromSideAndMetadata(int i,
int j)
getBlockTextureFromSideAndMetadata in class Blockpublic boolean renderAsNormalBlock()
renderAsNormalBlock in class Blockpublic int getRenderType()
getRenderType in class Blockpublic int quantityDropped(java.util.Random random)
quantityDropped in class Blockpublic boolean canPlaceBlockAt(World world, int i, int j, int k)
canPlaceBlockAt in class Blockpublic void onBlockAdded(World world, int i, int j, int k)
onBlockAdded in class Blockpublic void onNeighborBlockChange(World world, int i, int j, int k, int l)
onNeighborBlockChange in class Blockpublic int getMobilityFlag()
getMobilityFlag in class Block