Class BaseLeavesBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.BaseLeavesBlock
Direct Known Subclasses:
LeavesBlock

public class BaseLeavesBlock
extends Block
Mappings:
Namespace Name
official akg
intermediary net/minecraft/class_328
named net/minecraft/block/BaseLeavesBlock
  • Field Details

    • fancyGraphics

      protected boolean fancyGraphics
      Mappings:
      Namespace Name Mixin selector
      official R Lakg;R:Z
      intermediary field_1278 Lnet/minecraft/class_328;field_1278:Z
      named fancyGraphics Lnet/minecraft/block/BaseLeavesBlock;fancyGraphics:Z
  • Constructor Details

    • BaseLeavesBlock

      protected BaseLeavesBlock​(Material material, boolean fancy)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lakg;<init>(Larm;Z)V
      intermediary <init> Lnet/minecraft/class_328;<init>(Lnet/minecraft/class_591;Z)V
      named <init> Lnet/minecraft/block/BaseLeavesBlock;<init>(Lnet/minecraft/block/Material;Z)V
  • Method Details

    • hasTransperancy

      public boolean hasTransperancy()
      Overrides:
      hasTransperancy in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c()Z
      intermediary method_699 Lnet/minecraft/class_160;method_699()Z
      named hasTransperancy Lnet/minecraft/block/Block;hasTransperancy()Z
    • isSideInvisible

      @Environment(CLIENT) public boolean isSideInvisible​(WorldView view, BlockPos pos, Direction facing)
      Returns whether the current block has connected sides, i.e its side faces are invisible when covered by other blocks. Used by glass to prevent the white dots from appearing everywhere through adjacent glass blocks.
      Overrides:
      isSideInvisible in class Block
      Parameters:
      view - WorldView instance
      pos - The current block's position
      facing - The direction the block is facing
      Returns:
      Whether the current block has connected sides
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladq;Lcj;Lcq;)Z
      intermediary method_668 Lnet/minecraft/class_160;method_668(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)Z
      named isSideInvisible Lnet/minecraft/block/Block;isSideInvisible(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z