public class VineBlock extends Block implements IForgeShearable
Block.RenderSideCacheKey
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
Modifier and Type | Field and Description |
---|---|
static BooleanProperty |
EAST |
private static VoxelShape |
EAST_AABB |
static BooleanProperty |
NORTH |
private static VoxelShape |
NORTH_AABB |
static java.util.Map<Direction,BooleanProperty> |
PROPERTY_BY_DIRECTION |
private java.util.Map<BlockState,VoxelShape> |
shapesCache |
static BooleanProperty |
SOUTH |
private static VoxelShape |
SOUTH_AABB |
static BooleanProperty |
UP |
private static VoxelShape |
UP_AABB |
static BooleanProperty |
WEST |
private static VoxelShape |
WEST_AABB |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
delegate
Constructor and Description |
---|
VineBlock(AbstractBlock.Properties p_i48303_1_) |
Modifier and Type | Method and Description |
---|---|
private static VoxelShape |
calculateShape(BlockState p_242685_0_) |
boolean |
canBeReplaced(BlockState p_196253_1_,
BlockItemUseContext p_196253_2_) |
private boolean |
canSpread(IBlockReader p_196539_1_,
BlockPos p_196539_2_) |
private boolean |
canSupportAtFace(IBlockReader p_196541_1_,
BlockPos p_196541_2_,
Direction p_196541_3_) |
boolean |
canSurvive(BlockState p_196260_1_,
IWorldReader p_196260_2_,
BlockPos p_196260_3_) |
private BlockState |
copyRandomFaces(BlockState p_196544_1_,
BlockState p_196544_2_,
java.util.Random p_196544_3_) |
private int |
countFaces(BlockState p_208496_1_) |
protected void |
createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_) |
static BooleanProperty |
getPropertyForFace(Direction p_176267_0_) |
VoxelShape |
getShape(BlockState p_220053_1_,
IBlockReader p_220053_2_,
BlockPos p_220053_3_,
ISelectionContext p_220053_4_) |
BlockState |
getStateForPlacement(BlockItemUseContext p_196258_1_) |
private BlockState |
getUpdatedState(BlockState p_196545_1_,
IBlockReader p_196545_2_,
BlockPos p_196545_3_) |
private boolean |
hasFaces(BlockState p_196543_1_) |
private boolean |
hasHorizontalConnection(BlockState p_196540_1_) |
static boolean |
isAcceptableNeighbour(IBlockReader p_196542_0_,
BlockPos p_196542_1_,
Direction p_196542_2_) |
BlockState |
mirror(BlockState p_185471_1_,
Mirror p_185471_2_) |
void |
randomTick(BlockState p_225542_1_,
ServerWorld p_225542_2_,
BlockPos p_225542_3_,
java.util.Random p_225542_4_) |
BlockState |
rotate(BlockState p_185499_1_,
Rotation p_185499_2_) |
BlockState |
updateShape(BlockState p_196271_1_,
Direction p_196271_2_,
BlockState p_196271_3_,
IWorld p_196271_4_,
BlockPos p_196271_5_,
BlockPos p_196271_6_) |
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
attack, canBeReplaced, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, neighborChanged, onPlace, onProjectileHit, onRemove, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isShearable, onSheared
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, 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> PROPERTY_BY_DIRECTION
private static final VoxelShape UP_AABB
private static final VoxelShape WEST_AABB
private static final VoxelShape EAST_AABB
private static final VoxelShape NORTH_AABB
private static final VoxelShape SOUTH_AABB
private final java.util.Map<BlockState,VoxelShape> shapesCache
public VineBlock(AbstractBlock.Properties p_i48303_1_)
private static VoxelShape calculateShape(BlockState p_242685_0_)
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_)
getShape
in class AbstractBlock
public boolean canSurvive(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_)
canSurvive
in class AbstractBlock
private boolean hasFaces(BlockState p_196543_1_)
private int countFaces(BlockState p_208496_1_)
private boolean canSupportAtFace(IBlockReader p_196541_1_, BlockPos p_196541_2_, Direction p_196541_3_)
public static boolean isAcceptableNeighbour(IBlockReader p_196542_0_, BlockPos p_196542_1_, Direction p_196542_2_)
private BlockState getUpdatedState(BlockState p_196545_1_, IBlockReader p_196545_2_, BlockPos p_196545_3_)
public BlockState updateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_)
updateShape
in class AbstractBlock
public void randomTick(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, java.util.Random p_225542_4_)
randomTick
in class AbstractBlock
private BlockState copyRandomFaces(BlockState p_196544_1_, BlockState p_196544_2_, java.util.Random p_196544_3_)
private boolean hasHorizontalConnection(BlockState p_196540_1_)
private boolean canSpread(IBlockReader p_196539_1_, BlockPos p_196539_2_)
public boolean canBeReplaced(BlockState p_196253_1_, BlockItemUseContext p_196253_2_)
canBeReplaced
in class AbstractBlock
@Nullable public BlockState getStateForPlacement(BlockItemUseContext p_196258_1_)
getStateForPlacement
in class Block
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
createBlockStateDefinition
in class Block
public BlockState rotate(BlockState p_185499_1_, Rotation p_185499_2_)
rotate
in class AbstractBlock
public BlockState mirror(BlockState p_185471_1_, Mirror p_185471_2_)
mirror
in class AbstractBlock
public static BooleanProperty getPropertyForFace(Direction p_176267_0_)