public class HorizontalConnectingBlock extends Block implements Waterloggable
Block.NeighborGroup
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
Modifier and Type | Field and Description |
---|---|
protected VoxelShape[] |
boundingShapes |
protected VoxelShape[] |
collisionShapes |
static BooleanProperty |
EAST |
protected static Map<Direction,BooleanProperty> |
FACING_PROPERTIES |
static BooleanProperty |
NORTH |
private it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> |
SHAPE_INDEX_CACHE |
static BooleanProperty |
SOUTH |
static BooleanProperty |
WATERLOGGED |
static BooleanProperty |
WEST |
LOGGER, STATE_IDS, stateManager
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Modifier | Constructor and Description |
---|---|
protected |
HorizontalConnectingBlock(float radius1,
float radius2,
float boundingHeight1,
float boundingHeight2,
float collisionHeight,
AbstractBlock.Settings settings) |
Modifier and Type | Method and Description |
---|---|
boolean |
canPathfindThrough(BlockState state,
BlockView world,
BlockPos pos,
NavigationType type) |
protected VoxelShape[] |
createShapes(float radius1,
float radius2,
float height1,
float offset2,
float height2) |
VoxelShape |
getCollisionShape(BlockState state,
BlockView world,
BlockPos pos,
ShapeContext context) |
private static int |
getDirectionMask(Direction dir) |
FluidState |
getFluidState(BlockState state) |
VoxelShape |
getOutlineShape(BlockState state,
BlockView world,
BlockPos pos,
ShapeContext context) |
protected int |
getShapeIndex(BlockState state) |
boolean |
isTranslucent(BlockState state,
BlockView world,
BlockPos pos) |
BlockState |
mirror(BlockState state,
BlockMirror mirror) |
BlockState |
rotate(BlockState state,
BlockRotation rotation)
Applies a block rotation to a block state.
|
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, toString
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, scheduledTick
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canFillWithFluid, tryDrainFluid, tryFillWithFluid
public static final BooleanProperty NORTH
public static final BooleanProperty EAST
public static final BooleanProperty SOUTH
public static final BooleanProperty WEST
public static final BooleanProperty WATERLOGGED
protected static final Map<Direction,BooleanProperty> FACING_PROPERTIES
protected final VoxelShape[] collisionShapes
protected final VoxelShape[] boundingShapes
private final it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> SHAPE_INDEX_CACHE
protected HorizontalConnectingBlock(float radius1, float radius2, float boundingHeight1, float boundingHeight2, float collisionHeight, AbstractBlock.Settings settings)
protected VoxelShape[] createShapes(float radius1, float radius2, float height1, float offset2, float height2)
public boolean isTranslucent(BlockState state, BlockView world, BlockPos pos)
isTranslucent
in class Block
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape
in class AbstractBlock
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getCollisionShape
in class AbstractBlock
private static int getDirectionMask(Direction dir)
protected int getShapeIndex(BlockState state)
public FluidState getFluidState(BlockState state)
getFluidState
in class AbstractBlock
public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
canPathfindThrough
in class AbstractBlock
public BlockState rotate(BlockState state, BlockRotation rotation)
By default, this returns the provided block state.
rotate
in class AbstractBlock
public BlockState mirror(BlockState state, BlockMirror mirror)
mirror
in class AbstractBlock