Class VineBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.VineBlock

public class VineBlock extends Block
Mappings:
Namespace Name
official bbv
intermediary net/minecraft/class_209
named net/minecraft/block/VineBlock
  • Field Details

    • UP

      public static final BooleanProperty UP
      Mappings:
      Namespace Name Mixin selector
      official a Lbbv;a:Lbet;
      intermediary field_9775 Lnet/minecraft/class_209;field_9775:Lnet/minecraft/class_2243;
      named UP Lnet/minecraft/block/VineBlock;UP:Lnet/minecraft/state/property/BooleanProperty;
    • NORTH

      public static final BooleanProperty NORTH
      Mappings:
      Namespace Name Mixin selector
      official b Lbbv;b:Lbet;
      intermediary field_9776 Lnet/minecraft/class_209;field_9776:Lnet/minecraft/class_2243;
      named NORTH Lnet/minecraft/block/VineBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
    • EAST

      public static final BooleanProperty EAST
      Mappings:
      Namespace Name Mixin selector
      official M Lbbv;M:Lbet;
      intermediary field_9771 Lnet/minecraft/class_209;field_9771:Lnet/minecraft/class_2243;
      named EAST Lnet/minecraft/block/VineBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
    • SOUTH

      public static final BooleanProperty SOUTH
      Mappings:
      Namespace Name Mixin selector
      official N Lbbv;N:Lbet;
      intermediary field_9772 Lnet/minecraft/class_209;field_9772:Lnet/minecraft/class_2243;
      named SOUTH Lnet/minecraft/block/VineBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
    • WEST

      public static final BooleanProperty WEST
      Mappings:
      Namespace Name Mixin selector
      official O Lbbv;O:Lbet;
      intermediary field_9773 Lnet/minecraft/class_209;field_9773:Lnet/minecraft/class_2243;
      named WEST Lnet/minecraft/block/VineBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
    • PROPERTIES

      public static final BooleanProperty[] PROPERTIES
      Mappings:
      Namespace Name Mixin selector
      official P Lbbv;P:[Lbet;
      intermediary field_9774 Lnet/minecraft/class_209;field_9774:[Lnet/minecraft/class_2243;
      named PROPERTIES Lnet/minecraft/block/VineBlock;PROPERTIES:[Lnet/minecraft/state/property/BooleanProperty;
    • field_22392

      public static final int field_22392
      Mappings:
      Namespace Name Mixin selector
      official Q Lbbv;Q:I
      intermediary field_22392 Lnet/minecraft/class_209;field_22392:I
      named field_22392 Lnet/minecraft/block/VineBlock;field_22392:I
    • field_22393

      public static final int field_22393
      Mappings:
      Namespace Name Mixin selector
      official R Lbbv;R:I
      intermediary field_22393 Lnet/minecraft/class_209;field_22393:I
      named field_22393 Lnet/minecraft/block/VineBlock;field_22393:I
    • field_22394

      public static final int field_22394
      Mappings:
      Namespace Name Mixin selector
      official S Lbbv;S:I
      intermediary field_22394 Lnet/minecraft/class_209;field_22394:I
      named field_22394 Lnet/minecraft/block/VineBlock;field_22394:I
    • field_22395

      public static final int field_22395
      Mappings:
      Namespace Name Mixin selector
      official T Lbbv;T:I
      intermediary field_22395 Lnet/minecraft/class_209;field_22395:I
      named field_22395 Lnet/minecraft/block/VineBlock;field_22395:I
  • Constructor Details

    • VineBlock

      public VineBlock()
  • Method Details

    • getBlockState

      public BlockState getBlockState(BlockState state, BlockView view, BlockPos pos)
      Returns the current block's blockstate at a certain position
      Overrides:
      getBlockState in class Block
      Parameters:
      state - The original blockstate
      view - BlockView instance
      pos - The block's position
      Returns:
      state
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lbec;Lard;Ldt;)Lbec;
      intermediary method_8656 Lnet/minecraft/class_197;method_8656(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2232;
      named getBlockState Lnet/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:
      setBlockItemBounds in class Block
      Mappings:
      Namespace Name Mixin selector
      official h Latr;h()V
      intermediary method_456 Lnet/minecraft/class_197;method_456()V
      named setBlockItemBounds Lnet/minecraft/block/Block;setBlockItemBounds()V
    • hasTransperancy

      public boolean hasTransperancy()
      Overrides:
      hasTransperancy in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c()Z
      intermediary method_449 Lnet/minecraft/class_197;method_449()Z
      named hasTransperancy Lnet/minecraft/block/Block;hasTransperancy()Z
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      Returns whether the block can be rendered as a normal block
      Overrides:
      renderAsNormalBlock in class Block
      Returns:
      Whether the block can be rendered as a normal block
      Mappings:
      Namespace Name Mixin selector
      official d Latr;d()Z
      intermediary method_441 Lnet/minecraft/class_197;method_441()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • isReplaceable

      public boolean isReplaceable(World world, BlockPos pos)
      Overrides:
      isReplaceable in class Block
      Mappings:
      Namespace Name Mixin selector
      official f Latr;f(Laqu;Ldt;)Z
      intermediary method_8638 Lnet/minecraft/class_197;method_8638(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named isReplaceable Lnet/minecraft/block/Block;isReplaceable(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • setBoundingBox

      public void setBoundingBox(BlockView view, BlockPos pos)
      Overrides:
      setBoundingBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lard;Ldt;)V
      intermediary method_8652 Lnet/minecraft/class_197;method_8652(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)V
      named setBoundingBox Lnet/minecraft/block/Block;setBoundingBox(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)V
    • getCollisionBox

      public Box 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 Box
      Overrides:
      getCollisionBox in class Block
      Parameters:
      world - The world that the block has been placed
      pos - The block's position
      state - The block's BlockState
      Returns:
      The Collision box
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lbec;)Lbrt;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
    • canBePlacedAdjacent

      public boolean canBePlacedAdjacent(World world, BlockPos pos, Direction direction)
      Returns whether blocks can be placed adjacent to it.
      Overrides:
      canBePlacedAdjacent in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      direction - The block's direction
      Returns:
      Whether blocks can be placed adjacent to it
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lej;)Z
      intermediary method_8662 Lnet/minecraft/class_197;method_8662(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named canBePlacedAdjacent Lnet/minecraft/block/Block;canBePlacedAdjacent(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • method_6516

      private boolean method_6516(Block block)
      Mappings:
      Namespace Name Mixin selector
      official c Lbbv;c(Latr;)Z
      intermediary method_6516 Lnet/minecraft/class_209;method_6516(Lnet/minecraft/class_197;)Z
      named method_6516 Lnet/minecraft/block/VineBlock;method_6516(Lnet/minecraft/block/Block;)Z
    • method_8950

      private boolean method_8950(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official e Lbbv;e(Laqu;Ldt;Lbec;)Z
      intermediary method_8950 Lnet/minecraft/class_209;method_8950(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named method_8950 Lnet/minecraft/block/VineBlock;method_8950(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • getColor

      @Environment(CLIENT) public int getColor()
      Overrides:
      getColor in class Block
      Mappings:
      Namespace Name Mixin selector
      official F Latr;F()I
      intermediary method_470 Lnet/minecraft/class_197;method_470()I
      named getColor Lnet/minecraft/block/Block;getColor()I
    • getColor

      @Environment(CLIENT) public int getColor(BlockState state)
      Overrides:
      getColor in class Block
      Mappings:
      Namespace Name Mixin selector
      official h Latr;h(Lbec;)I
      intermediary method_8681 Lnet/minecraft/class_197;method_8681(Lnet/minecraft/class_2232;)I
      named getColor Lnet/minecraft/block/Block;getColor(Lnet/minecraft/block/BlockState;)I
    • getBlockColor

      @Environment(CLIENT) public int getBlockColor(BlockView view, BlockPos pos, int id)
      Returns the current block's color
      Overrides:
      getBlockColor in class Block
      Parameters:
      view - BlockView instance
      pos - The block's position
      id - Id
      Returns:
      Block color
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lard;Ldt;I)I
      intermediary method_438 Lnet/minecraft/class_197;method_438(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;I)I
      named getBlockColor Lnet/minecraft/block/Block;getBlockColor(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;I)I
    • neighborUpdate

      public void neighborUpdate(World world, BlockPos pos, BlockState state, Block block)
      Runs when its adjacent blocks are updated. It will also run when the block is placed or removed as Air is being updated.
      Overrides:
      neighborUpdate in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      block - The adjacent Block that updated the current block
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lbec;Latr;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_197;)V
      named neighborUpdate Lnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/Block;)V
    • scheduledTick

      public void scheduledTick(World world, BlockPos pos, BlockState state, Random rand)
      Runs when the block is updated as per a schedule
      Overrides:
      scheduledTick in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official b Latr;b(Laqu;Ldt;Lbec;Ljava/util/Random;)V
      intermediary method_8661 Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • method_21820

      private static int method_21820(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official b Lbbv;b(Lej;)I
      intermediary method_21820 Lnet/minecraft/class_209;method_21820(Lnet/minecraft/class_1354;)I
      named method_21820 Lnet/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:
      getStateFromData in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      dir - The block's direction
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lej;FFFILxm;)Lbec;
      intermediary method_8645 Lnet/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 getStateFromData Lnet/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

      public Item getDropItem(BlockState blockState, Random random, int state)
      Returns the item that must be dropped when the block is broken
      Overrides:
      getDropItem in class Block
      Parameters:
      blockState - The block's BlockState
      random - Random object
      state - State
      Returns:
      The Item that drops after the block breaks
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lbec;Ljava/util/Random;I)Lalq;
      intermediary method_398 Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;
      named getDropItem Lnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
    • getDropCount

      public int getDropCount(Random rand)
      Returns the amount of items the block should drop on breaking without bonus rolls.
      Overrides:
      getDropCount in class Block
      Parameters:
      rand - Random object
      Returns:
      Amount of items to be dropped
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Ljava/util/Random;)I
      intermediary method_403 Lnet/minecraft/class_197;method_403(Ljava/util/Random;)I
      named getDropCount Lnet/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:
      harvest in class Block
      Parameters:
      world - The world that the block is placed in
      player - The player who is mining the block
      pos - The block's position
      state - The block's BlockState
      be - The block entity in the block
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Lahd;Ldt;Lbec;Lbcm;)V
      intermediary method_8651 Lnet/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;)V
      named harvest Lnet/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

      @Environment(CLIENT) public BlockRenderLayer getRenderLayerType()
      Returns the appropriate RenderLayer for a block. Only called on the client.
      Overrides:
      getRenderLayerType in class Block
      Returns:
      The block's RenderLayer
      Mappings:
      Namespace Name Mixin selector
      official k Latr;k()Laql;
      intermediary method_8687 Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
    • stateFromData

      public BlockState stateFromData(int data)
      Returns a blockstate of the current block from it's id
      Overrides:
      stateFromData in class Block
      Parameters:
      data - The Blockstate's associated data value
      Returns:
      The Default state
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(I)Lbec;
      intermediary method_8635 Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;
      named stateFromData Lnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
    • getData

      public int getData(BlockState state)
      Returns the data value for a blockstate Throws an IllegalArmumentException as this method does not work
      Overrides:
      getData in class Block
      Parameters:
      state - The Blockstate
      Returns:
      Zero
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Lbec;)I
      intermediary method_8671 Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)I
      named getData Lnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
    • appendProperties

      protected StateManager appendProperties()
      Returns a new state manager with a property array.
      Overrides:
      appendProperties in class Block
      Returns:
      New state manager
      Mappings:
      Namespace Name Mixin selector
      official e Latr;e()Lbed;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
    • getByDirection

      public static BooleanProperty getByDirection(Direction dir)
      Mappings:
      Namespace Name Mixin selector
      official a Lbbv;a(Lej;)Lbet;
      intermediary method_8948 Lnet/minecraft/class_209;method_8948(Lnet/minecraft/class_1354;)Lnet/minecraft/class_2243;
      named getByDirection Lnet/minecraft/block/VineBlock;getByDirection(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/state/property/BooleanProperty;
    • getBlockStateId

      public static int getBlockStateId(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official d Lbbv;d(Lbec;)I
      intermediary method_8949 Lnet/minecraft/class_209;method_8949(Lnet/minecraft/class_2232;)I
      named getBlockStateId Lnet/minecraft/block/VineBlock;getBlockStateId(Lnet/minecraft/block/BlockState;)I