Package net.minecraft.block
Class VineBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.VineBlock
public class VineBlock extends Block
- Mappings:
Namespace Name official akkintermediary net/minecraft/class_333named net/minecraft/block/VineBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType, Block.Sound -
Field Summary
Fields Modifier and Type Field Description static BooleanPropertyEASTstatic BooleanPropertyNORTHstatic BooleanProperty[]PROPERTIESstatic BooleanPropertySOUTHstatic BooleanPropertyUPstatic BooleanPropertyWESTFields inherited from class net.minecraft.block.Block
ANVIL, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, CLOTH, fullBlock, GLASS, GRASS, GRAVEL, LADDER, lightLevel, material, materialColor, opacity, ORE, particleGravity, RAIL, randomTicks, REGISTRY, resistance, SAND, SLIME, slipperiness, SNOW, sound, stateManager, stats, STONE, strength, transluscent, useNeighbourLight, WOOD -
Constructor Summary
Constructors Constructor Description VineBlock() -
Method Summary
Modifier and Type Method Description protected StateManagerappendProperties()Returns a new state manager with a property array.booleancanBePlacedAdjacent(World world, BlockPos pos, Direction direction)Returns whether blocks can be placed adjacent to it.intgetBlockColor(WorldView view, BlockPos pos, int id)Returns the current block's colorBlockStategetBlockState(BlockState state, WorldView view, BlockPos pos)Returns the current block's blockstate at a certain positionstatic intgetBlockStateId(BlockState state)static BooleanPropertygetByDirection(Direction dir)BoxgetCollisionBox(World world, BlockPos pos, BlockState state)Returns a box by adding the block's current location and the block's corresponding value in its Bounding BoxintgetColor()intgetColor(BlockState state)intgetData(BlockState state)Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workintgetDropCount(Random rand)Returns the amount of items the block should drop on breaking without bonus rolls.ItemgetDropItem(BlockState blockState, Random random, int state)Returns the item that must be dropped when the block is brokenRenderLayergetRenderLayerType()Returns the appropriate RenderLayer for a block.BlockStategetStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity)Returns a BlockState from an idvoidharvest(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity be)Runs every time a player begins to break the block.booleanhasTransperancy()booleanisReplaceable(World world, BlockPos pos)private booleanmethod_1052(Block block)private booleanmethod_1054(World world, BlockPos blockPos, BlockState blockState)voidneighborUpdate(World world, BlockPos pos, BlockState state, Block block)Runs when its adjacent blocks are updated.booleanrenderAsNormalBlock()Returns whether the block can be rendered as a normal blockvoidscheduledTick(World world, BlockPos pos, BlockState state, Random rand)Runs when the block is updated as per a schedulevoidsetBlockItemBounds()Sets the bounds for the BlockItemvoidsetBoundingBox(WorldView view, BlockPos pos)BlockStatestateFromData(int data)Returns a blockstate of the current block from it's idMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendItemStacks, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAtPos, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockFromItem, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getComparatorOutput, getDefaultState, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaterialColor, getMaxX, getMaxY, getMaxZ, getMeta, getMeta, getMinX, getMinY, getMinZ, getOffsetType, getOpacity, getPickItem, getPistonInteractionType, getSelectionBox, getStateFromRawId, getStateManager, getStrength, getStrongRedstonePower, getTickRate, getTranslatedName, getTranslationKey, getWeakRedstonePower, hasBlockEntity, hasCollision, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isLeafBlock, isNormalBlock, isSideInvisible, isTransluscent, method_655, method_696, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDisplayTick, randomDropAsItem, requiresSilkTouch, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setSound, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, usesNeighbourLight
-
Field Details
-
UP
- Mappings:
Namespace Name Mixin selector official aLakk;a:Lamk;intermediary field_1304Lnet/minecraft/class_333;field_1304:Lnet/minecraft/class_388;named UPLnet/minecraft/block/VineBlock;UP:Lnet/minecraft/state/property/BooleanProperty;
-
NORTH
- Mappings:
Namespace Name Mixin selector official bLakk;b:Lamk;intermediary field_1305Lnet/minecraft/class_333;field_1305:Lnet/minecraft/class_388;named NORTHLnet/minecraft/block/VineBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
-
EAST
- Mappings:
Namespace Name Mixin selector official NLakk;N:Lamk;intermediary field_1300Lnet/minecraft/class_333;field_1300:Lnet/minecraft/class_388;named EASTLnet/minecraft/block/VineBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
-
SOUTH
- Mappings:
Namespace Name Mixin selector official OLakk;O:Lamk;intermediary field_1301Lnet/minecraft/class_333;field_1301:Lnet/minecraft/class_388;named SOUTHLnet/minecraft/block/VineBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
-
WEST
- Mappings:
Namespace Name Mixin selector official PLakk;P:Lamk;intermediary field_1302Lnet/minecraft/class_333;field_1302:Lnet/minecraft/class_388;named WESTLnet/minecraft/block/VineBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
-
PROPERTIES
- Mappings:
Namespace Name Mixin selector official QLakk;Q:[Lamk;intermediary field_1303Lnet/minecraft/class_333;field_1303:[Lnet/minecraft/class_388;named PROPERTIESLnet/minecraft/block/VineBlock;PROPERTIES:[Lnet/minecraft/state/property/BooleanProperty;
-
-
Constructor Details
-
VineBlock
public VineBlock()
-
-
Method Details
-
getBlockState
Returns the current block's blockstate at a certain position- Overrides:
getBlockStatein classBlock- Parameters:
state- The original blockstateview- WorldView instancepos- The block's position- Returns:
- state
- Mappings:
Namespace Name Mixin selector official aLafh;a(Lalz;Ladq;Lcj;)Lalz;intermediary method_673Lnet/minecraft/class_160;method_673(Lnet/minecraft/class_376;Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Lnet/minecraft/class_376;named getBlockStateLnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
setBlockItemBounds
public void setBlockItemBounds()Sets the bounds for the BlockItem- Overrides:
setBlockItemBoundsin classBlock- Mappings:
Namespace Name Mixin selector official jLafh;j()Vintermediary method_725Lnet/minecraft/class_160;method_725()Vnamed setBlockItemBoundsLnet/minecraft/block/Block;setBlockItemBounds()V
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBlock- Mappings:
Namespace Name Mixin selector official cLafh;c()Zintermediary method_699Lnet/minecraft/class_160;method_699()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()Z
-
renderAsNormalBlock
public boolean renderAsNormalBlock()Returns whether the block can be rendered as a normal block- Overrides:
renderAsNormalBlockin classBlock- Returns:
- Whether the block can be rendered as a normal block
- Mappings:
Namespace Name Mixin selector official dLafh;d()Zintermediary method_709Lnet/minecraft/class_160;method_709()Znamed renderAsNormalBlockLnet/minecraft/block/Block;renderAsNormalBlock()Z
-
isReplaceable
- Overrides:
isReplaceablein classBlock- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;)Zintermediary method_643Lnet/minecraft/class_160;method_643(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Znamed isReplaceableLnet/minecraft/block/Block;isReplaceable(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
setBoundingBox
- Overrides:
setBoundingBoxin classBlock- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladq;Lcj;)Vintermediary method_665Lnet/minecraft/class_160;method_665(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Vnamed setBoundingBoxLnet/minecraft/block/Block;setBoundingBox(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)V
-
getCollisionBox
Returns a box by adding the block's current location and the block's corresponding value in its Bounding Box- Overrides:
getCollisionBoxin classBlock- Parameters:
world- The world that the block has been placedpos- The block's positionstate- The block's BlockState- Returns:
- The Collision box
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Lalz;)Laug;intermediary method_645Lnet/minecraft/class_160;method_645(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Lnet/minecraft/class_646;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
-
canBePlacedAdjacent
Returns whether blocks can be placed adjacent to it.- Overrides:
canBePlacedAdjacentin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positiondirection- The block's direction- Returns:
- Whether blocks can be placed adjacent to it
- Mappings:
Namespace Name Mixin selector official bLafh;b(Ladm;Lcj;Lcq;)Zintermediary method_691Lnet/minecraft/class_160;method_691(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)Znamed canBePlacedAdjacentLnet/minecraft/block/Block;canBePlacedAdjacent(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
method_1052
- Mappings:
Namespace Name Mixin selector official cLakk;c(Lafh;)Zintermediary method_1052Lnet/minecraft/class_333;method_1052(Lnet/minecraft/class_160;)Znamed method_1052Lnet/minecraft/block/VineBlock;method_1052(Lnet/minecraft/block/Block;)Z
-
method_1054
- Mappings:
Namespace Name Mixin selector official eLakk;e(Ladm;Lcj;Lalz;)Zintermediary method_1054Lnet/minecraft/class_333;method_1054(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Znamed method_1054Lnet/minecraft/block/VineBlock;method_1054(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
getColor
-
getColor
-
getBlockColor
Returns the current block's color- Overrides:
getBlockColorin classBlock- Parameters:
view- WorldView instancepos- The block's positionid- Id- Returns:
- Block color
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladq;Lcj;I)Iintermediary method_666Lnet/minecraft/class_160;method_666(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;I)Inamed getBlockColorLnet/minecraft/block/Block;getBlockColor(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;I)I
-
neighborUpdate
Runs when its adjacent blocks are updated. It will also run when the block is placed or removed as Air is being updated.- Overrides:
neighborUpdatein classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateblock- The adjacent Block that updated the current block- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Lalz;Lafh;)Vintermediary method_648Lnet/minecraft/class_160;method_648(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_160;)Vnamed neighborUpdateLnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/Block;)V
-
scheduledTick
Runs when the block is updated as per a schedule- Overrides:
scheduledTickin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStaterand- Random object- Mappings:
Namespace Name Mixin selector official bLafh;b(Ladm;Lcj;Lalz;Ljava/util/Random;)Vintermediary method_690Lnet/minecraft/class_160;method_690(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
getStateFromData
public BlockState getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity)Returns a BlockState from an id- Overrides:
getStateFromDatain classBlock- Parameters:
world- The world that the block is placed inpos- The block's positiondir- The block's direction- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Lcq;FFFILpr;)Lalz;intermediary method_656Lnet/minecraft/class_160;method_656(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;FFFILnet/minecraft/class_1752;)Lnet/minecraft/class_376;named getStateFromDataLnet/minecraft/block/Block;getStateFromData(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFFILnet/minecraft/entity/LivingEntity;)Lnet/minecraft/block/BlockState;
-
getDropItem
Returns the item that must be dropped when the block is broken- Overrides:
getDropItemin classBlock- Parameters:
blockState- The block's BlockStaterandom- Random objectstate- State- Returns:
- The Item that drops after the block breaks
- Mappings:
Namespace Name Mixin selector official aLafh;a(Lalz;Ljava/util/Random;I)Lzw;intermediary method_674Lnet/minecraft/class_160;method_674(Lnet/minecraft/class_376;Ljava/util/Random;I)Lnet/minecraft/class_2054;named getDropItemLnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
-
getDropCount
Returns the amount of items the block should drop on breaking without bonus rolls.- Overrides:
getDropCountin classBlock- Parameters:
rand- Random object- Returns:
- Amount of items to be dropped
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ljava/util/Random;)Iintermediary method_677Lnet/minecraft/class_160;method_677(Ljava/util/Random;)Inamed getDropCountLnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
-
harvest
public void harvest(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity be)Runs every time a player begins to break the block.- Overrides:
harvestin classBlock- Parameters:
world- The world that the block is placed inplayer- The player who is mining the blockpos- The block's positionstate- The block's BlockStatebe- The block entity in the block- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lwn;Lcj;Lalz;Lakw;)Vintermediary method_664Lnet/minecraft/class_160;method_664(Lnet/minecraft/class_99;Lnet/minecraft/class_1963;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_348;)Vnamed harvestLnet/minecraft/block/Block;harvest(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;)V
-
getRenderLayerType
Returns the appropriate RenderLayer for a block. Only called on the client.- Overrides:
getRenderLayerTypein classBlock- Returns:
- The block's RenderLayer
- Mappings:
Namespace Name Mixin selector official mLafh;m()Ladf;intermediary method_731Lnet/minecraft/class_160;method_731()Lnet/minecraft/class_91;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/RenderLayer;
-
stateFromData
Returns a blockstate of the current block from it's id- Overrides:
stateFromDatain classBlock- Parameters:
data- The Blockstate's associated data value- Returns:
- The Default state
- Mappings:
Namespace Name Mixin selector official aLafh;a(I)Lalz;intermediary method_637Lnet/minecraft/class_160;method_637(I)Lnet/minecraft/class_376;named stateFromDataLnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
-
getData
Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not work- Overrides:
getDatain classBlock- Parameters:
state- The Blockstate- Returns:
- Zero
- Mappings:
Namespace Name Mixin selector official cLafh;c(Lalz;)Iintermediary method_706Lnet/minecraft/class_160;method_706(Lnet/minecraft/class_376;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official eLafh;e()Lama;intermediary method_714Lnet/minecraft/class_160;method_714()Lnet/minecraft/class_378;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-
getByDirection
- Mappings:
Namespace Name Mixin selector official aLakk;a(Lcq;)Lamk;intermediary method_1051Lnet/minecraft/class_333;method_1051(Lnet/minecraft/class_1383;)Lnet/minecraft/class_388;named getByDirectionLnet/minecraft/block/VineBlock;getByDirection(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/state/property/BooleanProperty;
-
getBlockStateId
- Mappings:
Namespace Name Mixin selector official dLakk;d(Lalz;)Iintermediary method_1053Lnet/minecraft/class_333;method_1053(Lnet/minecraft/class_376;)Inamed getBlockStateIdLnet/minecraft/block/VineBlock;getBlockStateId(Lnet/minecraft/block/BlockState;)I
-