Class LeavesBlock

Direct Known Subclasses:
Leaves1Block, Leaves2Block

public abstract class LeavesBlock extends BaseLeavesBlock
Mappings:
Namespace Name
official axg
intermediary net/minecraft/class_150
named net/minecraft/block/LeavesBlock
  • Field Details

    • DECAYABLE

      public static final BooleanProperty DECAYABLE
      Mappings:
      Namespace Name Mixin selector
      official a Laxg;a:Lbet;
      intermediary field_9503 Lnet/minecraft/class_150;field_9503:Lnet/minecraft/class_2243;
      named DECAYABLE Lnet/minecraft/block/LeavesBlock;DECAYABLE:Lnet/minecraft/state/property/BooleanProperty;
    • CHECK_DECAY

      public static final BooleanProperty CHECK_DECAY
      Mappings:
      Namespace Name Mixin selector
      official b Laxg;b:Lbet;
      intermediary field_9504 Lnet/minecraft/class_150;field_9504:Lnet/minecraft/class_2243;
      named CHECK_DECAY Lnet/minecraft/block/LeavesBlock;CHECK_DECAY:Lnet/minecraft/state/property/BooleanProperty;
    • field_287

      int[] field_287
      Mappings:
      Namespace Name Mixin selector
      official M Laxg;M:[I
      intermediary field_287 Lnet/minecraft/class_150;field_287:[I
      named field_287 Lnet/minecraft/block/LeavesBlock;field_287:[I
    • field_7461

      @Environment(CLIENT) protected int field_7461
      Mappings:
      Namespace Name Mixin selector
      official N Laxg;N:I
      intermediary field_7461 Lnet/minecraft/class_150;field_7461:I
      named field_7461 Lnet/minecraft/block/LeavesBlock;field_7461:I
    • fancyGraphicsStatus

      @Environment(CLIENT) protected boolean fancyGraphicsStatus
      Mappings:
      Namespace Name Mixin selector
      official O Laxg;O:Z
      intermediary field_9502 Lnet/minecraft/class_150;field_9502:Z
      named fancyGraphicsStatus Lnet/minecraft/block/LeavesBlock;fancyGraphicsStatus:Z
  • Constructor Details

    • LeavesBlock

      public LeavesBlock()
  • Method Details

    • 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
    • onBreaking

      public void onBreaking(World world, BlockPos pos, BlockState state)
      Runs when the block is removed (by an entity or explosion).
      Overrides:
      onBreaking in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      Mappings:
      Namespace Name Mixin selector
      official b Latr;b(Laqu;Ldt;Lbec;)V
      intermediary method_8659 Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named onBreaking Lnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)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
    • randomDisplayTick

      @Environment(CLIENT) public void randomDisplayTick(World world, BlockPos pos, BlockState state, Random rand)
      Runs every random display Tick. Useful for displaying particles around a block, like Redstone Ore.
      Overrides:
      randomDisplayTick 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 c Latr;c(Laqu;Ldt;Lbec;Ljava/util/Random;)V
      intermediary method_8669 Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • method_8807

      private void method_8807(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official d Laxg;d(Laqu;Ldt;)V
      intermediary method_8807 Lnet/minecraft/class_150;method_8807(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)V
      named method_8807 Lnet/minecraft/block/LeavesBlock;method_8807(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • 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
    • 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;
    • randomDropAsItem

      public void randomDropAsItem(World world, BlockPos pos, BlockState state, float chance, int id)
      Called when the block must be dropped as an item by dropAsItem, but luck is taken into consideration here.
      Overrides:
      randomDropAsItem in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      chance - The chance (luck factor)
      id - Id
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lbec;FI)V
      intermediary method_410 Lnet/minecraft/class_197;method_410(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;FI)V
      named randomDropAsItem Lnet/minecraft/block/Block;randomDropAsItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;FI)V
    • method_8804

      protected void method_8804(World world, BlockPos blockPos, BlockState blockState, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Laxg;a(Laqu;Ldt;Lbec;I)V
      intermediary method_8804 Lnet/minecraft/class_150;method_8804(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;I)V
      named method_8804 Lnet/minecraft/block/LeavesBlock;method_8804(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)V
    • method_8806

      protected int method_8806(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official d Laxg;d(Lbec;)I
      intermediary method_8806 Lnet/minecraft/class_150;method_8806(Lnet/minecraft/class_2232;)I
      named method_8806 Lnet/minecraft/block/LeavesBlock;method_8806(Lnet/minecraft/block/BlockState;)I
    • hasTransperancy

      public boolean hasTransperancy()
      Overrides:
      hasTransperancy in class BaseLeavesBlock
      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
    • method_325

      @Environment(CLIENT) public void method_325(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official b Laxg;b(Z)V
      intermediary method_325 Lnet/minecraft/class_150;method_325(Z)V
      named method_325 Lnet/minecraft/block/LeavesBlock;method_325(Z)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;
    • isLeafBlock

      public boolean isLeafBlock()
      Checks whether the current block is a normal block (used only by LeavesBlock)
      Overrides:
      isLeafBlock in class Block
      Returns:
      Whether the current block is a normal block
      Mappings:
      Namespace Name Mixin selector
      official u Latr;u()Z
      intermediary method_8688 Lnet/minecraft/class_197;method_8688()Z
      named isLeafBlock Lnet/minecraft/block/Block;isLeafBlock()Z
    • method_8805

      public abstract class_2202 method_8805(int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Laxg;b(I)Layx;
      intermediary method_8805 Lnet/minecraft/class_150;method_8805(I)Lnet/minecraft/class_2202;
      named method_8805 Lnet/minecraft/block/LeavesBlock;method_8805(I)Lnet/minecraft/class_2202;