public class RailState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private AbstractRailBlock |
block |
private boolean |
canMakeSlopes |
private java.util.List<BlockPos> |
connectedRails |
private boolean |
disableCorners |
private BlockState |
newState |
private BlockPos |
pos |
private World |
world |
Constructor and Description |
---|
RailState(World worldIn,
BlockPos p_i47755_2_,
BlockState p_i47755_3_) |
Modifier and Type | Method and Description |
---|---|
private void |
checkConnected() |
protected int |
countAdjacentRails() |
private RailState |
createForAdjacent(BlockPos p_196908_1_) |
private boolean |
func_196905_c(RailState p_196905_1_) |
private void |
func_208510_c(RailState p_208510_1_) |
private boolean |
func_208512_d(BlockPos p_208512_1_) |
RailState |
func_226941_a_(boolean p_226941_1_,
boolean p_226941_2_,
RailShape p_226941_3_) |
java.util.List<BlockPos> |
getConnectedRails() |
BlockState |
getNewState() |
private boolean |
isAdjacentRail(BlockPos p_196902_1_) |
private boolean |
isConnectedTo(BlockPos p_196904_1_) |
private boolean |
isConnectedTo(RailState p_196919_1_) |
private void |
reset(RailShape shape) |
private final World world
private final BlockPos pos
private final AbstractRailBlock block
private BlockState newState
private final boolean disableCorners
private final java.util.List<BlockPos> connectedRails
private final boolean canMakeSlopes
public RailState(World worldIn, BlockPos p_i47755_2_, BlockState p_i47755_3_)
public java.util.List<BlockPos> getConnectedRails()
private void reset(RailShape shape)
private void checkConnected()
private boolean isAdjacentRail(BlockPos p_196902_1_)
private boolean isConnectedTo(RailState p_196919_1_)
private boolean isConnectedTo(BlockPos p_196904_1_)
protected int countAdjacentRails()
private boolean func_196905_c(RailState p_196905_1_)
private void func_208510_c(RailState p_208510_1_)
private boolean func_208512_d(BlockPos p_208512_1_)
public RailState func_226941_a_(boolean p_226941_1_, boolean p_226941_2_, RailShape p_226941_3_)
public BlockState getNewState()