Class BarrierBlock

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

public class BarrierBlock
extends Block
Mappings:
Namespace Name
official afb
intermediary net/minecraft/class_151
named net/minecraft/block/BarrierBlock
  • Constructor Details

    • BarrierBlock

      protected BarrierBlock()
  • Method Details

    • getBlockType

      public int getBlockType()
      Overrides:
      getBlockType in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b()I
      intermediary method_684 Lnet/minecraft/class_160;method_684()I
      named getBlockType Lnet/minecraft/block/Block;getBlockType()I
    • 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
    • getAmbientOcclusionLightLevel

      @Environment(CLIENT) public float getAmbientOcclusionLightLevel()
      Returns the block's ambient occlusion light level on the basis of whether it is a normal block. Only called on the client.
      Overrides:
      getAmbientOcclusionLightLevel in class Block
      Returns:
      The block's ambient occlusion light level
      Mappings:
      Namespace Name Mixin selector
      official h Lafh;h()F
      intermediary method_721 Lnet/minecraft/class_160;method_721()F
      named getAmbientOcclusionLightLevel Lnet/minecraft/block/Block;getAmbientOcclusionLightLevel()F
    • randomDropAsItem

      public void randomDropAsItem​(World world, BlockPos pos, BlockState state, float chance, int id)
      Called when the block must be dropped as an item by dropAsItem, but luck is taken into consideration here.
      Overrides:
      randomDropAsItem in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      chance - The chance (luck factor)
      id - Id
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;FI)V
      intermediary method_646 Lnet/minecraft/class_160;method_646(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;FI)V
      named randomDropAsItem Lnet/minecraft/block/Block;randomDropAsItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;FI)V