public class BlockRailBase.Rail
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private BlockRailBase |
block |
private boolean |
canMakeSlopes |
private java.util.List<BlockPos> |
connectedRails |
private boolean |
isPowered |
private BlockPos |
pos |
private IBlockState |
state |
private World |
world |
Constructor and Description |
---|
Rail(World worldIn,
BlockPos pos,
IBlockState state) |
Modifier and Type | Method and Description |
---|---|
private boolean |
canConnectTo(BlockRailBase.Rail rail) |
private void |
connectTo(BlockRailBase.Rail rail) |
protected int |
countAdjacentRails() |
private BlockRailBase.Rail |
findRailAt(BlockPos pos) |
IBlockState |
getBlockState() |
java.util.List<BlockPos> |
getConnectedRails() |
private boolean |
hasNeighborRail(BlockPos posIn) |
private boolean |
hasRailAt(BlockPos pos) |
private boolean |
isConnectedTo(BlockPos posIn) |
private boolean |
isConnectedToRail(BlockRailBase.Rail rail) |
BlockRailBase.Rail |
place(boolean powered,
boolean initialPlacement) |
private void |
removeSoftConnections() |
private void |
updateConnectedRails(BlockRailBase.EnumRailDirection railDirection) |
private final World world
private final BlockPos pos
private final BlockRailBase block
private IBlockState state
private final boolean isPowered
private final java.util.List<BlockPos> connectedRails
private final boolean canMakeSlopes
public Rail(World worldIn, BlockPos pos, IBlockState state)
public java.util.List<BlockPos> getConnectedRails()
private void updateConnectedRails(BlockRailBase.EnumRailDirection railDirection)
private void removeSoftConnections()
private boolean hasRailAt(BlockPos pos)
@Nullable private BlockRailBase.Rail findRailAt(BlockPos pos)
private boolean isConnectedToRail(BlockRailBase.Rail rail)
private boolean isConnectedTo(BlockPos posIn)
protected int countAdjacentRails()
private boolean canConnectTo(BlockRailBase.Rail rail)
private void connectTo(BlockRailBase.Rail rail)
private boolean hasNeighborRail(BlockPos posIn)
public BlockRailBase.Rail place(boolean powered, boolean initialPlacement)
public IBlockState getBlockState()