public abstract class BlockRailBase extends Block
Modifier and Type | Class and Description |
---|---|
class |
BlockRailBase.Rail |
Block.SoundType
Modifier and Type | Field and Description |
---|---|
protected boolean |
field_150053_a |
blockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, capturedDrops, captureDrops, delegate, enableStats, harvesters, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, opaque, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, textureName, useNeighborBrightness
Modifier | Constructor and Description |
---|---|
protected |
BlockRailBase(boolean p_i45389_1_) |
Modifier and Type | Method and Description |
---|---|
void |
breakBlock(World p_149749_1_,
int p_149749_2_,
int p_149749_3_,
int p_149749_4_,
Block p_149749_5_,
int p_149749_6_) |
boolean |
canMakeSlopes(IBlockAccess world,
int x,
int y,
int z)
Returns true if the rail can make up and down slopes.
|
boolean |
canPlaceBlockAt(World p_149742_1_,
int p_149742_2_,
int p_149742_3_,
int p_149742_4_) |
MovingObjectPosition |
collisionRayTrace(World p_149731_1_,
int p_149731_2_,
int p_149731_3_,
int p_149731_4_,
Vec3 p_149731_5_,
Vec3 p_149731_6_) |
protected void |
func_150048_a(World p_150048_1_,
int p_150048_2_,
int p_150048_3_,
int p_150048_4_,
int p_150048_5_,
int p_150048_6_,
Block p_150048_7_) |
static boolean |
func_150049_b_(World p_150049_0_,
int p_150049_1_,
int p_150049_2_,
int p_150049_3_) |
static boolean |
func_150051_a(Block p_150051_0_) |
protected void |
func_150052_a(World p_150052_1_,
int p_150052_2_,
int p_150052_3_,
int p_150052_4_,
boolean p_150052_5_) |
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 p_149668_1_,
int p_149668_2_,
int p_149668_3_,
int p_149668_4_) |
int |
getMobilityFlag() |
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() |
boolean |
isFlexibleRail(IBlockAccess world,
int y,
int x,
int z)
Return true if the rail can make corners.
|
boolean |
isOpaqueCube() |
boolean |
isPowered() |
void |
onBlockAdded(World p_149726_1_,
int p_149726_2_,
int p_149726_3_,
int p_149726_4_) |
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 p_149695_1_,
int p_149695_2_,
int p_149695_3_,
int p_149695_4_,
Block p_149695_5_) |
int |
quantityDropped(java.util.Random p_149745_1_) |
boolean |
renderAsNormalBlock() |
void |
setBlockBoundsBasedOnState(IBlockAccess p_149719_1_,
int p_149719_2_,
int p_149719_3_,
int p_149719_4_) |
void |
setRenderType(int value) |
addCollisionBoxesToList, addDestroyEffects, addHitEffects, beginLeavesDecay, canBeReplacedByLeaves, canBlockStay, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, colorMultiplier, createStackedBlock, createTileEntity, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_149698_L, func_149730_j, func_149735_b, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlocksMovement, getBlockTextureFromSide, getCanBlockGrass, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIcon, getIcon, getIdFromBlock, getItem, getItemDropped, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getPickBlock, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isLadder, isLeaves, isNormalCube, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isWood, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onBlockPreDestroy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onNeighborChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, recolourBlock, registerBlockIcons, registerBlocks, removedByPlayer, removedByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, shouldSideBeRendered, tickRate, updateTick, velocityToAddToEntity
public static final boolean func_150049_b_(World p_150049_0_, int p_150049_1_, int p_150049_2_, int p_150049_3_)
public static final boolean func_150051_a(Block p_150051_0_)
public boolean isPowered()
public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_)
getCollisionBoundingBoxFromPool
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public MovingObjectPosition collisionRayTrace(World p_149731_1_, int p_149731_2_, int p_149731_3_, int p_149731_4_, Vec3 p_149731_5_, Vec3 p_149731_6_)
collisionRayTrace
in class Block
public void setBlockBoundsBasedOnState(IBlockAccess p_149719_1_, int p_149719_2_, int p_149719_3_, int p_149719_4_)
setBlockBoundsBasedOnState
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public int getRenderType()
getRenderType
in class Block
public int quantityDropped(java.util.Random p_149745_1_)
quantityDropped
in class Block
public boolean canPlaceBlockAt(World p_149742_1_, int p_149742_2_, int p_149742_3_, int p_149742_4_)
canPlaceBlockAt
in class Block
public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)
onBlockAdded
in class Block
public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_)
onNeighborBlockChange
in class Block
protected void func_150048_a(World p_150048_1_, int p_150048_2_, int p_150048_3_, int p_150048_4_, int p_150048_5_, int p_150048_6_, Block p_150048_7_)
protected void func_150052_a(World p_150052_1_, int p_150052_2_, int p_150052_3_, int p_150052_4_, boolean p_150052_5_)
public int getMobilityFlag()
getMobilityFlag
in class Block
public void breakBlock(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, Block p_149749_5_, int p_149749_6_)
breakBlock
in class Block
public boolean isFlexibleRail(IBlockAccess 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(IBlockAccess 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)