Class LilyPadBlock


public class LilyPadBlock
extends PlantBlock
Mappings:
Namespace Name
official akn
intermediary net/minecraft/class_337
named net/minecraft/block/LilyPadBlock
  • Constructor Details

    • LilyPadBlock

      protected LilyPadBlock()
  • Method Details

    • appendCollisionBoxes

      public void appendCollisionBoxes​(World world, BlockPos pos, BlockState state, Box box, List<Box> list, Entity entity)
      Overrides:
      appendCollisionBoxes in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;Laug;Ljava/util/List;Lpk;)V
      intermediary method_649 Lnet/minecraft/class_160;method_649(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_646;Ljava/util/List;Lnet/minecraft/class_1745;)V
      named appendCollisionBoxes Lnet/minecraft/block/Block;appendCollisionBoxes(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Box;Ljava/util/List;Lnet/minecraft/entity/Entity;)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 PlantBlock
      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 Lafh;a(Ladm;Lcj;Lalz;)Laug;
      intermediary method_645 Lnet/minecraft/class_160;method_645(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Lnet/minecraft/class_646;
      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;
    • 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
    • canPlantOnTop

      protected boolean canPlantOnTop​(Block block)
      Overrides:
      canPlantOnTop in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      official c Lafm;c(Lafh;)Z
      intermediary method_753 Lnet/minecraft/class_167;method_753(Lnet/minecraft/class_160;)Z
      named canPlantOnTop Lnet/minecraft/block/PlantBlock;canPlantOnTop(Lnet/minecraft/block/Block;)Z
    • method_755

      public boolean method_755​(World world, BlockPos blockPos, BlockState blockState)
      Overrides:
      method_755 in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      official f Lafm;f(Ladm;Lcj;Lalz;)Z
      intermediary method_755 Lnet/minecraft/class_167;method_755(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Z
      named method_755 Lnet/minecraft/block/PlantBlock;method_755(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • 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