Class GlassBlock


public class GlassBlock
extends TransparentBlock
Mappings:
Namespace Name
official ahc
intermediary net/minecraft/class_221
named net/minecraft/block/GlassBlock
  • Constructor Details

    • GlassBlock

      public GlassBlock​(Material material, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lahj;<init>(Larm;Z)V
      intermediary <init> Lnet/minecraft/class_229;<init>(Lnet/minecraft/class_591;Z)V
      named <init> Lnet/minecraft/block/TransparentBlock;<init>(Lnet/minecraft/block/Material;Z)V
  • Method Details

    • 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 Lafh;a(Ljava/util/Random;)I
      intermediary method_677 Lnet/minecraft/class_160;method_677(Ljava/util/Random;)I
      named getDropCount Lnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
    • getRenderLayerType

      @Environment(CLIENT) public RenderLayer 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 m Lafh;m()Ladf;
      intermediary method_731 Lnet/minecraft/class_160;method_731()Lnet/minecraft/class_91;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/RenderLayer;
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      Returns whether the block can be rendered as a normal block
      Overrides:
      renderAsNormalBlock in class Block
      Returns:
      Whether the block can be rendered as a normal block
      Mappings:
      Namespace Name Mixin selector
      official d Lafh;d()Z
      intermediary method_709 Lnet/minecraft/class_160;method_709()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • requiresSilkTouch

      protected boolean requiresSilkTouch()
      Overrides:
      requiresSilkTouch in class Block
      Mappings:
      Namespace Name Mixin selector
      official I Lafh;I()Z
      intermediary method_623 Lnet/minecraft/class_160;method_623()Z
      named requiresSilkTouch Lnet/minecraft/block/Block;requiresSilkTouch()Z