Class CropBlock


public class CropBlock extends PlantBlock
Mappings:
Namespace Name
intermediary net/minecraft/class_301
glue class_321
server ij
client ni
named net/minecraft/block/CropBlock
  • Constructor Details

    • CropBlock

      protected CropBlock(int id, int textureId)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_473;<init>(II)V
      glue <init> Lclass_538;<init>(II)V
      server <init> Lnw;<init>(II)V
      client <init> Lwb;<init>(II)V
      named <init> Lnet/minecraft/block/PlantBlock;<init>(II)V
  • Method Details

    • canPlantOnTop

      protected boolean canPlantOnTop(int id)
      Overrides:
      canPlantOnTop in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1683 Lnet/minecraft/class_473;method_1683(I)Z
      glue method_1089 Lclass_538;method_1089(I)Z
      server c Lnw;c(I)Z
      client d Lwb;d(I)Z
      named canPlantOnTop Lnet/minecraft/block/PlantBlock;canPlantOnTop(I)Z
    • onTick

      public void onTick(World world, int x, int y, int z, Random random)
      Called at a frequency based on the return value of Block.getTickRate(). This method will be called approximately Block.getTickRate() times per second.
      Overrides:
      onTick in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1602 Lnet/minecraft/class_17;method_1602(Lnet/minecraft/class_18;IIILjava/util/Random;)V
      glue method_20 Lclass_507;method_20(Lclass_129;IIILjava/util/Random;)V
      server a Lna;a(Ldj;IIILjava/util/Random;)V
      client a Luu;a(Lfd;IIILjava/util/Random;)V
      named onTick Lnet/minecraft/block/Block;onTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
    • applyFullGrowth

      public void applyFullGrowth(World world, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_996 Lnet/minecraft/class_301;method_996(Lnet/minecraft/class_18;III)V
      glue method_1352 Lclass_321;method_1352(Lclass_129;III)V
      server d_ Lij;d_(Ldj;III)V
      client d_ Lni;d_(Lfd;III)V
      named applyFullGrowth Lnet/minecraft/block/CropBlock;applyFullGrowth(Lnet/minecraft/world/World;III)V
    • getAvailableMoisture

      private float getAvailableMoisture(World world, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_997 Lnet/minecraft/class_301;method_997(Lnet/minecraft/class_18;III)F
      glue method_1353 Lclass_321;method_1353(Lclass_129;III)F
      server h Lij;h(Ldj;III)F
      client i Lni;i(Lfd;III)F
      named getAvailableMoisture Lnet/minecraft/block/CropBlock;getAvailableMoisture(Lnet/minecraft/world/World;III)F
    • getTexture

      public int getTexture(int side, int meta)
      Overrides:
      getTexture in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1627 Lnet/minecraft/class_17;method_1627(II)I
      glue method_96 Lclass_507;method_96(II)I
      server a Lna;a(II)I
      client a Luu;a(II)I
      named getTexture Lnet/minecraft/block/Block;getTexture(II)I
    • getRenderType

      @Environment(CLIENT) public int getRenderType()
      Overrides:
      getRenderType in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1621 Lnet/minecraft/class_17;method_1621()I
      glue method_652 Lclass_507;method_652()I
      server method_1621 Lna;method_1621()I
      client b Luu;b()I
      named getRenderType Lnet/minecraft/block/Block;getRenderType()I
    • dropStacks

      public void dropStacks(World world, int x, int y, int z, int int2, float float2)
      Overrides:
      dropStacks in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1625 Lnet/minecraft/class_17;method_1625(Lnet/minecraft/class_18;IIIIF)V
      glue method_683 Lclass_507;method_683(Lclass_129;IIIIF)V
      server a Lna;a(Ldj;IIIIF)V
      client a Luu;a(Lfd;IIIIF)V
      named dropStacks Lnet/minecraft/block/Block;dropStacks(Lnet/minecraft/world/World;IIIIF)V
    • getDroppedItemId

      public int getDroppedItemId(int blockMeta, Random random)
      Overrides:
      getDroppedItemId in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1601 Lnet/minecraft/class_17;method_1601(ILjava/util/Random;)I
      glue method_19 Lclass_507;method_19(ILjava/util/Random;)I
      server a Lna;a(ILjava/util/Random;)I
      client a Luu;a(ILjava/util/Random;)I
      named getDroppedItemId Lnet/minecraft/block/Block;getDroppedItemId(ILjava/util/Random;)I
    • getDroppedItemCount

      public int getDroppedItemCount(Random random)
      Overrides:
      getDroppedItemCount in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1603 Lnet/minecraft/class_17;method_1603(Ljava/util/Random;)I
      glue method_21 Lclass_507;method_21(Ljava/util/Random;)I
      server a Lna;a(Ljava/util/Random;)I
      client a Luu;a(Ljava/util/Random;)I
      named getDroppedItemCount Lnet/minecraft/block/Block;getDroppedItemCount(Ljava/util/Random;)I