Package net.minecraft.block
Class VineBlock
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Block>
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.VineBlock
-
- All Implemented Interfaces:
IItemProvider,IForgeBlock,IForgeShearable,IForgeRegistryEntry<Block>
public class VineBlock extends Block implements IForgeShearable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.RenderSideCacheKey
-
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
Fields Modifier and Type Field Description static BooleanPropertyEASTprivate static VoxelShapeEAST_AABBstatic BooleanPropertyNORTHprivate static VoxelShapeNORTH_AABBstatic java.util.Map<Direction,BooleanProperty>PROPERTY_BY_DIRECTIONprivate java.util.Map<BlockState,VoxelShape>shapesCachestatic BooleanPropertySOUTHprivate static VoxelShapeSOUTH_AABBstatic BooleanPropertyUPprivate static VoxelShapeUP_AABBstatic BooleanPropertyWESTprivate static VoxelShapeWEST_AABB-
Fields inherited from class net.minecraft.block.Block
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
-
Fields inherited from class net.minecraft.block.AbstractBlock
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description VineBlock(AbstractBlock.Properties p_i48303_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static VoxelShapecalculateShape(BlockState p_242685_0_)booleancanBeReplaced(BlockState p_196253_1_, BlockItemUseContext p_196253_2_)private booleancanSpread(IBlockReader p_196539_1_, BlockPos p_196539_2_)private booleancanSupportAtFace(IBlockReader p_196541_1_, BlockPos p_196541_2_, Direction p_196541_3_)booleancanSurvive(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_)private BlockStatecopyRandomFaces(BlockState p_196544_1_, BlockState p_196544_2_, java.util.Random p_196544_3_)private intcountFaces(BlockState p_208496_1_)protected voidcreateBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)static BooleanPropertygetPropertyForFace(Direction p_176267_0_)VoxelShapegetShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_)BlockStategetStateForPlacement(BlockItemUseContext p_196258_1_)private BlockStategetUpdatedState(BlockState p_196545_1_, IBlockReader p_196545_2_, BlockPos p_196545_3_)private booleanhasFaces(BlockState p_196543_1_)private booleanhasHorizontalConnection(BlockState p_196540_1_)static booleanisAcceptableNeighbour(IBlockReader p_196542_0_, BlockPos p_196542_1_, Direction p_196542_2_)BlockStatemirror(BlockState p_185471_1_, Mirror p_185471_2_)voidrandomTick(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, java.util.Random p_225542_4_)BlockStaterotate(BlockState p_185499_1_, Rotation p_185499_2_)BlockStateupdateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_)-
Methods inherited from class net.minecraft.block.Block
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
-
Methods inherited from class net.minecraft.block.AbstractBlock
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
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
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
-
Methods inherited from interface net.minecraftforge.common.IForgeShearable
isShearable, onSheared
-
-
-
-
Field Detail
-
UP
public static final BooleanProperty UP
-
NORTH
public static final BooleanProperty NORTH
-
EAST
public static final BooleanProperty EAST
-
SOUTH
public static final BooleanProperty SOUTH
-
WEST
public static final BooleanProperty WEST
-
PROPERTY_BY_DIRECTION
public static final java.util.Map<Direction,BooleanProperty> PROPERTY_BY_DIRECTION
-
UP_AABB
private static final VoxelShape UP_AABB
-
WEST_AABB
private static final VoxelShape WEST_AABB
-
EAST_AABB
private static final VoxelShape EAST_AABB
-
NORTH_AABB
private static final VoxelShape NORTH_AABB
-
SOUTH_AABB
private static final VoxelShape SOUTH_AABB
-
shapesCache
private final java.util.Map<BlockState,VoxelShape> shapesCache
-
-
Constructor Detail
-
VineBlock
public VineBlock(AbstractBlock.Properties p_i48303_1_)
-
-
Method Detail
-
calculateShape
private static VoxelShape calculateShape(BlockState p_242685_0_)
-
getShape
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_)
- Overrides:
getShapein classAbstractBlock
-
canSurvive
public boolean canSurvive(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_)
- Overrides:
canSurvivein classAbstractBlock
-
hasFaces
private boolean hasFaces(BlockState p_196543_1_)
-
countFaces
private int countFaces(BlockState p_208496_1_)
-
canSupportAtFace
private boolean canSupportAtFace(IBlockReader p_196541_1_, BlockPos p_196541_2_, Direction p_196541_3_)
-
isAcceptableNeighbour
public static boolean isAcceptableNeighbour(IBlockReader p_196542_0_, BlockPos p_196542_1_, Direction p_196542_2_)
-
getUpdatedState
private BlockState getUpdatedState(BlockState p_196545_1_, IBlockReader p_196545_2_, BlockPos p_196545_3_)
-
updateShape
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_)
- Overrides:
updateShapein classAbstractBlock
-
randomTick
public void randomTick(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, java.util.Random p_225542_4_)
- Overrides:
randomTickin classAbstractBlock
-
copyRandomFaces
private BlockState copyRandomFaces(BlockState p_196544_1_, BlockState p_196544_2_, java.util.Random p_196544_3_)
-
hasHorizontalConnection
private boolean hasHorizontalConnection(BlockState p_196540_1_)
-
canSpread
private boolean canSpread(IBlockReader p_196539_1_, BlockPos p_196539_2_)
-
canBeReplaced
public boolean canBeReplaced(BlockState p_196253_1_, BlockItemUseContext p_196253_2_)
- Overrides:
canBeReplacedin classAbstractBlock
-
getStateForPlacement
@Nullable public BlockState getStateForPlacement(BlockItemUseContext p_196258_1_)
- Overrides:
getStateForPlacementin classBlock
-
createBlockStateDefinition
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
- Overrides:
createBlockStateDefinitionin classBlock
-
rotate
public BlockState rotate(BlockState p_185499_1_, Rotation p_185499_2_)
- Overrides:
rotatein classAbstractBlock
-
mirror
public BlockState mirror(BlockState p_185471_1_, Mirror p_185471_2_)
- Overrides:
mirrorin classAbstractBlock
-
getPropertyForFace
public static BooleanProperty getPropertyForFace(Direction p_176267_0_)
-
-