Class BlockWithEntity

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
All Implemented Interfaces:
BlockEntityProvider
Direct Known Subclasses:
AbstractSignBlock, BannerBlock, BeaconBlock, BrewingStandBlock, ChestBlock, CommandBlock, DaylightDetectorBlock, DispenserBlock, EnchantingTableBlock, EnderChestBlock, EndPortalBlock, FlowerPotBlock, FurnaceBlock, HopperBlock, JukeboxBlock, MobSpawnerBlock, NoteBlock, PistonExtensionBlock, SkeletonSkullBlock

public abstract class BlockWithEntity
extends Block
implements BlockEntityProvider
Mappings:
Namespace Name
official afc
intermediary net/minecraft/class_152
named net/minecraft/block/BlockWithEntity
  • Constructor Details

    • BlockWithEntity

      protected BlockWithEntity​(Material material)
      Parameters:
      material - The block's material
      Mappings:
      Namespace Name Mixin selector
      official <init> Lafh;<init>(Larm;)V
      intermediary <init> Lnet/minecraft/class_160;<init>(Lnet/minecraft/class_591;)V
      named <init> Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;)V
    • BlockWithEntity

      protected BlockWithEntity​(Material material, MaterialColor color)
      Parameters:
      material - The block's material
      color - The block's material color
      Mappings:
      Namespace Name Mixin selector
      official <init> Lafh;<init>(Larm;Larn;)V
      intermediary <init> Lnet/minecraft/class_160;<init>(Lnet/minecraft/class_591;Lnet/minecraft/class_592;)V
      named <init> Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;Lnet/minecraft/block/MaterialColor;)V
  • Method Details

    • method_580

      protected boolean method_580​(World world, BlockPos blockPos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lafc;a(Ladm;Lcj;Lcq;)Z
      intermediary method_580 Lnet/minecraft/class_152;method_580(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)Z
      named method_580 Lnet/minecraft/block/BlockWithEntity;method_580(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • method_581

      protected boolean method_581​(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official e Lafc;e(Ladm;Lcj;)Z
      intermediary method_581 Lnet/minecraft/class_152;method_581(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Z
      named method_581 Lnet/minecraft/block/BlockWithEntity;method_581(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • 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
    • onBreaking

      public void onBreaking​(World world, BlockPos pos, BlockState state)
      Runs when the block is removed (by an entity or explosion).
      Overrides:
      onBreaking in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b(Ladm;Lcj;Lalz;)V
      intermediary method_688 Lnet/minecraft/class_160;method_688(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)V
      named onBreaking Lnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • onEvent

      public boolean onEvent​(World world, BlockPos pos, BlockState state, int id, int meta)
      Runs when an event takes place
      Overrides:
      onEvent in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      id - Id
      meta - Metadata
      Returns:
      Whether the event is successful
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;II)Z
      intermediary method_647 Lnet/minecraft/class_160;method_647(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;II)Z
      named onEvent Lnet/minecraft/block/Block;onEvent(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;II)Z