public class VineBlock extends Block implements IShearable
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey
Modifier and Type | Field and Description |
---|---|
static BooleanProperty |
EAST |
protected static VoxelShape |
EAST_AABB |
static java.util.Map<Direction,BooleanProperty> |
FACING_TO_PROPERTY_MAP |
static BooleanProperty |
NORTH |
protected static VoxelShape |
NORTH_AABB |
static BooleanProperty |
SOUTH |
protected static VoxelShape |
SOUTH_AABB |
static BooleanProperty |
UP |
protected static VoxelShape |
UP_AABB |
static BooleanProperty |
WEST |
protected static VoxelShape |
WEST_AABB |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
Constructor and Description |
---|
VineBlock(Block.Properties properties) |
addInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isSideInvisible, isSolid, isTransparent, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockActivated, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isShearable, onSheared
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public 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 java.util.Map<Direction,BooleanProperty> FACING_TO_PROPERTY_MAP
protected static final VoxelShape UP_AABB
protected static final VoxelShape WEST_AABB
protected static final VoxelShape EAST_AABB
protected static final VoxelShape NORTH_AABB
protected static final VoxelShape SOUTH_AABB
public VineBlock(Block.Properties properties)
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public boolean isValidPosition(BlockState state, IWorldReader worldIn, BlockPos pos)
isValidPosition
in class Block
private boolean func_196543_i(BlockState p_196543_1_)
private int countBlocksVineIsAttachedTo(BlockState p_208496_1_)
private boolean func_196541_a(IBlockReader p_196541_1_, BlockPos p_196541_2_, Direction p_196541_3_)
public static boolean canAttachTo(IBlockReader p_196542_0_, BlockPos worldIn, Direction neighborPos)
private BlockState func_196545_h(BlockState p_196545_1_, IBlockReader p_196545_2_, BlockPos p_196545_3_)
public BlockState updatePostPlacement(BlockState stateIn, Direction facing, BlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement
in class Block
public void tick(BlockState state, ServerWorld worldIn, BlockPos pos, java.util.Random rand)
private BlockState func_196544_a(BlockState p_196544_1_, BlockState p_196544_2_, java.util.Random p_196544_3_)
private boolean func_196540_x(BlockState p_196540_1_)
private boolean func_196539_a(IBlockReader p_196539_1_, BlockPos p_196539_2_)
public boolean isReplaceable(BlockState state, BlockItemUseContext useContext)
isReplaceable
in class Block
@Nullable public BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement
in class Block
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer
in class Block
public BlockState rotate(BlockState state, Rotation rot)
public BlockState mirror(BlockState state, Mirror mirrorIn)
public static BooleanProperty getPropertyFor(Direction side)
public boolean isLadder(BlockState state, IWorldReader world, BlockPos pos, LivingEntity entity)
IForgeBlock
isLadder
in interface IForgeBlock
state
- The current stateworld
- The current worldpos
- Block position in worldentity
- The entity trying to use the ladder, CAN be null.