Class LeavesBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.LeavesBlock
Direct Known Subclasses:
Leaves1Block, Leaves2Block

public abstract class LeavesBlock extends Block
Mappings:
Namespace Name
official aon
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 Laon;a:Latx;
      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 Laon;b:Latx;
      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;
    • fancyGraphicsStatus

      protected boolean fancyGraphicsStatus
      Mappings:
      Namespace Name Mixin selector
      official c Laon;c:Z
      intermediary field_9502 Lnet/minecraft/class_150;field_9502:Z
      named fancyGraphicsStatus Lnet/minecraft/block/LeavesBlock;fancyGraphicsStatus:Z
    • field_287

      int[] field_287
      Mappings:
      Namespace Name Mixin selector
      official d Laon;d:[I
      intermediary field_287 Lnet/minecraft/class_150;field_287:[I
      named field_287 Lnet/minecraft/block/LeavesBlock;field_287:[I
  • Constructor Details

    • LeavesBlock

      public LeavesBlock()
  • Method Details

    • 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 Lalu;b(Lajs;Lco;Latl;)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 Lalu;b(Lajs;Lco;Latl;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_8669

      @Environment(CLIENT) public void method_8669(BlockState blockState, World world, BlockPos blockPos, Random random)
      Overrides:
      method_8669 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Latl;Lajs;Lco;Ljava/util/Random;)V
      intermediary method_8669 Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)V
      named method_8669 Lnet/minecraft/block/Block;method_8669(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • method_8807

      private void method_8807(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official b Laon;b(Lajs;Lco;)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 Lalu;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 Lalu;a(Latl;Ljava/util/Random;I)Lafh;
      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 Lalu;a(Lajs;Lco;Latl;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 Laon;a(Lajs;Lco;Latl;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 i Laon;i(Latl;)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
    • isFullBoundsCubeForCulling

      public boolean isFullBoundsCubeForCulling(BlockState blockState)
      Overrides:
      isFullBoundsCubeForCulling in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lalu;b(Latl;)Z
      intermediary method_11560 Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Z
      named isFullBoundsCubeForCulling Lnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
    • method_325

      @Environment(CLIENT) public void method_325(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official b Laon;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 f Lalu;f()Lajk;
      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;
    • method_13703

      public boolean method_13703(BlockState state)
      Overrides:
      method_13703 in class Block
      Mappings:
      Namespace Name Mixin selector
      official u Lalu;u(Latl;)Z
      intermediary method_13703 Lnet/minecraft/class_197;method_13703(Lnet/minecraft/class_2232;)Z
      named method_13703 Lnet/minecraft/block/Block;method_13703(Lnet/minecraft/block/BlockState;)Z
    • getWoodType

      public abstract PlanksBlock.WoodType getWoodType(int state)
      Mappings:
      Namespace Name Mixin selector
      official e Laon;e(I)Lapn$a;
      intermediary method_8805 Lnet/minecraft/class_150;method_8805(I)Lnet/minecraft/class_213$class_2202;
      named getWoodType Lnet/minecraft/block/LeavesBlock;getWoodType(I)Lnet/minecraft/block/PlanksBlock$WoodType;
    • method_8654

      @Environment(CLIENT) public boolean method_8654(BlockState state, BlockView view, BlockPos pos, Direction direction)
      Overrides:
      method_8654 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Latl;Lajw;Lco;Lcv;)Z
      intermediary method_8654 Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named method_8654 Lnet/minecraft/block/Block;method_8654(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z