Class GrassBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.GrassBlock

public class GrassBlock extends Block
Mappings:
Namespace Name
intermediary net/minecraft/class_476
glue class_557
server oj
client wp
named net/minecraft/block/GrassBlock
  • Constructor Details

    • GrassBlock

      protected GrassBlock(int id)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_476;<init>(I)V
      glue <init> Lclass_557;<init>(I)V
      server <init> Loj;<init>(I)V
      client <init> Lwp;<init>(I)V
      named <init> Lnet/minecraft/block/GrassBlock;<init>(I)V
  • Method Details

    • getTextureId

      @Environment(CLIENT) public int getTextureId(BlockView blockView, int x, int y, int z, int side)
      Overrides:
      getTextureId in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1626 Lnet/minecraft/class_17;method_1626(Lnet/minecraft/class_14;IIII)I
      glue method_743 Lclass_507;method_743(Lclass_584;IIII)I
      server method_1626 Lna;method_1626(Lpb;IIII)I
      client a Luu;a(Lxp;IIII)I
      named getTextureId Lnet/minecraft/block/Block;getTextureId(Lnet/minecraft/world/BlockView;IIII)I
    • getColorMultiplier

      @Environment(CLIENT) public int getColorMultiplier(BlockView blockView, int x, int y, int z)
      Overrides:
      getColorMultiplier in class Block
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1600 Lnet/minecraft/class_17;method_1600(Lnet/minecraft/class_14;III)I
      glue method_184 Lclass_507;method_184(Lclass_584;III)I
      server method_1600 Lna;method_1600(Lpb;III)I
      client b Luu;b(Lxp;III)I
      named getColorMultiplier Lnet/minecraft/block/Block;getColorMultiplier(Lnet/minecraft/world/BlockView;III)I
    • 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 Block
      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
    • 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