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_2174
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_429 Lnet/minecraft/class_197;method_429()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_449 Lnet/minecraft/class_197;method_449()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_6440 Lnet/minecraft/class_197;method_6440()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_410 Lnet/minecraft/class_197;method_410(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;FI)V
      named randomDropAsItem Lnet/minecraft/block/Block;randomDropAsItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;FI)V