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, enableStats, 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_)
Checks to see if its valid to put this block at the specified coordinates.
|
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_)
Ray traces through the blocks collision from start vector to end vector returning a ray trace hit.
|
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_)
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(IBlockAccess 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.
|
void |
onBlockAdded(World p_149726_1_,
int p_149726_2_,
int p_149726_3_,
int p_149726_4_)
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 p_149695_1_,
int p_149695_2_,
int p_149695_3_,
int p_149695_4_,
Block p_149695_5_)
Lets the block know when one of its neighbor changes.
|
int |
quantityDropped(java.util.Random p_149745_1_)
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 p_149719_1_,
int p_149719_2_,
int p_149719_3_,
int p_149719_4_)
Updates the blocks bounds based on its current state.
|
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, 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, 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, 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)