public class VineBlock extends Block
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
static BooleanProperty |
EAST |
private static VoxelShape |
EAST_SHAPE |
static Map<Direction,BooleanProperty> |
FACING_PROPERTIES |
private Map<BlockState,VoxelShape> |
field_26659 |
static BooleanProperty |
NORTH |
private static VoxelShape |
NORTH_SHAPE |
static BooleanProperty |
SOUTH |
private static VoxelShape |
SOUTH_SHAPE |
static BooleanProperty |
UP |
private static VoxelShape |
UP_SHAPE |
static BooleanProperty |
WEST |
private static VoxelShape |
WEST_SHAPE |
LOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Constructor and Description |
|---|
VineBlock(AbstractBlock.Settings settings) |
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, scheduledTickpublic static final BooleanProperty UP
public static final BooleanProperty NORTH
public static final BooleanProperty EAST
public static final BooleanProperty SOUTH
public static final BooleanProperty WEST
public static final Map<Direction,BooleanProperty> FACING_PROPERTIES
private static final VoxelShape UP_SHAPE
private static final VoxelShape EAST_SHAPE
private static final VoxelShape WEST_SHAPE
private static final VoxelShape SOUTH_SHAPE
private static final VoxelShape NORTH_SHAPE
private final Map<BlockState,VoxelShape> field_26659
public VineBlock(AbstractBlock.Settings settings)
private static VoxelShape method_31018(BlockState blockState)
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape in class AbstractBlockpublic boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt in class AbstractBlockprivate boolean hasAdjacentBlocks(BlockState state)
private int getAdjacentBlockCount(BlockState state)
public static boolean shouldConnectTo(BlockView world, BlockPos pos, Direction direction)
private BlockState getPlacementShape(BlockState state, BlockView world, BlockPos pos)
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate in class AbstractBlockpublic void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
randomTick in class AbstractBlockprivate BlockState getGrownState(BlockState above, BlockState state, Random random)
private boolean hasHorizontalSide(BlockState state)
public boolean canReplace(BlockState state, ItemPlacementContext context)
canReplace in class AbstractBlock@Nullable public BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState in class Blockprotected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Blockpublic BlockState rotate(BlockState state, BlockRotation rotation)
By default, this returns the provided block state.
rotate in class AbstractBlockpublic BlockState mirror(BlockState state, BlockMirror mirror)
mirror in class AbstractBlockpublic static BooleanProperty getFacingProperty(Direction direction)