Class InfestedBlock

All Implemented Interfaces:
ItemConvertible

public class InfestedBlock
extends Block
Mappings:
Namespace Name
official cah
intermediary net/minecraft/class_2384
named net/minecraft/block/InfestedBlock
  • Field Details

    • REGULAR_TO_INFESTED

      private static final Map<Block,​Block> REGULAR_TO_INFESTED
      Mappings:
      Namespace Name Mixin selector
      official b Lcah;b:Ljava/util/Map;
      intermediary field_11179 Lnet/minecraft/class_2384;field_11179:Ljava/util/Map;
      named REGULAR_TO_INFESTED Lnet/minecraft/block/InfestedBlock;REGULAR_TO_INFESTED:Ljava/util/Map;
    • regularBlock

      private final Block regularBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcah;a:Lbwu;
      intermediary field_11178 Lnet/minecraft/class_2384;field_11178:Lnet/minecraft/class_2248;
      named regularBlock Lnet/minecraft/block/InfestedBlock;regularBlock:Lnet/minecraft/block/Block;
  • Constructor Details

    • InfestedBlock

      public InfestedBlock​(Block regularBlock, AbstractBlock.Settings settings)
      Creates an infested block
      Parameters:
      regularBlock - the block this infested block should mimic
      settings - block settings
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcah;<init>(Lbwu;Lchs$c;)V
      intermediary <init> Lnet/minecraft/class_2384;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/InfestedBlock;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • getRegularBlock

      public Block getRegularBlock()
      Mappings:
      Namespace Name Mixin selector
      official c Lcah;c()Lbwu;
      intermediary method_10271 Lnet/minecraft/class_2384;method_10271()Lnet/minecraft/class_2248;
      named getRegularBlock Lnet/minecraft/block/InfestedBlock;getRegularBlock()Lnet/minecraft/block/Block;
    • isInfestable

      public static boolean isInfestable​(BlockState block)
      Mappings:
      Namespace Name Mixin selector
      official h Lcah;h(Lcht;)Z
      intermediary method_10269 Lnet/minecraft/class_2384;method_10269(Lnet/minecraft/class_2680;)Z
      named isInfestable Lnet/minecraft/block/InfestedBlock;isInfestable(Lnet/minecraft/block/BlockState;)Z
    • spawnSilverfish

      private void spawnSilverfish​(ServerWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcah;a(Laav;Lfx;)V
      intermediary method_24797 Lnet/minecraft/class_2384;method_24797(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)V
      named spawnSilverfish Lnet/minecraft/block/InfestedBlock;spawnSilverfish(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
    • onStacksDropped

      public void onStacksDropped​(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)
      Overrides:
      onStacksDropped in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lchs;a(Lcht;Laav;Lfx;Lbnv;)V
      intermediary method_9565 Lnet/minecraft/class_4970;method_9565(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)V
      named onStacksDropped Lnet/minecraft/block/AbstractBlock;onStacksDropped(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)V
    • onDestroyedByExplosion

      public void onDestroyedByExplosion​(World world, BlockPos pos, Explosion explosion)
      Called when this block is destroyed by an explosion.
      Overrides:
      onDestroyedByExplosion in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbtv;Lfx;Lbtn;)V
      intermediary method_9586 Lnet/minecraft/class_2248;method_9586(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1927;)V
      named onDestroyedByExplosion Lnet/minecraft/block/Block;onDestroyedByExplosion(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/explosion/Explosion;)V
    • fromRegularBlock

      public static BlockState fromRegularBlock​(Block regularBlock)
      Mappings:
      Namespace Name Mixin selector
      official a Lcah;a(Lbwu;)Lcht;
      intermediary method_10270 Lnet/minecraft/class_2384;method_10270(Lnet/minecraft/class_2248;)Lnet/minecraft/class_2680;
      named fromRegularBlock Lnet/minecraft/block/InfestedBlock;fromRegularBlock(Lnet/minecraft/block/Block;)Lnet/minecraft/block/BlockState;