public class ConnectingBlock extends Block
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
protected VoxelShape[] |
CONNECTIONS_TO_SHAPE |
static BooleanProperty |
DOWN |
static BooleanProperty |
EAST |
static Map<Direction,BooleanProperty> |
FACING_PROPERTIES |
private static Direction[] |
FACINGS |
static BooleanProperty |
NORTH |
static BooleanProperty |
SOUTH |
static BooleanProperty |
UP |
static BooleanProperty |
WEST |
LOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Modifier | Constructor and Description |
|---|---|
protected |
ConnectingBlock(float radius,
AbstractBlock.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
private VoxelShape[] |
generateFacingsToShapeMap(float radius) |
protected int |
getConnectionMask(BlockState state) |
VoxelShape |
getOutlineShape(BlockState state,
BlockView world,
BlockPos pos,
ShapeContext context) |
boolean |
isTranslucent(BlockState state,
BlockView world,
BlockPos pos) |
addStacksForDisplay, afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTickprivate static final Direction[] FACINGS
public static final BooleanProperty NORTH
public static final BooleanProperty EAST
public static final BooleanProperty SOUTH
public static final BooleanProperty WEST
public static final BooleanProperty UP
public static final BooleanProperty DOWN
public static final Map<Direction,BooleanProperty> FACING_PROPERTIES
protected final VoxelShape[] CONNECTIONS_TO_SHAPE
protected ConnectingBlock(float radius,
AbstractBlock.Settings settings)
private VoxelShape[] generateFacingsToShapeMap(float radius)
public boolean isTranslucent(BlockState state, BlockView world, BlockPos pos)
isTranslucent in class Blockpublic VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape in class AbstractBlockprotected int getConnectionMask(BlockState state)