public class BlockRailDetector extends BlockRailBase
Block.EnumOffsetType, Block.Properties, Block.RenderSideCacheKey
Modifier and Type | Field and Description |
---|---|
static BooleanProperty |
POWERED |
static EnumProperty<RailShape> |
SHAPE |
ASCENDING_AABB, FLAT_AABB
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockResistance, blocksMovement, capturedDrops, captureDrops, harvesters, lightValue, LOGGER, material, needsRandomTick, RANDOM, soundType, stateContainer
delegate
Constructor and Description |
---|
BlockRailDetector(Block.Properties builder) |
areCornersDisabled, canMakeSlopes, func_208489_a, getBlockFaceShape, getPushReaction, getRailDirection, getRailMaxSpeed, getRenderLayer, getShape, isFlexibleRail, isFullCube, isRail, isRail, isValidPosition, neighborChanged, onMinecartPass, onReplaced, updateState
addInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, doesSideFillSquare, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getDefaultState, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getItemDropped, getItemsToDropCount, getLightValue, getMapColor, getMaterial, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getRaytraceShape, getRenderShape, getRenderType, getSilkTouchDrop, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateForPlacement, getStateId, getTickRandomly, getTranslationKey, getValidBlockForPosition, harvestBlock, hasCustomBreakingProgress, hasTileEntity, isAir, isBlockNormalCube, isCollidable, isCollidable, isDirt, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isTopSolid, isVariableOpacity, makeCuboidShape, needsPostProcessing, nudgeEntitiesWithNewState, onBlockActivated, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, propagatesSkylightDown, quantityDropped, randomTick, registerBlocks, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAsEntity, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacement, useNeighborBrightness
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canEntityDestroy, canHarvestBlock, canPlaceTorchOnTop, canRenderInLayer, createTileEntity, doesSideBlockChestOpening, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getDrops, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isNormalCube, isReplaceableOreGen, isStickyBlock, isToolEffective, isTopSolid, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower
public static final EnumProperty<RailShape> SHAPE
public static final BooleanProperty POWERED
public BlockRailDetector(Block.Properties builder)
public int tickRate(IWorldReaderBase worldIn)
public boolean canProvidePower(IBlockState state)
canProvidePower
in class Block
public void onEntityCollision(IBlockState state, World worldIn, BlockPos pos, Entity entityIn)
onEntityCollision
in class Block
public void tick(IBlockState state, World worldIn, BlockPos pos, java.util.Random random)
public int getWeakPower(IBlockState blockState, IBlockReader blockAccess, BlockPos pos, EnumFacing side)
getWeakPower
in class Block
public int getStrongPower(IBlockState blockState, IBlockReader blockAccess, BlockPos pos, EnumFacing side)
getStrongPower
in class Block
protected void updateConnectedRails(World worldIn, BlockPos pos, IBlockState state, boolean powered)
public void onBlockAdded(IBlockState state, World worldIn, BlockPos pos, IBlockState oldState)
onBlockAdded
in class BlockRailBase
public IProperty<RailShape> getShapeProperty()
getShapeProperty
in class BlockRailBase
public boolean hasComparatorInputOverride(IBlockState state)
hasComparatorInputOverride
in class Block
public int getComparatorInputOverride(IBlockState blockState, World worldIn, BlockPos pos)
getComparatorInputOverride
in class Block
protected <T extends EntityMinecart> java.util.List<T> func_200878_a(World p_200878_1_, BlockPos p_200878_2_, java.lang.Class<T> p_200878_3_, @Nullable java.util.function.Predicate<Entity> p_200878_4_)
public IBlockState rotate(IBlockState state, Rotation rot)
public IBlockState mirror(IBlockState state, Mirror mirrorIn)
protected void fillStateContainer(StateContainer.Builder<Block,IBlockState> builder)
fillStateContainer
in class Block