Class LeavesBlock

Direct Known Subclasses:
Leaves1Block, Leaves2Block

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

    • DECAYABLE

      public static final BooleanProperty DECAYABLE
      Mappings:
      Namespace Name Mixin selector
      official a Lahs;a:Lamk;
      intermediary field_1011 Lnet/minecraft/class_240;field_1011:Lnet/minecraft/class_388;
      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 Lahs;b:Lamk;
      intermediary field_1012 Lnet/minecraft/class_240;field_1012:Lnet/minecraft/class_388;
      named CHECK_DECAY Lnet/minecraft/block/LeavesBlock;CHECK_DECAY:Lnet/minecraft/state/property/BooleanProperty;
    • field_1008

      int[] field_1008
      Mappings:
      Namespace Name Mixin selector
      official N Lahs;N:[I
      intermediary field_1008 Lnet/minecraft/class_240;field_1008:[I
      named field_1008 Lnet/minecraft/block/LeavesBlock;field_1008:[I
    • field_1009

      @Environment(CLIENT) protected int field_1009
      Mappings:
      Namespace Name Mixin selector
      official O Lahs;O:I
      intermediary field_1009 Lnet/minecraft/class_240;field_1009:I
      named field_1009 Lnet/minecraft/block/LeavesBlock;field_1009:I
    • fancyGraphicsStatus

      @Environment(CLIENT) protected boolean fancyGraphicsStatus
      Mappings:
      Namespace Name Mixin selector
      official P Lahs;P:Z
      intermediary field_1010 Lnet/minecraft/class_240;field_1010: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 H Lafh;H()I
      intermediary method_622 Lnet/minecraft/class_160;method_622()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 Lafh;h(Lalz;)I
      intermediary method_722 Lnet/minecraft/class_160;method_722(Lnet/minecraft/class_376;)I
      named getColor Lnet/minecraft/block/Block;getColor(Lnet/minecraft/block/BlockState;)I
    • getBlockColor

      @Environment(CLIENT) public int getBlockColor​(WorldView view, BlockPos pos, int id)
      Returns the current block's color
      Overrides:
      getBlockColor in class Block
      Parameters:
      view - WorldView instance
      pos - The block's position
      id - Id
      Returns:
      Block color
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladq;Lcj;I)I
      intermediary method_666 Lnet/minecraft/class_160;method_666(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;I)I
      named getBlockColor Lnet/minecraft/block/Block;getBlockColor(Lnet/minecraft/world/WorldView;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 Lafh;b(Ladm;Lcj;Lalz;)V
      intermediary method_688 Lnet/minecraft/class_160;method_688(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)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 Lafh;b(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_690 Lnet/minecraft/class_160;method_690(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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 Lafh;c(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_704 Lnet/minecraft/class_160;method_704(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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_894

      private void method_894​(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official e Lahs;e(Ladm;Lcj;)V
      intermediary method_894 Lnet/minecraft/class_240;method_894(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)V
      named method_894 Lnet/minecraft/block/LeavesBlock;method_894(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 Lafh;a(Ljava/util/Random;)I
      intermediary method_677 Lnet/minecraft/class_160;method_677(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 Lafh;a(Lalz;Ljava/util/Random;I)Lzw;
      intermediary method_674 Lnet/minecraft/class_160;method_674(Lnet/minecraft/class_376;Ljava/util/Random;I)Lnet/minecraft/class_2054;
      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 Lafh;a(Ladm;Lcj;Lalz;FI)V
      intermediary method_646 Lnet/minecraft/class_160;method_646(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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_890

      protected void method_890​(World world, BlockPos blockPos, BlockState blockState, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lahs;a(Ladm;Lcj;Lalz;I)V
      intermediary method_890 Lnet/minecraft/class_240;method_890(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;I)V
      named method_890 Lnet/minecraft/block/LeavesBlock;method_890(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)V
    • method_893

      protected int method_893​(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official d Lahs;d(Lalz;)I
      intermediary method_893 Lnet/minecraft/class_240;method_893(Lnet/minecraft/class_376;)I
      named method_893 Lnet/minecraft/block/LeavesBlock;method_893(Lnet/minecraft/block/BlockState;)I
    • hasTransperancy

      public boolean hasTransperancy()
      Overrides:
      hasTransperancy in class BaseLeavesBlock
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c()Z
      intermediary method_699 Lnet/minecraft/class_160;method_699()Z
      named hasTransperancy Lnet/minecraft/block/Block;hasTransperancy()Z
    • method_892

      @Environment(CLIENT) public void method_892​(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official b Lahs;b(Z)V
      intermediary method_892 Lnet/minecraft/class_240;method_892(Z)V
      named method_892 Lnet/minecraft/block/LeavesBlock;method_892(Z)V
    • getRenderLayerType

      @Environment(CLIENT) public RenderLayer 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 m Lafh;m()Ladf;
      intermediary method_731 Lnet/minecraft/class_160;method_731()Lnet/minecraft/class_91;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/RenderLayer;
    • 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 w Lafh;w()Z
      intermediary method_740 Lnet/minecraft/class_160;method_740()Z
      named isLeafBlock Lnet/minecraft/block/Block;isLeafBlock()Z
    • getWoodType

      public abstract PlanksBlock.WoodType getWoodType​(int state)
      Mappings:
      Namespace Name Mixin selector
      official b Lahs;b(I)Laio$a;
      intermediary method_891 Lnet/minecraft/class_240;method_891(I)Lnet/minecraft/class_266$class_267;
      named getWoodType Lnet/minecraft/block/LeavesBlock;getWoodType(I)Lnet/minecraft/block/PlanksBlock$WoodType;