public class ReinforcedRailBlock
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.Property<java.lang.Boolean> |
CONNECTS_N |
static net.minecraft.state.Property<java.lang.Boolean> |
CONNECTS_S |
static net.minecraft.state.Property<net.minecraft.state.properties.RailShape> |
RAIL_SHAPE |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Constructor and Description |
|---|
ReinforcedRailBlock(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) |
boolean |
canSurvive(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos) |
protected void |
createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
void |
fillItemCategory(net.minecraft.item.ItemGroup p_149666_1_,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> p_149666_2_) |
net.minecraft.util.math.shapes.VoxelShape |
getCollisionShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context) |
net.minecraft.block.material.PushReaction |
getPistonPushReaction(net.minecraft.block.BlockState state) |
net.minecraft.util.math.shapes.VoxelShape |
getShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context) |
net.minecraft.state.Property<net.minecraft.state.properties.RailShape> |
getShapeProperty() |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext context) |
void |
neighborChanged(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block block,
net.minecraft.util.math.BlockPos pos2,
boolean p_220069_6_) |
protected net.minecraft.block.BlockState |
updateDir(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
boolean p_208489_4_) |
protected void |
updateState(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block block) |
getRailDirection, isFlexibleRail, isRail, isRail, isStraight, onPlace, onRemove, updateStateanimateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExplodedattack, canBeReplaced, canBeReplaced, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, mirror, onProjectileHit, randomTick, rotate, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, use, useShapeForLightOcclusiongetRegistryName, 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, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static net.minecraft.state.Property<net.minecraft.state.properties.RailShape> RAIL_SHAPE
public static net.minecraft.state.Property<java.lang.Boolean> CONNECTS_N
public static net.minecraft.state.Property<java.lang.Boolean> CONNECTS_S
public ReinforcedRailBlock(net.minecraft.block.AbstractBlock.Properties properties)
public void fillItemCategory(net.minecraft.item.ItemGroup p_149666_1_,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> p_149666_2_)
fillItemCategory in class net.minecraft.block.Block@Nonnull public net.minecraft.state.Property<net.minecraft.state.properties.RailShape> getShapeProperty()
getShapeProperty in class net.minecraft.block.AbstractRailBlockprotected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
createBlockStateDefinition in class net.minecraft.block.Blockpublic net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement in class net.minecraft.block.AbstractRailBlockpublic boolean canMakeSlopes(@Nonnull
net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.world.IBlockReader world,
@Nonnull
net.minecraft.util.math.BlockPos pos)
protected void updateState(@Nonnull
net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.world.World world,
@Nonnull
net.minecraft.util.math.BlockPos pos,
@Nonnull
net.minecraft.block.Block block)
updateState in class net.minecraft.block.AbstractRailBlock@Nonnull
protected net.minecraft.block.BlockState updateDir(@Nonnull
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
boolean p_208489_4_)
updateDir in class net.minecraft.block.AbstractRailBlock@Nonnull
public net.minecraft.util.math.shapes.VoxelShape getCollisionShape(@Nonnull
net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.world.IBlockReader worldIn,
@Nonnull
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context)
getCollisionShape in class net.minecraft.block.AbstractBlock@Nonnull
public net.minecraft.util.math.shapes.VoxelShape getShape(net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.world.IBlockReader reader,
@Nonnull
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context)
getShape in class net.minecraft.block.AbstractRailBlock@Nonnull public net.minecraft.block.material.PushReaction getPistonPushReaction(net.minecraft.block.BlockState state)
getPistonPushReaction in class net.minecraft.block.AbstractRailBlockpublic boolean canSurvive(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos)
canSurvive in class net.minecraft.block.AbstractRailBlockpublic void neighborChanged(@Nonnull
net.minecraft.block.BlockState state,
net.minecraft.world.World world,
@Nonnull
net.minecraft.util.math.BlockPos pos,
@Nonnull
net.minecraft.block.Block block,
@Nonnull
net.minecraft.util.math.BlockPos pos2,
boolean p_220069_6_)
neighborChanged in class net.minecraft.block.AbstractRailBlock