Package net.minecraft.block
Class VineBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.VineBlock
- Mappings:
Namespace Name official bbvintermediary net/minecraft/class_209named net/minecraft/block/VineBlock
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanPropertystatic final intstatic final intstatic final intstatic final intstatic final BooleanPropertystatic final BooleanProperty[]static final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertyFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, field_483, field_484, field_486, field_487, field_7261, field_7262, field_7263, field_7264, field_7265, field_7266, field_7267, field_7268, field_9285, fullBlock, hardness, lightLevel, material, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, soundGroup, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StateManagerReturns 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(BlockView view, BlockPos pos, int id) Returns the current block's colorgetBlockState(BlockState state, BlockView view, BlockPos pos) Returns the current block's blockstate at a certain positionstatic intgetBlockStateId(BlockState state) static BooleanPropertygetByDirection(Direction dir) getCollisionBox(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.getDropItem(BlockState blockState, Random random, int state) Returns the item that must be dropped when the block is brokenReturns the appropriate RenderLayer for a block.getStateFromData(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.booleanbooleanisReplaceable(World world, BlockPos pos) private static intmethod_21820(Direction direction) private booleanmethod_6516(Block block) private booleanmethod_8950(World world, BlockPos blockPos, BlockState blockState) voidneighborUpdate(World world, BlockPos pos, BlockState state, Block block) Runs when its adjacent blocks are updated.booleanReturns 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 schedulevoidSets the bounds for the BlockItemvoidsetBoundingBox(BlockView view, BlockPos pos) stateFromData(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, 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, 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_414, method_8634, method_8666, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDisplayTick, randomDropAsItem, requiresSilkTouch, setBlockSoundGroup, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, usesNeighbourLight
-
Field Details
-
UP
- Mappings:
Namespace Name Mixin selector official aLbbv;a:Lbet;intermediary field_9775Lnet/minecraft/class_209;field_9775:Lnet/minecraft/class_2243;named UPLnet/minecraft/block/VineBlock;UP:Lnet/minecraft/state/property/BooleanProperty;
-
NORTH
- Mappings:
Namespace Name Mixin selector official bLbbv;b:Lbet;intermediary field_9776Lnet/minecraft/class_209;field_9776:Lnet/minecraft/class_2243;named NORTHLnet/minecraft/block/VineBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
-
EAST
- Mappings:
Namespace Name Mixin selector official MLbbv;M:Lbet;intermediary field_9771Lnet/minecraft/class_209;field_9771:Lnet/minecraft/class_2243;named EASTLnet/minecraft/block/VineBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
-
SOUTH
- Mappings:
Namespace Name Mixin selector official NLbbv;N:Lbet;intermediary field_9772Lnet/minecraft/class_209;field_9772:Lnet/minecraft/class_2243;named SOUTHLnet/minecraft/block/VineBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
-
WEST
- Mappings:
Namespace Name Mixin selector official OLbbv;O:Lbet;intermediary field_9773Lnet/minecraft/class_209;field_9773:Lnet/minecraft/class_2243;named WESTLnet/minecraft/block/VineBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
-
PROPERTIES
- Mappings:
Namespace Name Mixin selector official PLbbv;P:[Lbet;intermediary field_9774Lnet/minecraft/class_209;field_9774:[Lnet/minecraft/class_2243;named PROPERTIESLnet/minecraft/block/VineBlock;PROPERTIES:[Lnet/minecraft/state/property/BooleanProperty;
-
field_22392
public static final int field_22392- Mappings:
Namespace Name Mixin selector official QLbbv;Q:Iintermediary field_22392Lnet/minecraft/class_209;field_22392:Inamed field_22392Lnet/minecraft/block/VineBlock;field_22392:I
-
field_22393
public static final int field_22393- Mappings:
Namespace Name Mixin selector official RLbbv;R:Iintermediary field_22393Lnet/minecraft/class_209;field_22393:Inamed field_22393Lnet/minecraft/block/VineBlock;field_22393:I
-
field_22394
public static final int field_22394- Mappings:
Namespace Name Mixin selector official SLbbv;S:Iintermediary field_22394Lnet/minecraft/class_209;field_22394:Inamed field_22394Lnet/minecraft/block/VineBlock;field_22394:I
-
field_22395
public static final int field_22395- Mappings:
Namespace Name Mixin selector official TLbbv;T:Iintermediary field_22395Lnet/minecraft/class_209;field_22395:Inamed field_22395Lnet/minecraft/block/VineBlock;field_22395:I
-
-
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- BlockView instancepos- The block's position- Returns:
- state
- Mappings:
Namespace Name Mixin selector official aLatr;a(Lbec;Lard;Ldt;)Lbec;intermediary method_8656Lnet/minecraft/class_197;method_8656(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2232;named getBlockStateLnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;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 hLatr;h()Vintermediary method_456Lnet/minecraft/class_197;method_456()Vnamed setBlockItemBoundsLnet/minecraft/block/Block;setBlockItemBounds()V
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBlock- Mappings:
Namespace Name Mixin selector official cLatr;c()Zintermediary method_449Lnet/minecraft/class_197;method_449()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 dLatr;d()Zintermediary method_441Lnet/minecraft/class_197;method_441()Znamed renderAsNormalBlockLnet/minecraft/block/Block;renderAsNormalBlock()Z
-
isReplaceable
- Overrides:
isReplaceablein classBlock- Mappings:
Namespace Name Mixin selector official fLatr;f(Laqu;Ldt;)Zintermediary method_8638Lnet/minecraft/class_197;method_8638(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)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 aLatr;a(Lard;Ldt;)Vintermediary method_8652Lnet/minecraft/class_197;method_8652(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Vnamed setBoundingBoxLnet/minecraft/block/Block;setBoundingBox(Lnet/minecraft/world/BlockView;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 aLatr;a(Laqu;Ldt;Lbec;)Lbrt;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;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 aLatr;a(Laqu;Ldt;Lej;)Zintermediary method_8662Lnet/minecraft/class_197;method_8662(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed canBePlacedAdjacentLnet/minecraft/block/Block;canBePlacedAdjacent(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
method_6516
- Mappings:
Namespace Name Mixin selector official cLbbv;c(Latr;)Zintermediary method_6516Lnet/minecraft/class_209;method_6516(Lnet/minecraft/class_197;)Znamed method_6516Lnet/minecraft/block/VineBlock;method_6516(Lnet/minecraft/block/Block;)Z
-
method_8950
- Mappings:
Namespace Name Mixin selector official eLbbv;e(Laqu;Ldt;Lbec;)Zintermediary method_8950Lnet/minecraft/class_209;method_8950(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Znamed method_8950Lnet/minecraft/block/VineBlock;method_8950(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- BlockView instancepos- The block's positionid- Id- Returns:
- Block color
- Mappings:
Namespace Name Mixin selector official aLatr;a(Lard;Ldt;I)Iintermediary method_438Lnet/minecraft/class_197;method_438(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;I)Inamed getBlockColorLnet/minecraft/block/Block;getBlockColor(Lnet/minecraft/world/BlockView;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 aLatr;a(Laqu;Ldt;Lbec;Latr;)Vintermediary method_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_197;)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 bLatr;b(Laqu;Ldt;Lbec;Ljava/util/Random;)Vintermediary method_8661Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;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
-
method_21820
- Mappings:
Namespace Name Mixin selector official bLbbv;b(Lej;)Iintermediary method_21820Lnet/minecraft/class_209;method_21820(Lnet/minecraft/class_1354;)Inamed method_21820Lnet/minecraft/block/VineBlock;method_21820(Lnet/minecraft/util/math/Direction;)I
-
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 aLatr;a(Laqu;Ldt;Lej;FFFILxm;)Lbec;intermediary method_8645Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;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 aLatr;a(Lbec;Ljava/util/Random;I)Lalq;intermediary method_398Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;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 aLatr;a(Ljava/util/Random;)Iintermediary method_403Lnet/minecraft/class_197;method_403(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 aLatr;a(Laqu;Lahd;Ldt;Lbec;Lbcm;)Vintermediary method_8651Lnet/minecraft/class_197;method_8651(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_226;)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 kLatr;k()Laql;intermediary method_8687Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
-
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 aLatr;a(I)Lbec;intermediary method_8635Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;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 cLatr;c(Lbec;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)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 eLatr;e()Lbed;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-
getByDirection
- Mappings:
Namespace Name Mixin selector official aLbbv;a(Lej;)Lbet;intermediary method_8948Lnet/minecraft/class_209;method_8948(Lnet/minecraft/class_1354;)Lnet/minecraft/class_2243;named getByDirectionLnet/minecraft/block/VineBlock;getByDirection(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/state/property/BooleanProperty;
-
getBlockStateId
- Mappings:
Namespace Name Mixin selector official dLbbv;d(Lbec;)Iintermediary method_8949Lnet/minecraft/class_209;method_8949(Lnet/minecraft/class_2232;)Inamed getBlockStateIdLnet/minecraft/block/VineBlock;getBlockStateId(Lnet/minecraft/block/BlockState;)I
-