public class BlockRedstoneWire extends Block
Block.EnumOffsetType, Block.Properties, Block.RenderSideCacheKey
Modifier and Type | Field and Description |
---|---|
static EnumProperty<RedstoneSide> |
EAST |
static java.util.Map<EnumFacing,EnumProperty<RedstoneSide>> |
FACING_PROPERTY_MAP |
static EnumProperty<RedstoneSide> |
NORTH |
static IntegerProperty |
POWER |
protected static VoxelShape[] |
SHAPES |
static EnumProperty<RedstoneSide> |
SOUTH |
static EnumProperty<RedstoneSide> |
WEST |
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockResistance, blocksMovement, capturedDrops, captureDrops, harvesters, lightValue, LOGGER, material, needsRandomTick, RANDOM, soundType, stateContainer
delegate
Constructor and Description |
---|
BlockRedstoneWire(Block.Properties builder) |
addInformation, allowsMovement, asItem, canDropFromExplosion, canEntitySpawn, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, doesSideFillSquare, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getDefaultState, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getItemDropped, getItemsToDropCount, getLightValue, getMapColor, getMaterial, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSilkTouchDrop, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateId, getTickRandomly, getTranslationKey, getValidBlockForPosition, harvestBlock, hasComparatorInputOverride, 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, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, propagatesSkylightDown, quantityDropped, randomTick, registerBlocks, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAsEntity, tick, tickRate, toString, updateNeighbors, 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<RedstoneSide> NORTH
public static final EnumProperty<RedstoneSide> EAST
public static final EnumProperty<RedstoneSide> SOUTH
public static final EnumProperty<RedstoneSide> WEST
public static final IntegerProperty POWER
public static final java.util.Map<EnumFacing,EnumProperty<RedstoneSide>> FACING_PROPERTY_MAP
protected static final VoxelShape[] SHAPES
public BlockRedstoneWire(Block.Properties builder)
public VoxelShape getShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
public IBlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement
in class Block
public IBlockState updatePostPlacement(IBlockState stateIn, EnumFacing facing, IBlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement
in class Block
public void updateDiagonalNeighbors(IBlockState state, IWorld worldIn, BlockPos pos, int flags)
updateDiagonalNeighbors
in class Block
public boolean isFullCube(IBlockState state)
isFullCube
in class Block
public boolean isValidPosition(IBlockState state, IWorldReaderBase worldIn, BlockPos pos)
isValidPosition
in class Block
public void onBlockAdded(IBlockState state, World worldIn, BlockPos pos, IBlockState oldState)
onBlockAdded
in class Block
public void onReplaced(IBlockState state, World worldIn, BlockPos pos, IBlockState newState, boolean isMoving)
onReplaced
in class Block
public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos)
neighborChanged
in class Block
public int getStrongPower(IBlockState blockState, IBlockReader blockAccess, BlockPos pos, EnumFacing side)
getStrongPower
in class Block
public int getWeakPower(IBlockState blockState, IBlockReader blockAccess, BlockPos pos, EnumFacing side)
getWeakPower
in class Block
protected boolean canConnectTo(IBlockState blockState, IBlockReader world, BlockPos pos, @Nullable EnumFacing side)
public boolean canProvidePower(IBlockState state)
canProvidePower
in class Block
public static int colorMultiplier(int p_176337_0_)
public void animateTick(IBlockState stateIn, World worldIn, BlockPos pos, java.util.Random rand)
animateTick
in class Block
public BlockRenderLayer getRenderLayer()
getRenderLayer
in class Block
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
public BlockFaceShape getBlockFaceShape(IBlockReader worldIn, IBlockState state, BlockPos pos, EnumFacing face)
getBlockFaceShape
in class Block