Class Leaves1Block


public class Leaves1Block
extends LeavesBlock
Mappings:
Namespace Name
official aik
intermediary net/minecraft/class_262
named net/minecraft/block/Leaves1Block
  • Field Details

    • VARIANT

      public static final EnumProperty<PlanksBlock.WoodType> VARIANT
      Mappings:
      Namespace Name Mixin selector
      official Q Laik;Q:Lamm;
      intermediary field_1068 Lnet/minecraft/class_262;field_1068:Lnet/minecraft/class_390;
      named VARIANT Lnet/minecraft/block/Leaves1Block;VARIANT:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • Leaves1Block

      public Leaves1Block()
  • Method Details

    • getColor

      @Environment(CLIENT) public int getColor​(BlockState state)
      Overrides:
      getColor in class LeavesBlock
      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 LeavesBlock
      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
    • method_890

      protected void method_890​(World world, BlockPos blockPos, BlockState blockState, int int2)
      Overrides:
      method_890 in class LeavesBlock
      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)
      Overrides:
      method_893 in class LeavesBlock
      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
    • appendItemStacks

      @Environment(CLIENT) public void appendItemStacks​(Item item, ItemGroup group, List<ItemStack> stacks)
      Appends ItemStacks to an itemgroup. Only called on the client.
      Overrides:
      appendItemStacks in class Block
      Parameters:
      item - The Item that must be added
      group - The ItemGroup that the item must be added to
      stacks - The list of currently added ItemStacks to the ItemGroup
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lzw;Lyz;Ljava/util/List;)V
      intermediary method_682 Lnet/minecraft/class_160;method_682(Lnet/minecraft/class_2054;Lnet/minecraft/class_2029;Ljava/util/List;)V
      named appendItemStacks Lnet/minecraft/block/Block;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/ItemGroup;Ljava/util/List;)V
    • createStackFromBlock

      protected ItemStack createStackFromBlock​(BlockState state)
      Creates and returns and ItemStack from a block.
      Overrides:
      createStackFromBlock in class Block
      Parameters:
      state - The block's BlockState
      Returns:
      An ItemStack instance containing the block
      Mappings:
      Namespace Name Mixin selector
      official i Lafh;i(Lalz;)Lzx;
      intermediary method_724 Lnet/minecraft/class_160;method_724(Lnet/minecraft/class_376;)Lnet/minecraft/class_2056;
      named createStackFromBlock Lnet/minecraft/block/Block;createStackFromBlock(Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
    • 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 Lafh;a(I)Lalz;
      intermediary method_637 Lnet/minecraft/class_160;method_637(I)Lnet/minecraft/class_376;
      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 Lafh;c(Lalz;)I
      intermediary method_706 Lnet/minecraft/class_160;method_706(Lnet/minecraft/class_376;)I
      named getData Lnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
    • getWoodType

      public PlanksBlock.WoodType getWoodType​(int state)
      Specified by:
      getWoodType in class LeavesBlock
      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;
    • 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 Lafh;e()Lama;
      intermediary method_714 Lnet/minecraft/class_160;method_714()Lnet/minecraft/class_378;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
    • getMeta

      public int getMeta​(BlockState state)
      Returns the metadata value for a certain BlockState
      Overrides:
      getMeta in class Block
      Parameters:
      state - The BlockState
      Returns:
      Metadata value
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lalz;)I
      intermediary method_672 Lnet/minecraft/class_160;method_672(Lnet/minecraft/class_376;)I
      named getMeta Lnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)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 Lafh;a(Ladm;Lwn;Lcj;Lalz;Lakw;)V
      intermediary method_664 Lnet/minecraft/class_160;method_664(Lnet/minecraft/class_99;Lnet/minecraft/class_1963;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_348;)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