public abstract class AbstractSwitchRailBlock
extends net.minecraft.block.AbstractRailBlock
net.minecraft.block.Block.RenderSideCacheKeynet.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.IExtendedPositionPredicate<A>, net.minecraft.block.AbstractBlock.IPositionPredicate, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Properties| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.state.BooleanProperty |
DIVERGE |
BLOCK_STATE_IDS, LOGGER, RANDOM, stateContainer| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSwitchRailBlock(boolean disableCorner,
net.minecraft.block.AbstractBlock.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMakeSlopes(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.tileentity.TileEntity |
createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world) |
protected net.minecraft.state.properties.RailShape |
getDivergeShape(SwitchConfiguration switchConfiguration) |
protected abstract net.minecraft.util.Direction |
getMotorDirection(SwitchConfiguration switchConfiguration) |
net.minecraft.state.properties.RailShape |
getRailDirection(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader blockReader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.item.minecart.AbstractMinecartEntity minecartEntity) |
protected abstract net.minecraft.state.properties.RailShape |
getStraightShape(SwitchConfiguration switchConfiguration) |
protected abstract SwitchConfiguration |
getSwitchConfiguration(net.minecraft.block.BlockState blockState) |
net.minecraft.state.properties.RailShape |
getSwitchShape(SwitchConfiguration switchConfiguration,
net.minecraft.state.properties.RailShape straightShape,
net.minecraft.state.properties.RailShape divergeShape,
net.minecraft.world.IBlockReader blockReader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.item.minecart.AbstractMinecartEntity minecartEntity) |
boolean |
hasTileEntity(net.minecraft.block.BlockState state) |
protected boolean |
shouldDivert(net.minecraft.world.IBlockReader blockReader,
net.minecraft.util.math.BlockPos motorLocation,
net.minecraft.util.math.BlockPos switchLocation,
net.minecraft.entity.item.minecart.AbstractMinecartEntity cart) |
net.minecraft.block.BlockState |
updatePostPlacement(net.minecraft.block.BlockState state,
net.minecraft.util.Direction facing,
net.minecraft.block.BlockState facingState,
net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos currentPos,
net.minecraft.util.math.BlockPos facingPos) |
areCornersDisabled, getPushReaction, getShape, getShapeProperty, getStateForPlacement, getUpdatedState, isFlexibleRail, isRail, isRail, isValidPosition, neighborChanged, onBlockAdded, onReplaced, updateRailState, updateStateaddInformation, animateTick, asItem, canDropFromExplosion, cannotAttach, canSpawnInBlock, canSustainPlant, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillStateContainer, fillWithRain, getBlockFromItem, getDefaultState, getDrops, getDrops, getExplosionResistance, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getSelf, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getTags, getTranslatedName, getTranslationKey, getValidBlockForPosition, harvestBlock, hasEnoughSolidSide, hasSolidSideOnTop, isIn, isOpaque, isVariableOpacity, makeCuboidShape, matchesBlock, nudgeEntitiesWithNewState, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, propagatesSkylightDown, replaceBlock, replaceBlockState, setDefaultState, shouldSideBeRendered, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, ticksRandomly, toStringallowsMovement, canProvidePower, eventReceived, getAmbientOcclusionLightValue, getCollisionShape, getCollisionShape, getComparatorInputOverride, getContainer, getDrops, getFluidState, getLootTable, getMaterialColor, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getRaytraceShape, getRayTraceShape, getRenderShape, getRenderType, getStrongPower, getWeakPower, hasComparatorInputOverride, isReplaceable, isReplaceable, isSideInvisible, isTileEntityProvider, isTransparent, mirror, onBlockActivated, onBlockClicked, onEntityCollision, onProjectileCollision, randomTick, rotate, spawnAdditionalDrops, tick, updateDiagonalNeighborsgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAbstractBlock, getRailMaxSpeed, onMinecartPassaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlayprotected AbstractSwitchRailBlock(boolean disableCorner,
net.minecraft.block.AbstractBlock.Properties properties)
protected boolean shouldDivert(net.minecraft.world.IBlockReader blockReader,
net.minecraft.util.math.BlockPos motorLocation,
net.minecraft.util.math.BlockPos switchLocation,
@Nullable
net.minecraft.entity.item.minecart.AbstractMinecartEntity cart)
@Nonnull
@ParametersAreNonnullByDefault
public net.minecraft.block.BlockState updatePostPlacement(net.minecraft.block.BlockState state,
net.minecraft.util.Direction facing,
net.minecraft.block.BlockState facingState,
net.minecraft.world.IWorld world,
net.minecraft.util.math.BlockPos currentPos,
net.minecraft.util.math.BlockPos facingPos)
updatePostPlacement in class net.minecraft.block.AbstractBlock@Nonnull
@ParametersAreNonnullByDefault
public net.minecraft.state.properties.RailShape getRailDirection(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader blockReader,
net.minecraft.util.math.BlockPos pos,
@Nullable
net.minecraft.entity.item.minecart.AbstractMinecartEntity minecartEntity)
getRailDirection in interface net.minecraftforge.common.extensions.IAbstractRailBlockgetRailDirection in class net.minecraft.block.AbstractRailBlockpublic net.minecraft.state.properties.RailShape getSwitchShape(SwitchConfiguration switchConfiguration, net.minecraft.state.properties.RailShape straightShape, net.minecraft.state.properties.RailShape divergeShape, net.minecraft.world.IBlockReader blockReader, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.item.minecart.AbstractMinecartEntity minecartEntity)
public boolean canMakeSlopes(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos)
@Nullable
public net.minecraft.tileentity.TileEntity createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world)
public boolean hasTileEntity(net.minecraft.block.BlockState state)
protected net.minecraft.state.properties.RailShape getDivergeShape(SwitchConfiguration switchConfiguration)
protected abstract net.minecraft.state.properties.RailShape getStraightShape(SwitchConfiguration switchConfiguration)
protected abstract SwitchConfiguration getSwitchConfiguration(net.minecraft.block.BlockState blockState)
protected abstract net.minecraft.util.Direction getMotorDirection(SwitchConfiguration switchConfiguration)