public class BufferStopBlock extends CustomAdvancedTileEntityRailBlock
Modifier and Type | Field and Description |
---|---|
static net.minecraft.state.DirectionProperty |
FACING |
blockItem, name, SHAPE, tileEntityType
Constructor and Description |
---|
BufferStopBlock(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
canMakeSlopes(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
protected void |
fillStateContainer(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
net.minecraft.util.math.shapes.VoxelShape |
getCollisionShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context) |
float |
getRailMaxSpeed(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.item.minecart.AbstractMinecartEntity cart) |
net.minecraft.util.BlockRenderLayer |
getRenderLayer() |
net.minecraft.util.math.shapes.VoxelShape |
getShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context) |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext context) |
protected net.minecraft.block.BlockState |
getUpdatedState(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
boolean placing) |
boolean |
isFlexibleRail(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
void |
onMinecartPass(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.item.minecart.AbstractMinecartEntity cart) |
void |
onReplaced(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean isMoving) |
createBlockItem, createTileEntity, getBlockItem, getEntryName, getShapeProperty, getTileEntityType, hasTileEntity
areCornersDisabled, getPushReaction, getRailDirection, isRail, isRail, isValidPosition, neighborChanged, onBlockAdded, updateState
addInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, func_220055_a, func_220064_c, func_220074_n, func_220080_a, getBlockFromItem, getBlockHardness, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasSolidSide, hasTileEntity, isAir, isDirt, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isVariableOpacity, makeCuboidShape, mirror, needsPostProcessing, nudgeEntitiesWithNewState, onBlockActivated, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, rotate, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacement
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isTileEntityFromType, openContainer, openContainer
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canRenderInLayer, collisionExtendsVertically, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isReplaceableOreGen, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower
public net.minecraft.util.math.shapes.VoxelShape getShape(net.minecraft.block.BlockState state, net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.shapes.ISelectionContext context)
getShape
in class net.minecraft.block.AbstractRailBlock
public void onMinecartPass(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.item.minecart.AbstractMinecartEntity cart)
onMinecartPass
in class net.minecraft.block.AbstractRailBlock
public net.minecraft.util.math.shapes.VoxelShape getCollisionShape(net.minecraft.block.BlockState state, net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.shapes.ISelectionContext context)
getCollisionShape
in class net.minecraft.block.Block
public net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement
in class net.minecraft.block.Block
protected net.minecraft.block.BlockState getUpdatedState(net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, boolean placing)
getUpdatedState
in class net.minecraft.block.AbstractRailBlock
public void onReplaced(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState newState, boolean isMoving)
onReplaced
in class net.minecraft.block.AbstractRailBlock
public float getRailMaxSpeed(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.item.minecart.AbstractMinecartEntity cart)
getRailMaxSpeed
in class net.minecraft.block.AbstractRailBlock
protected void fillStateContainer(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
fillStateContainer
in class CustomAdvancedTileEntityRailBlock
public net.minecraft.util.BlockRenderLayer getRenderLayer()
getRenderLayer
in class net.minecraft.block.AbstractRailBlock
public boolean canMakeSlopes(net.minecraft.block.BlockState state, net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos)
canMakeSlopes
in class net.minecraft.block.AbstractRailBlock
public boolean isFlexibleRail(net.minecraft.block.BlockState state, net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos)
isFlexibleRail
in class net.minecraft.block.AbstractRailBlock