Class Block

java.lang.Object
net.minecraft.block.Block
Direct Known Subclasses:
AbstractButtonBlock, AbstractFluidBlock, AbstractPressurePlateBlock, AbstractRailBlock, AirBlock, BaseLeavesBlock, BigMushroomBlock, BlockWithEntity, BookshelfBlock, CactusBlock, CakeBlock, CarpetBlock, CauldronBlock, ClayBlock, CobwebBlock, CraftingTableBlock, DirtBlock, DoorBlock, DragonEggBlock, EndPortalFrameBlock, FallingBlock, FarmlandBlock, FenceBlock, FireBlock, GlowstoneBlock, GrassBlock, HardenedClayBlock, HorizontalFacingBlock, InfestedBlock, LadderBlock, LeverBlock, MelonBlock, MetalBlockBlock, MyceliumBlock, NetherrackBlock, OreBlock, PackedIceBlock, PaneBlock, PillarBlock, PistonBlock, PistonHeadBlock, PlanksBlock, PlantBlock, QuartzBlock, RedstoneLampBlock, RedstoneOreBlock, RedstoneWireBlock, SandstoneBlock, SlabBlock, SnowBlock, SnowLayerBlock, SoulSandBlock, SpongeBlock, StairsBlock, StoneBlock, StoneBrickBlock, SugarCaneBlock, TntBlock, TorchBlock, TransparentBlock, TrapdoorBlock, TripwireBlock, TripwireHookBlock, VineBlock, WallBlock, WoolBlock

public class Block extends Object
The Block class provides useful methods and fields for creation of Blocks. All blocks extend the Block class. The Block class also registers all the blocks.
Mappings:
Namespace Name
official aht
intermediary net/minecraft/class_197
named net/minecraft/block/Block
  • Field Details

    • REGISTRY

      public static final SimpleRegistry REGISTRY
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c:Lcv;
      intermediary field_7260 Lnet/minecraft/class_197;field_7260:Lnet/minecraft/class_1943;
      named REGISTRY Lnet/minecraft/block/Block;REGISTRY:Lnet/minecraft/util/registry/SimpleRegistry;
    • field_483

      public static final BlockSoundGroup field_483
      Mappings:
      Namespace Name Mixin selector
      official e Laht;e:Lahx;
      intermediary field_483 Lnet/minecraft/class_197;field_483:Lnet/minecraft/class_200;
      named field_483 Lnet/minecraft/block/Block;field_483:Lnet/minecraft/sound/BlockSoundGroup;
    • field_484

      public static final BlockSoundGroup field_484
      Mappings:
      Namespace Name Mixin selector
      official f Laht;f:Lahx;
      intermediary field_484 Lnet/minecraft/class_197;field_484:Lnet/minecraft/class_200;
      named field_484 Lnet/minecraft/block/Block;field_484:Lnet/minecraft/sound/BlockSoundGroup;
    • field_7261

      public static final BlockSoundGroup field_7261
      Mappings:
      Namespace Name Mixin selector
      official g Laht;g:Lahx;
      intermediary field_7261 Lnet/minecraft/class_197;field_7261:Lnet/minecraft/class_200;
      named field_7261 Lnet/minecraft/block/Block;field_7261:Lnet/minecraft/sound/BlockSoundGroup;
    • field_486

      public static final BlockSoundGroup field_486
      Mappings:
      Namespace Name Mixin selector
      official h Laht;h:Lahx;
      intermediary field_486 Lnet/minecraft/class_197;field_486:Lnet/minecraft/class_200;
      named field_486 Lnet/minecraft/block/Block;field_486:Lnet/minecraft/sound/BlockSoundGroup;
    • field_487

      public static final BlockSoundGroup field_487
      Mappings:
      Namespace Name Mixin selector
      official i Laht;i:Lahx;
      intermediary field_487 Lnet/minecraft/class_197;field_487:Lnet/minecraft/class_200;
      named field_487 Lnet/minecraft/block/Block;field_487:Lnet/minecraft/sound/BlockSoundGroup;
    • field_7262

      public static final BlockSoundGroup field_7262
      Mappings:
      Namespace Name Mixin selector
      official j Laht;j:Lahx;
      intermediary field_7262 Lnet/minecraft/class_197;field_7262:Lnet/minecraft/class_200;
      named field_7262 Lnet/minecraft/block/Block;field_7262:Lnet/minecraft/sound/BlockSoundGroup;
    • field_7263

      public static final BlockSoundGroup field_7263
      Mappings:
      Namespace Name Mixin selector
      official k Laht;k:Lahx;
      intermediary field_7263 Lnet/minecraft/class_197;field_7263:Lnet/minecraft/class_200;
      named field_7263 Lnet/minecraft/block/Block;field_7263:Lnet/minecraft/sound/BlockSoundGroup;
    • field_7264

      public static final BlockSoundGroup field_7264
      Mappings:
      Namespace Name Mixin selector
      official l Laht;l:Lahx;
      intermediary field_7264 Lnet/minecraft/class_197;field_7264:Lnet/minecraft/class_200;
      named field_7264 Lnet/minecraft/block/Block;field_7264:Lnet/minecraft/sound/BlockSoundGroup;
    • field_7265

      public static final BlockSoundGroup field_7265
      Mappings:
      Namespace Name Mixin selector
      official m Laht;m:Lahx;
      intermediary field_7265 Lnet/minecraft/class_197;field_7265:Lnet/minecraft/class_200;
      named field_7265 Lnet/minecraft/block/Block;field_7265:Lnet/minecraft/sound/BlockSoundGroup;
    • field_7266

      public static final BlockSoundGroup field_7266
      Mappings:
      Namespace Name Mixin selector
      official n Laht;n:Lahx;
      intermediary field_7266 Lnet/minecraft/class_197;field_7266:Lnet/minecraft/class_200;
      named field_7266 Lnet/minecraft/block/Block;field_7266:Lnet/minecraft/sound/BlockSoundGroup;
    • field_7267

      public static final BlockSoundGroup field_7267
      Mappings:
      Namespace Name Mixin selector
      official o Laht;o:Lahx;
      intermediary field_7267 Lnet/minecraft/class_197;field_7267:Lnet/minecraft/class_200;
      named field_7267 Lnet/minecraft/block/Block;field_7267:Lnet/minecraft/sound/BlockSoundGroup;
    • field_7268

      public static final BlockSoundGroup field_7268
      Mappings:
      Namespace Name Mixin selector
      official p Laht;p:Lahx;
      intermediary field_7268 Lnet/minecraft/class_197;field_7268:Lnet/minecraft/class_200;
      named field_7268 Lnet/minecraft/block/Block;field_7268:Lnet/minecraft/sound/BlockSoundGroup;
    • itemGroup

      private ItemGroup itemGroup
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a:Laae;
      intermediary field_372 Lnet/minecraft/class_197;field_372:Lnet/minecraft/class_1041;
      named itemGroup Lnet/minecraft/block/Block;itemGroup:Lnet/minecraft/item/itemgroup/ItemGroup;
    • field_6259

      protected String field_6259
      Mappings:
      Namespace Name Mixin selector
      official d Laht;d:Ljava/lang/String;
      intermediary field_6259 Lnet/minecraft/class_197;field_6259:Ljava/lang/String;
      named field_6259 Lnet/minecraft/block/Block;field_6259:Ljava/lang/String;
    • fullBlock

      protected boolean fullBlock
      Specifies whether the current block is a full block
      Mappings:
      Namespace Name Mixin selector
      official q Laht;q:Z
      intermediary field_7269 Lnet/minecraft/class_197;field_7269:Z
      named fullBlock Lnet/minecraft/block/Block;fullBlock:Z
    • opacity

      protected int opacity
      Stores the light opacity of the block
      Mappings:
      Namespace Name Mixin selector
      official r Laht;r:I
      intermediary field_7270 Lnet/minecraft/class_197;field_7270:I
      named opacity Lnet/minecraft/block/Block;opacity:I
    • transluscent

      protected boolean transluscent
      Specifies whether the current block is transluscent
      Mappings:
      Namespace Name Mixin selector
      official s Laht;s:Z
      intermediary field_7271 Lnet/minecraft/class_197;field_7271:Z
      named transluscent Lnet/minecraft/block/Block;transluscent:Z
    • lightLevel

      protected int lightLevel
      Stores the block's luminescence
      Mappings:
      Namespace Name Mixin selector
      official t Laht;t:I
      intermediary field_7272 Lnet/minecraft/class_197;field_7272:I
      named lightLevel Lnet/minecraft/block/Block;lightLevel:I
    • useNeighbourLight

      protected boolean useNeighbourLight
      Mappings:
      Namespace Name Mixin selector
      official u Laht;u:Z
      intermediary field_7273 Lnet/minecraft/class_197;field_7273:Z
      named useNeighbourLight Lnet/minecraft/block/Block;useNeighbourLight:Z
    • hardness

      protected float hardness
      Stores the current block's hardness
      Mappings:
      Namespace Name Mixin selector
      official v Laht;v:F
      intermediary field_467 Lnet/minecraft/class_197;field_467:F
      named hardness Lnet/minecraft/block/Block;hardness:F
    • blastResistance

      protected float blastResistance
      Stores the current block's resistance
      Mappings:
      Namespace Name Mixin selector
      official w Laht;w:F
      intermediary field_468 Lnet/minecraft/class_197;field_468:F
      named blastResistance Lnet/minecraft/block/Block;blastResistance:F
    • field_469

      protected boolean field_469
      Mappings:
      Namespace Name Mixin selector
      official x Laht;x:Z
      intermediary field_469 Lnet/minecraft/class_197;field_469:Z
      named field_469 Lnet/minecraft/block/Block;field_469:Z
    • stats

      protected boolean stats
      Specifies whether the current block is tracked for stats
      Mappings:
      Namespace Name Mixin selector
      official y Laht;y:Z
      intermediary field_470 Lnet/minecraft/class_197;field_470:Z
      named stats Lnet/minecraft/block/Block;stats:Z
    • randomTicks

      protected boolean randomTicks
      Specifies whether the current block ticks randomly
      Mappings:
      Namespace Name Mixin selector
      official z Laht;z:Z
      intermediary field_471 Lnet/minecraft/class_197;field_471:Z
      named randomTicks Lnet/minecraft/block/Block;randomTicks:Z
    • blockEntity

      protected boolean blockEntity
      Specifies whether the current block has a block entity
      Mappings:
      Namespace Name Mixin selector
      official A Laht;A:Z
      intermediary field_472 Lnet/minecraft/class_197;field_472:Z
      named blockEntity Lnet/minecraft/block/Block;blockEntity:Z
    • boundingBoxMinX

      protected double boundingBoxMinX
      Stores the Minimum value on the X axis for the voxel shape
      Mappings:
      Namespace Name Mixin selector
      official B Laht;B:D
      intermediary field_473 Lnet/minecraft/class_197;field_473:D
      named boundingBoxMinX Lnet/minecraft/block/Block;boundingBoxMinX:D
    • boundingBoxMinY

      protected double boundingBoxMinY
      Stores the Minimum value on the Y axis for the voxel shape
      Mappings:
      Namespace Name Mixin selector
      official C Laht;C:D
      intermediary field_474 Lnet/minecraft/class_197;field_474:D
      named boundingBoxMinY Lnet/minecraft/block/Block;boundingBoxMinY:D
    • boundingBoxMinZ

      protected double boundingBoxMinZ
      Stores the Minimum value on the Z axis for the voxel shape
      Mappings:
      Namespace Name Mixin selector
      official D Laht;D:D
      intermediary field_475 Lnet/minecraft/class_197;field_475:D
      named boundingBoxMinZ Lnet/minecraft/block/Block;boundingBoxMinZ:D
    • boundingBoxMaxX

      protected double boundingBoxMaxX
      Stores the Maximum value on the X axis for the voxel shape
      Mappings:
      Namespace Name Mixin selector
      official E Laht;E:D
      intermediary field_476 Lnet/minecraft/class_197;field_476:D
      named boundingBoxMaxX Lnet/minecraft/block/Block;boundingBoxMaxX:D
    • boundingBoxMaxY

      protected double boundingBoxMaxY
      Stores the Maximum value on the Y axis for the voxel shape
      Mappings:
      Namespace Name Mixin selector
      official F Laht;F:D
      intermediary field_477 Lnet/minecraft/class_197;field_477:D
      named boundingBoxMaxY Lnet/minecraft/block/Block;boundingBoxMaxY:D
    • boundingBoxMaxZ

      protected double boundingBoxMaxZ
      Stores the Maximum value on the Z axis for the voxel shape
      Mappings:
      Namespace Name Mixin selector
      official G Laht;G:D
      intermediary field_478 Lnet/minecraft/class_197;field_478:D
      named boundingBoxMaxZ Lnet/minecraft/block/Block;boundingBoxMaxZ:D
    • soundGroup

      public BlockSoundGroup soundGroup
      Mappings:
      Namespace Name Mixin selector
      official H Laht;H:Lahx;
      intermediary field_479 Lnet/minecraft/class_197;field_479:Lnet/minecraft/class_200;
      named soundGroup Lnet/minecraft/block/Block;soundGroup:Lnet/minecraft/sound/BlockSoundGroup;
    • particleGravity

      public float particleGravity
      Stores the current block's particles' gravity
      Mappings:
      Namespace Name Mixin selector
      official I Laht;I:F
      intermediary field_480 Lnet/minecraft/class_197;field_480:F
      named particleGravity Lnet/minecraft/block/Block;particleGravity:F
    • material

      protected final Material material
      Stores the current block's material
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official J Laht;J:Lave;
      intermediary field_481 Lnet/minecraft/class_197;field_481:Lnet/minecraft/class_63;
      named material Lnet/minecraft/block/Block;material:Lnet/minecraft/block/Material;
    • slipperiness

      public float slipperiness
      Stores the current block's slipperiness Used By Ice and Packed Ice
      Mappings:
      Namespace Name Mixin selector
      official K Laht;K:F
      intermediary field_482 Lnet/minecraft/class_197;field_482:F
      named slipperiness Lnet/minecraft/block/Block;slipperiness:F
    • translationKey

      private String translationKey
      Stores the block's translation key
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b:Ljava/lang/String;
      intermediary field_425 Lnet/minecraft/class_197;field_425:Ljava/lang/String;
      named translationKey Lnet/minecraft/block/Block;translationKey:Ljava/lang/String;
    • side

      @Environment(CLIENT) protected Texture side
      Mappings:
      Namespace Name Mixin selector
      official L Laht;L:Lpr;
      intermediary field_5620 Lnet/minecraft/class_197;field_5620:Lnet/minecraft/class_1557;
      named side Lnet/minecraft/block/Block;side:Lnet/minecraft/client/Texture;
  • Constructor Details

    • Block

      protected Block(Material material)
      Overloaded Block constructor that calls the other with the default material color
      Parameters:
      material - The block's material
      Mappings:
      Namespace Name Mixin selector
      official <init> Laht;<init>(Lave;)V
      intermediary <init> Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_63;)V
      named <init> Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;)V
  • Method Details

    • getIdByBlock

      public static int getIdByBlock(Block block)
      Returns a certain block's id
      Parameters:
      block - The block for which the id is returned
      Returns:
      Block id
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Laht;)I
      intermediary method_6445 Lnet/minecraft/class_197;method_6445(Lnet/minecraft/class_197;)I
      named getIdByBlock Lnet/minecraft/block/Block;getIdByBlock(Lnet/minecraft/block/Block;)I
    • getById

      public static Block getById(int id)
      Returns a certain block from its id
      Parameters:
      id - The id for which the Block is returned
      Returns:
      The Block
      Mappings:
      Namespace Name Mixin selector
      official e Laht;e(I)Laht;
      intermediary method_6448 Lnet/minecraft/class_197;method_6448(I)Lnet/minecraft/class_197;
      named getById Lnet/minecraft/block/Block;getById(I)Lnet/minecraft/block/Block;
    • getBlockFromItem

      public static Block getBlockFromItem(Item item)
      Returns a block by converting a blockitem to a block
      Parameters:
      item - The item that must be converted to a block
      Returns:
      The block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Labm;)Laht;
      intermediary method_6442 Lnet/minecraft/class_197;method_6442(Lnet/minecraft/class_1069;)Lnet/minecraft/class_197;
      named getBlockFromItem Lnet/minecraft/block/Block;getBlockFromItem(Lnet/minecraft/item/Item;)Lnet/minecraft/block/Block;
    • get

      public static Block get(String id)
      Returns a block from it's name
      Parameters:
      id - The block's name
      Returns:
      The block
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Ljava/lang/String;)Laht;
      intermediary method_6446 Lnet/minecraft/class_197;method_6446(Ljava/lang/String;)Lnet/minecraft/class_197;
      named get Lnet/minecraft/block/Block;get(Ljava/lang/String;)Lnet/minecraft/block/Block;
    • isFullBlock

      public boolean isFullBlock()
      Checks whether the current block is a full block
      Returns:
      fullBlock
      Mappings:
      Namespace Name Mixin selector
      official j Laht;j()Z
      intermediary method_6451 Lnet/minecraft/class_197;method_6451()Z
      named isFullBlock Lnet/minecraft/block/Block;isFullBlock()Z
    • getOpacity

      public int getOpacity()
      Returns the current block's opacity
      Returns:
      opacity
      Mappings:
      Namespace Name Mixin selector
      official k Laht;k()I
      intermediary method_6452 Lnet/minecraft/class_197;method_6452()I
      named getOpacity Lnet/minecraft/block/Block;getOpacity()I
    • isTransluscent

      @Environment(CLIENT) public boolean isTransluscent()
      Checks whether the current block is transluscent
      Returns:
      transluscent
      Mappings:
      Namespace Name Mixin selector
      official l Laht;l()Z
      intermediary method_6453 Lnet/minecraft/class_197;method_6453()Z
      named isTransluscent Lnet/minecraft/block/Block;isTransluscent()Z
    • getLightLevel

      public int getLightLevel()
      Returns the block's luminescence
      Returns:
      lightLevel
      Mappings:
      Namespace Name Mixin selector
      official m Laht;m()I
      intermediary method_6454 Lnet/minecraft/class_197;method_6454()I
      named getLightLevel Lnet/minecraft/block/Block;getLightLevel()I
    • usesNeighbourLight

      public boolean usesNeighbourLight()
      Checks whether the current block uses light from the adjacent block
      Returns:
      useNeighbourLight
      Mappings:
      Namespace Name Mixin selector
      official n Laht;n()Z
      intermediary method_6455 Lnet/minecraft/class_197;method_6455()Z
      named usesNeighbourLight Lnet/minecraft/block/Block;usesNeighbourLight()Z
    • getMaterial

      public Material getMaterial()
      Returns the block's material
      Returns:
      material
      Mappings:
      Namespace Name Mixin selector
      official o Laht;o()Lave;
      intermediary method_6456 Lnet/minecraft/class_197;method_6456()Lnet/minecraft/class_63;
      named getMaterial Lnet/minecraft/block/Block;getMaterial()Lnet/minecraft/block/Material;
    • method_6449

      public MaterialColor method_6449(int int2)
      Mappings:
      Namespace Name Mixin selector
      official f Laht;f(I)Lavg;
      intermediary method_6449 Lnet/minecraft/class_197;method_6449(I)Lnet/minecraft/class_65;
      named method_6449 Lnet/minecraft/block/Block;method_6449(I)Lnet/minecraft/block/MaterialColor;
    • setup

      public static void setup()
      Registers all blocks
      Mappings:
      Namespace Name Mixin selector
      official p Laht;p()V
      intermediary method_6457 Lnet/minecraft/class_197;method_6457()V
      named setup Lnet/minecraft/block/Block;setup()V
    • setBlockSoundGroup

      protected Block setBlockSoundGroup(BlockSoundGroup blockSoundGroup)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lahx;)Laht;
      intermediary method_401 Lnet/minecraft/class_197;method_401(Lnet/minecraft/class_200;)Lnet/minecraft/class_197;
      named setBlockSoundGroup Lnet/minecraft/block/Block;setBlockSoundGroup(Lnet/minecraft/sound/BlockSoundGroup;)Lnet/minecraft/block/Block;
    • setOpacity

      protected Block setOpacity(int opacity)
      Sets the block's light opacity. Used in registering blocks.
      Parameters:
      opacity - The block's light opacity
      Returns:
      The current block
      Mappings:
      Namespace Name Mixin selector
      official g Laht;g(I)Laht;
      intermediary method_6450 Lnet/minecraft/class_197;method_6450(I)Lnet/minecraft/class_197;
      named setOpacity Lnet/minecraft/block/Block;setOpacity(I)Lnet/minecraft/block/Block;
    • setLightLevel

      protected Block setLightLevel(float lightLevel)
      Sets the block's luminescence. Used in registering blocks.
      Parameters:
      lightLevel - The block's luminescence
      Returns:
      The current block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(F)Laht;
      intermediary method_6441 Lnet/minecraft/class_197;method_6441(F)Lnet/minecraft/class_197;
      named setLightLevel Lnet/minecraft/block/Block;setLightLevel(F)Lnet/minecraft/block/Block;
    • setResistance

      protected Block setResistance(float resistance)
      Sets the block's resistance. Used in registering blocks.
      Parameters:
      resistance - The block's resistance
      Returns:
      The current block
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(F)Laht;
      intermediary method_430 Lnet/minecraft/class_197;method_430(F)Lnet/minecraft/class_197;
      named setResistance Lnet/minecraft/block/Block;setResistance(F)Lnet/minecraft/block/Block;
    • isNormalBlock

      @Environment(CLIENT) public boolean isNormalBlock()
      Checks whether the block is a normal block. A normal block is one that blocks movement and can be rendered as a normal block.
      Returns:
      Whether the block is a normal block
      Mappings:
      Namespace Name Mixin selector
      official q Laht;q()Z
      intermediary method_6458 Lnet/minecraft/class_197;method_6458()Z
      named isNormalBlock Lnet/minecraft/block/Block;isNormalBlock()Z
    • isFullCube

      public boolean isFullCube()
      Checks whether the current block is a full cube. A block is a full cube when it can be rendered as a normal block, does not emit redstone power and is opaque.
      Returns:
      Whether the current block is a full cube
      Mappings:
      Namespace Name Mixin selector
      official r Laht;r()Z
      intermediary method_6459 Lnet/minecraft/class_197;method_6459()Z
      named isFullCube Lnet/minecraft/block/Block;isFullCube()Z
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      Returns whether the block can be rendered as a normal block
      Returns:
      Whether the block can be rendered as a normal block
      Mappings:
      Namespace Name Mixin selector
      official d Laht;d()Z
      intermediary method_441 Lnet/minecraft/class_197;method_441()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • method_446

      public boolean method_446(BlockView blockView, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Lafw;III)Z
      intermediary method_446 Lnet/minecraft/class_197;method_446(Lnet/minecraft/class_1158;III)Z
      named method_446 Lnet/minecraft/block/Block;method_446(Lnet/minecraft/world/BlockView;III)Z
    • getBlockType

      public int getBlockType()
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b()I
      intermediary method_429 Lnet/minecraft/class_197;method_429()I
      named getBlockType Lnet/minecraft/block/Block;getBlockType()I
    • setStrength

      protected Block setStrength(float strength)
      Sets the current block's strength. Used in registering blocks.
      Parameters:
      strength - The block's strength
      Returns:
      The current block
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(F)Laht;
      intermediary method_442 Lnet/minecraft/class_197;method_442(F)Lnet/minecraft/class_197;
      named setStrength Lnet/minecraft/block/Block;setStrength(F)Lnet/minecraft/block/Block;
    • setUnbreakable

      protected Block setUnbreakable()
      Sets the current block as unbreakable. Used in registering blocks. Setting the strength as -1 makes the block unbreakable. Used by barriers and command blocks.
      Returns:
      The current block
      Mappings:
      Namespace Name Mixin selector
      official s Laht;s()Laht;
      intermediary method_474 Lnet/minecraft/class_197;method_474()Lnet/minecraft/class_197;
      named setUnbreakable Lnet/minecraft/block/Block;setUnbreakable()Lnet/minecraft/block/Block;
    • getHardness

      public float getHardness(World world, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official f Laht;f(Lafm;III)F
      intermediary method_471 Lnet/minecraft/class_197;method_471(Lnet/minecraft/class_1150;III)F
      named getHardness Lnet/minecraft/block/Block;getHardness(Lnet/minecraft/world/World;III)F
    • setTickRandomly

      protected Block setTickRandomly(boolean tickRandomly)
      Sets whether the current block has random ticks. Used in registering blocks.
      Parameters:
      tickRandomly - Whether the current block should have random ticks
      Returns:
      The current block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Z)Laht;
      intermediary method_440 Lnet/minecraft/class_197;method_440(Z)Lnet/minecraft/class_197;
      named setTickRandomly Lnet/minecraft/block/Block;setTickRandomly(Z)Lnet/minecraft/block/Block;
    • ticksRandomly

      public boolean ticksRandomly()
      Returns whether the current block has random ticks
      Returns:
      Whether the current block has random ticks
      Mappings:
      Namespace Name Mixin selector
      official t Laht;t()Z
      intermediary method_476 Lnet/minecraft/class_197;method_476()Z
      named ticksRandomly Lnet/minecraft/block/Block;ticksRandomly()Z
    • hasBlockEntity

      public boolean hasBlockEntity()
      Returns whether the current block has a block entity
      Returns:
      Whether the current block has a block entity
      Mappings:
      Namespace Name Mixin selector
      official u Laht;u()Z
      intermediary method_478 Lnet/minecraft/class_197;method_478()Z
      named hasBlockEntity Lnet/minecraft/block/Block;hasBlockEntity()Z
    • setBoundingBox

      protected final void setBoundingBox(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
      Sets the block's bounding box. It accepts six parameters: The minimum and maximum for each of the three axes.
      Parameters:
      minX - Minimum X value
      minY - Minimum Y value
      minZ - Minimum Z value
      maxX - Maximum X value
      maxY - Maximum Y value
      maxZ - Maximum Z value
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(FFFFFF)V
      intermediary method_394 Lnet/minecraft/class_197;method_394(FFFFFF)V
      named setBoundingBox Lnet/minecraft/block/Block;setBoundingBox(FFFFFF)V
    • method_455

      @Environment(CLIENT) public int method_455(BlockView blockView, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(Lafw;III)I
      intermediary method_455 Lnet/minecraft/class_197;method_455(Lnet/minecraft/class_1158;III)I
      named method_455 Lnet/minecraft/block/Block;method_455(Lnet/minecraft/world/BlockView;III)I
    • shouldRenderSide

      @Environment(CLIENT) public boolean shouldRenderSide(BlockView world, int x, int y, int z, int blockData)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafw;IIII)Z
      intermediary method_447 Lnet/minecraft/class_197;method_447(Lnet/minecraft/class_1158;IIII)Z
      named shouldRenderSide Lnet/minecraft/block/Block;shouldRenderSide(Lnet/minecraft/world/BlockView;IIII)Z
    • method_452

      public boolean method_452(BlockView blockView, int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      official d Laht;d(Lafw;IIII)Z
      intermediary method_452 Lnet/minecraft/class_197;method_452(Lnet/minecraft/class_1158;IIII)Z
      named method_452 Lnet/minecraft/block/Block;method_452(Lnet/minecraft/world/BlockView;IIII)Z
    • method_4794

      @Environment(CLIENT) public Texture method_4794(BlockView blockView, int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      official e Laht;e(Lafw;IIII)Lpr;
      intermediary method_4794 Lnet/minecraft/class_197;method_4794(Lnet/minecraft/class_1158;IIII)Lnet/minecraft/class_1557;
      named method_4794 Lnet/minecraft/block/Block;method_4794(Lnet/minecraft/world/BlockView;IIII)Lnet/minecraft/client/Texture;
    • getTexture

      @Environment(CLIENT) public Texture getTexture(int side, int blockData)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(II)Lpr;
      intermediary method_395 Lnet/minecraft/class_197;method_395(II)Lnet/minecraft/class_1557;
      named getTexture Lnet/minecraft/block/Block;getTexture(II)Lnet/minecraft/client/Texture;
    • getSideTexture

      @Environment(CLIENT) public final Texture getSideTexture(int int2)
      Mappings:
      Namespace Name Mixin selector
      official h Laht;h(I)Lpr;
      intermediary method_4796 Lnet/minecraft/class_197;method_4796(I)Lnet/minecraft/class_1557;
      named getSideTexture Lnet/minecraft/block/Block;getSideTexture(I)Lnet/minecraft/client/Texture;
    • getCollisionBox

      @Environment(CLIENT) public Box getCollisionBox(World world, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official g Laht;g(Lafm;III)Laye;
      intermediary method_427 Lnet/minecraft/class_197;method_427(Lnet/minecraft/class_1150;III)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/world/World;III)Lnet/minecraft/util/math/Box;
    • method_413

      public void method_413(World world, int int2, int int3, int int4, Box box, List list, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILaye;Ljava/util/List;Lqm;)V
      intermediary method_413 Lnet/minecraft/class_197;method_413(Lnet/minecraft/class_1150;IIILnet/minecraft/class_231;Ljava/util/List;Lnet/minecraft/class_864;)V
      named method_413 Lnet/minecraft/block/Block;method_413(Lnet/minecraft/world/World;IIILnet/minecraft/util/math/Box;Ljava/util/List;Lnet/minecraft/entity/Entity;)V
    • method_454

      public Box method_454(World world, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;III)Laye;
      intermediary method_454 Lnet/minecraft/class_197;method_454(Lnet/minecraft/class_1150;III)Lnet/minecraft/class_231;
      named method_454 Lnet/minecraft/block/Block;method_454(Lnet/minecraft/world/World;III)Lnet/minecraft/util/math/Box;
    • hasTransperancy

      public boolean hasTransperancy()
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c()Z
      intermediary method_449 Lnet/minecraft/class_197;method_449()Z
      named hasTransperancy Lnet/minecraft/block/Block;hasTransperancy()Z
    • method_400

      public boolean method_400(int int2, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(IZ)Z
      intermediary method_400 Lnet/minecraft/class_197;method_400(IZ)Z
      named method_400 Lnet/minecraft/block/Block;method_400(IZ)Z
    • hasCollision

      public boolean hasCollision()
      Returns whether a block has collision, i.e. stops entities
      Returns:
      Whether a block has collision
      Mappings:
      Namespace Name Mixin selector
      official v Laht;v()Z
      intermediary method_469 Lnet/minecraft/class_197;method_469()Z
      named hasCollision Lnet/minecraft/block/Block;hasCollision()Z
    • onTick

      public void onTick(World world, int x, int y, int z, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILjava/util/Random;)V
      intermediary method_436 Lnet/minecraft/class_197;method_436(Lnet/minecraft/class_1150;IIILjava/util/Random;)V
      named onTick Lnet/minecraft/block/Block;onTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
    • method_415

      @Environment(CLIENT) public void method_415(World world, int int2, int int3, int int4, Random random)
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Lafm;IIILjava/util/Random;)V
      intermediary method_415 Lnet/minecraft/class_197;method_415(Lnet/minecraft/class_1150;IIILjava/util/Random;)V
      named method_415 Lnet/minecraft/block/Block;method_415(Lnet/minecraft/world/World;IIILjava/util/Random;)V
    • onDestroyed

      public void onDestroyed(World world, int x, int y, int z, int blockData)
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Lafm;IIII)V
      intermediary method_451 Lnet/minecraft/class_197;method_451(Lnet/minecraft/class_1150;IIII)V
      named onDestroyed Lnet/minecraft/block/Block;onDestroyed(Lnet/minecraft/world/World;IIII)V
    • onNeighborUpdate

      public void onNeighborUpdate(World world, int x, int y, int z, Block block)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILaht;)V
      intermediary method_408 Lnet/minecraft/class_197;method_408(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;)V
      named onNeighborUpdate Lnet/minecraft/block/Block;onNeighborUpdate(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;)V
    • getTickRate

      public int getTickRate(World world)
      Returns the block's tick rate. Default is 10.
      Parameters:
      world - The world that the block is placed in
      Returns:
      Tick rate
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;)I
      intermediary method_4789 Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)I
      named getTickRate Lnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
    • breakNaturally

      public void breakNaturally(World world, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Lafm;III)V
      intermediary method_460 Lnet/minecraft/class_197;method_460(Lnet/minecraft/class_1150;III)V
      named breakNaturally Lnet/minecraft/block/Block;breakNaturally(Lnet/minecraft/world/World;III)V
    • method_411

      public void method_411(World world, int int2, int int3, int int4, Block block, int int5)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILaht;I)V
      intermediary method_411 Lnet/minecraft/class_197;method_411(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;I)V
      named method_411 Lnet/minecraft/block/Block;method_411(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;I)V
    • getDropCount

      public int getDropCount(Random rand)
      Returns the amount of items the block should drop on breaking without bonus rolls.
      Parameters:
      rand - Random object
      Returns:
      Amount of items to be dropped
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Ljava/util/Random;)I
      intermediary method_403 Lnet/minecraft/class_197;method_403(Ljava/util/Random;)I
      named getDropCount Lnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
    • method_398

      public Item method_398(int int2, Random random, int int3)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(ILjava/util/Random;I)Labm;
      intermediary method_398 Lnet/minecraft/class_197;method_398(ILjava/util/Random;I)Lnet/minecraft/class_1069;
      named method_398 Lnet/minecraft/block/Block;method_398(ILjava/util/Random;I)Lnet/minecraft/item/Item;
    • method_405

      public float method_405(PlayerEntity playerEntity, World world, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lxk;Lafm;III)F
      intermediary method_405 Lnet/minecraft/class_197;method_405(Lnet/minecraft/class_988;Lnet/minecraft/class_1150;III)F
      named method_405 Lnet/minecraft/block/Block;method_405(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;III)F
    • canStayPlaced

      public final void canStayPlaced(World world, int int2, int int3, int int4, int int5, int int6)
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Lafm;IIIII)V
      intermediary method_445 Lnet/minecraft/class_197;method_445(Lnet/minecraft/class_1150;IIIII)V
      named canStayPlaced Lnet/minecraft/block/Block;canStayPlaced(Lnet/minecraft/world/World;IIIII)V
    • method_410

      public void method_410(World world, int int2, int int3, int int4, int int5, float float2, int int6)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIIIFI)V
      intermediary method_410 Lnet/minecraft/class_197;method_410(Lnet/minecraft/class_1150;IIIIFI)V
      named method_410 Lnet/minecraft/block/Block;method_410(Lnet/minecraft/world/World;IIIIFI)V
    • method_422

      protected void method_422(World world, int int2, int int3, int int4, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILabo;)V
      intermediary method_422 Lnet/minecraft/class_197;method_422(Lnet/minecraft/class_1150;IIILnet/minecraft/class_1071;)V
      named method_422 Lnet/minecraft/block/Block;method_422(Lnet/minecraft/world/World;IIILnet/minecraft/item/ItemStack;)V
    • method_461

      protected void method_461(World world, int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(Lafm;IIII)V
      intermediary method_461 Lnet/minecraft/class_197;method_461(Lnet/minecraft/class_1150;IIII)V
      named method_461 Lnet/minecraft/block/Block;method_461(Lnet/minecraft/world/World;IIII)V
    • method_431

      public int method_431(int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(I)I
      intermediary method_431 Lnet/minecraft/class_197;method_431(I)I
      named method_431 Lnet/minecraft/block/Block;method_431(I)I
    • getBlastResistance

      public float getBlastResistance(Entity entity)
      Returns the block's blast resistance as per the entity provided.
      Parameters:
      entity - The entity that blast resistance must be calculated for
      Returns:
      Blast Resistance
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lqm;)F
      intermediary method_404 Lnet/minecraft/class_197;method_404(Lnet/minecraft/class_864;)F
      named getBlastResistance Lnet/minecraft/block/Block;getBlastResistance(Lnet/minecraft/entity/Entity;)F
    • method_414

      public BlockHitResult method_414(World world, int int2, int int3, int int4, Vec3d vec3d, Vec3d vec3d2)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILayj;Layj;)Layh;
      intermediary method_414 Lnet/minecraft/class_197;method_414(Lnet/minecraft/class_1150;IIILnet/minecraft/class_236;Lnet/minecraft/class_236;)Lnet/minecraft/class_234;
      named method_414 Lnet/minecraft/block/Block;method_414(Lnet/minecraft/world/World;IIILnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/hit/BlockHitResult;
    • method_402

      private boolean method_402(Vec3d vec)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Layj;)Z
      intermediary method_402 Lnet/minecraft/class_197;method_402(Lnet/minecraft/class_236;)Z
      named method_402 Lnet/minecraft/block/Block;method_402(Lnet/minecraft/util/math/Vec3d;)Z
    • method_432

      private boolean method_432(Vec3d vec)
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Layj;)Z
      intermediary method_432 Lnet/minecraft/class_197;method_432(Lnet/minecraft/class_236;)Z
      named method_432 Lnet/minecraft/block/Block;method_432(Lnet/minecraft/util/math/Vec3d;)Z
    • method_443

      private boolean method_443(Vec3d vec)
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(Layj;)Z
      intermediary method_443 Lnet/minecraft/class_197;method_443(Lnet/minecraft/class_236;)Z
      named method_443 Lnet/minecraft/block/Block;method_443(Lnet/minecraft/util/math/Vec3d;)Z
    • method_468

      public void method_468(World world, int int2, int int3, int int4, Explosion explosion)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILafh;)V
      intermediary method_468 Lnet/minecraft/class_197;method_468(Lnet/minecraft/class_1150;IIILnet/minecraft/class_1147;)V
      named method_468 Lnet/minecraft/block/Block;method_468(Lnet/minecraft/world/World;IIILnet/minecraft/world/explosion/Explosion;)V
    • method_479

      @Environment(CLIENT) public int method_479()
      Mappings:
      Namespace Name Mixin selector
      official w Laht;w()I
      intermediary method_479 Lnet/minecraft/class_197;method_479()I
      named method_479 Lnet/minecraft/block/Block;method_479()I
    • method_4790

      public boolean method_4790(World world, int int2, int int3, int int4, int int5, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIIILabo;)Z
      intermediary method_4790 Lnet/minecraft/class_197;method_4790(Lnet/minecraft/class_1150;IIIILnet/minecraft/class_1071;)Z
      named method_4790 Lnet/minecraft/block/Block;method_4790(Lnet/minecraft/world/World;IIIILnet/minecraft/item/ItemStack;)Z
    • method_428

      public boolean method_428(World world, int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      official d Laht;d(Lafm;IIII)Z
      intermediary method_428 Lnet/minecraft/class_197;method_428(Lnet/minecraft/class_1150;IIII)Z
      named method_428 Lnet/minecraft/block/Block;method_428(Lnet/minecraft/world/World;IIII)Z
    • canPlaceBlockAt

      public boolean canPlaceBlockAt(World world, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(Lafm;III)Z
      intermediary method_434 Lnet/minecraft/class_197;method_434(Lnet/minecraft/class_1150;III)Z
      named canPlaceBlockAt Lnet/minecraft/block/Block;canPlaceBlockAt(Lnet/minecraft/world/World;III)Z
    • onActivated

      public boolean onActivated(World world, int x, int y, int z, PlayerEntity player, int int2, float float2, float float3, float float4)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILxk;IFFF)Z
      intermediary method_421 Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_1150;IIILnet/minecraft/class_988;IFFF)Z
      named onActivated Lnet/minecraft/block/Block;onActivated(Lnet/minecraft/world/World;IIILnet/minecraft/entity/player/PlayerEntity;IFFF)Z
    • method_437

      public void method_437(World world, int int2, int int3, int int4, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Lafm;IIILqm;)V
      intermediary method_437 Lnet/minecraft/class_197;method_437(Lnet/minecraft/class_1150;IIILnet/minecraft/class_864;)V
      named method_437 Lnet/minecraft/block/Block;method_437(Lnet/minecraft/world/World;IIILnet/minecraft/entity/Entity;)V
    • method_4185

      public int method_4185(World world, int int2, int int3, int int4, int int5, float float2, float float3, float float4, int int6)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIIIFFFI)I
      intermediary method_4185 Lnet/minecraft/class_197;method_4185(Lnet/minecraft/class_1150;IIIIFFFI)I
      named method_4185 Lnet/minecraft/block/Block;method_4185(Lnet/minecraft/world/World;IIIIFFFI)I
    • method_420

      public void method_420(World world, int int2, int int3, int int4, PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILxk;)V
      intermediary method_420 Lnet/minecraft/class_197;method_420(Lnet/minecraft/class_1150;IIILnet/minecraft/class_988;)V
      named method_420 Lnet/minecraft/block/Block;method_420(Lnet/minecraft/world/World;IIILnet/minecraft/entity/player/PlayerEntity;)V
    • method_418

      public void method_418(World world, int int2, int int3, int int4, Entity entity, Vec3d vec3d)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILqm;Layj;)V
      intermediary method_418 Lnet/minecraft/class_197;method_418(Lnet/minecraft/class_1150;IIILnet/minecraft/class_864;Lnet/minecraft/class_236;)V
      named method_418 Lnet/minecraft/block/Block;method_418(Lnet/minecraft/world/World;IIILnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)V
    • method_425

      public void method_425(BlockView blockView, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafw;III)V
      intermediary method_425 Lnet/minecraft/class_197;method_425(Lnet/minecraft/class_1158;III)V
      named method_425 Lnet/minecraft/block/Block;method_425(Lnet/minecraft/world/BlockView;III)V
    • getMinX

      public final double getMinX()
      Returns the block's bounding box' minimum X value
      Returns:
      Minimum X value
      Mappings:
      Namespace Name Mixin selector
      official x Laht;x()D
      intermediary method_4189 Lnet/minecraft/class_197;method_4189()D
      named getMinX Lnet/minecraft/block/Block;getMinX()D
    • getMaxX

      public final double getMaxX()
      Returns the block's bounding box' minimum Y value
      Returns:
      Minimum Y value
      Mappings:
      Namespace Name Mixin selector
      official y Laht;y()D
      intermediary method_4190 Lnet/minecraft/class_197;method_4190()D
      named getMaxX Lnet/minecraft/block/Block;getMaxX()D
    • getMinY

      public final double getMinY()
      Returns the block's bounding box' minimum Z value
      Returns:
      Minimum Z value
      Mappings:
      Namespace Name Mixin selector
      official z Laht;z()D
      intermediary method_4191 Lnet/minecraft/class_197;method_4191()D
      named getMinY Lnet/minecraft/block/Block;getMinY()D
    • getMaxY

      public final double getMaxY()
      Returns the block's bounding box' maximum X value
      Returns:
      Maximum X value
      Mappings:
      Namespace Name Mixin selector
      official A Laht;A()D
      intermediary method_4192 Lnet/minecraft/class_197;method_4192()D
      named getMaxY Lnet/minecraft/block/Block;getMaxY()D
    • getMinZ

      public final double getMinZ()
      Returns the block's bounding box' maximum Y value
      Returns:
      Maximum Y value
      Mappings:
      Namespace Name Mixin selector
      official B Laht;B()D
      intermediary method_4193 Lnet/minecraft/class_197;method_4193()D
      named getMinZ Lnet/minecraft/block/Block;getMinZ()D
    • getMaxZ

      public final double getMaxZ()
      Returns the block's bounding box' maximum Z value
      Returns:
      Maximum Z value
      Mappings:
      Namespace Name Mixin selector
      official C Laht;C()D
      intermediary method_4183 Lnet/minecraft/class_197;method_4183()D
      named getMaxZ Lnet/minecraft/block/Block;getMaxZ()D
    • getColor

      @Environment(CLIENT) public int getColor()
      Mappings:
      Namespace Name Mixin selector
      official D Laht;D()I
      intermediary method_470 Lnet/minecraft/class_197;method_470()I
      named getColor Lnet/minecraft/block/Block;getColor()I
    • method_459

      @Environment(CLIENT) public int method_459(int int2)
      Mappings:
      Namespace Name Mixin selector
      official i Laht;i(I)I
      intermediary method_459 Lnet/minecraft/class_197;method_459(I)I
      named method_459 Lnet/minecraft/block/Block;method_459(I)I
    • method_438

      @Environment(CLIENT) public int method_438(BlockView blockView, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official d Laht;d(Lafw;III)I
      intermediary method_438 Lnet/minecraft/class_197;method_438(Lnet/minecraft/class_1158;III)I
      named method_438 Lnet/minecraft/block/Block;method_438(Lnet/minecraft/world/BlockView;III)I
    • getWeakRedstonePower

      public int getWeakRedstonePower(BlockView world, int x, int y, int z, int direction)
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(Lafw;IIII)I
      intermediary method_426 Lnet/minecraft/class_197;method_426(Lnet/minecraft/class_1158;IIII)I
      named getWeakRedstonePower Lnet/minecraft/block/Block;getWeakRedstonePower(Lnet/minecraft/world/BlockView;IIII)I
    • emitsRedstonePower

      public boolean emitsRedstonePower()
      Returns whether the current block emits a redstone signal. Used by comparators, Redstone Blocks, etc.
      Returns:
      Whether the current block emits a redstone signal
      Mappings:
      Namespace Name Mixin selector
      official f Laht;f()Z
      intermediary method_466 Lnet/minecraft/class_197;method_466()Z
      named emitsRedstonePower Lnet/minecraft/block/Block;emitsRedstonePower()Z
    • onEntityCollision

      public void onEntityCollision(World world, int x, int y, int z, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILqm;)V
      intermediary method_416 Lnet/minecraft/class_197;method_416(Lnet/minecraft/class_1150;IIILnet/minecraft/class_864;)V
      named onEntityCollision Lnet/minecraft/block/Block;onEntityCollision(Lnet/minecraft/world/World;IIILnet/minecraft/entity/Entity;)V
    • getStrongRedstonePower

      public int getStrongRedstonePower(BlockView world, int x, int y, int z, int direction)
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(Lafw;IIII)I
      intermediary method_444 Lnet/minecraft/class_197;method_444(Lnet/minecraft/class_1158;IIII)I
      named getStrongRedstonePower Lnet/minecraft/block/Block;getStrongRedstonePower(Lnet/minecraft/world/BlockView;IIII)I
    • setBlockItemBounds

      public void setBlockItemBounds()
      Sets the bounds for the BlockItem
      Mappings:
      Namespace Name Mixin selector
      official g Laht;g()V
      intermediary method_456 Lnet/minecraft/class_197;method_456()V
      named setBlockItemBounds Lnet/minecraft/block/Block;setBlockItemBounds()V
    • method_424

      public void method_424(World world, PlayerEntity playerEntity, int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;Lxk;IIII)V
      intermediary method_424 Lnet/minecraft/class_197;method_424(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;IIII)V
      named method_424 Lnet/minecraft/block/Block;method_424(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;IIII)V
    • requiresSilkTouch

      protected boolean requiresSilkTouch()
      Mappings:
      Namespace Name Mixin selector
      official E Laht;E()Z
      intermediary method_475 Lnet/minecraft/class_197;method_475()Z
      named requiresSilkTouch Lnet/minecraft/block/Block;requiresSilkTouch()Z
    • method_448

      protected ItemStack method_448(int int2)
      Mappings:
      Namespace Name Mixin selector
      official j Laht;j(I)Labo;
      intermediary method_448 Lnet/minecraft/class_197;method_448(I)Lnet/minecraft/class_1071;
      named method_448 Lnet/minecraft/block/Block;method_448(I)Lnet/minecraft/item/ItemStack;
    • getBonusDrops

      public int getBonusDrops(int id, Random rand)
      Returns the number bonus drops for a block when broken.
      Parameters:
      id - Id
      rand - Random object
      Returns:
      Bonus drops for a block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(ILjava/util/Random;)I
      intermediary method_397 Lnet/minecraft/class_197;method_397(ILjava/util/Random;)I
      named getBonusDrops Lnet/minecraft/block/Block;getBonusDrops(ILjava/util/Random;)I
    • canStayPlaced

      public boolean canStayPlaced(World world, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official j Laht;j(Lafm;III)Z
      intermediary method_450 Lnet/minecraft/class_197;method_450(Lnet/minecraft/class_1150;III)Z
      named canStayPlaced Lnet/minecraft/block/Block;canStayPlaced(Lnet/minecraft/world/World;III)Z
    • onBreak

      public void onBreak(World world, int x, int y, int z, LivingEntity entity, ItemStack item)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILrg;Labo;)V
      intermediary method_419 Lnet/minecraft/class_197;method_419(Lnet/minecraft/class_1150;IIILnet/minecraft/class_1699;Lnet/minecraft/class_1071;)V
      named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;IIILnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
    • method_4186

      public void method_4186(World world, int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      official e Laht;e(Lafm;IIII)V
      intermediary method_4186 Lnet/minecraft/class_197;method_4186(Lnet/minecraft/class_1150;IIII)V
      named method_4186 Lnet/minecraft/block/Block;method_4186(Lnet/minecraft/world/World;IIII)V
    • setTranslationKey

      public Block setTranslationKey(String key)
      Sets the block's localization key. Used in registering blocks.
      Parameters:
      key - The Translation key
      Returns:
      The Current block
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(Ljava/lang/String;)Laht;
      intermediary method_433 Lnet/minecraft/class_197;method_433(Ljava/lang/String;)Lnet/minecraft/class_197;
      named setTranslationKey Lnet/minecraft/block/Block;setTranslationKey(Ljava/lang/String;)Lnet/minecraft/block/Block;
    • getTranslatedName

      public String getTranslatedName()
      Translates and returns the translation key
      Returns:
      Translated name
      Mappings:
      Namespace Name Mixin selector
      official F Laht;F()Ljava/lang/String;
      intermediary method_480 Lnet/minecraft/class_197;method_480()Ljava/lang/String;
      named getTranslatedName Lnet/minecraft/block/Block;getTranslatedName()Ljava/lang/String;
    • getTranslationKey

      public String getTranslationKey()
      Returns the block's translation key
      Returns:
      Translation Key
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a()Ljava/lang/String;
      intermediary method_392 Lnet/minecraft/class_197;method_392()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/block/Block;getTranslationKey()Ljava/lang/String;
    • method_435

      public boolean method_435(World world, int int2, int int3, int int4, int int5, int int6)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIIII)Z
      intermediary method_435 Lnet/minecraft/class_197;method_435(Lnet/minecraft/class_1150;IIIII)Z
      named method_435 Lnet/minecraft/block/Block;method_435(Lnet/minecraft/world/World;IIIII)Z
    • hasStats

      public boolean hasStats()
      Returns whether the current block should be tracked for stats
      Returns:
      Whether the current block should be tracked for stats
      Mappings:
      Namespace Name Mixin selector
      official G Laht;G()Z
      intermediary method_481 Lnet/minecraft/class_197;method_481()Z
      named hasStats Lnet/minecraft/block/Block;hasStats()Z
    • disableStats

      protected Block disableStats()
      Disables tracking by stats for the current block. Used in registering blocks.
      Returns:
      The current block
      Mappings:
      Namespace Name Mixin selector
      official H Laht;H()Laht;
      intermediary method_482 Lnet/minecraft/class_197;method_482()Lnet/minecraft/class_197;
      named disableStats Lnet/minecraft/block/Block;disableStats()Lnet/minecraft/block/Block;
    • getPistonInteractionType

      public int getPistonInteractionType()
      Returns the block's piston interaction type, as provided by it's material.
      Returns:
      Current block's piston interaction type
      Mappings:
      Namespace Name Mixin selector
      official h Laht;h()I
      intermediary method_453 Lnet/minecraft/class_197;method_453()I
      named getPistonInteractionType Lnet/minecraft/block/Block;getPistonInteractionType()I
    • 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.
      Returns:
      The block's ambient occlusion light level
      Mappings:
      Namespace Name Mixin selector
      official I Laht;I()F
      intermediary method_6440 Lnet/minecraft/class_197;method_6440()F
      named getAmbientOcclusionLightLevel Lnet/minecraft/block/Block;getAmbientOcclusionLightLevel()F
    • method_417

      public void method_417(World world, int int2, int int3, int int4, Entity entity, float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIILqm;F)V
      intermediary method_417 Lnet/minecraft/class_197;method_417(Lnet/minecraft/class_1150;IIILnet/minecraft/class_864;F)V
      named method_417 Lnet/minecraft/block/Block;method_417(Lnet/minecraft/world/World;IIILnet/minecraft/entity/Entity;F)V
    • method_407

      @Environment(CLIENT) public Item method_407(World world, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official d Laht;d(Lafm;III)Labm;
      intermediary method_407 Lnet/minecraft/class_197;method_407(Lnet/minecraft/class_1150;III)Lnet/minecraft/class_1069;
      named method_407 Lnet/minecraft/block/Block;method_407(Lnet/minecraft/world/World;III)Lnet/minecraft/item/Item;
    • method_463

      public int method_463(World world, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official k Laht;k(Lafm;III)I
      intermediary method_463 Lnet/minecraft/class_197;method_463(Lnet/minecraft/class_1150;III)I
      named method_463 Lnet/minecraft/block/Block;method_463(Lnet/minecraft/world/World;III)I
    • appendItemStacks

      @Environment(CLIENT) public void appendItemStacks(Item item, ItemGroup group, List stacks)
      Appends ItemStacks to an itemgroup. Only called on the client.
      Parameters:
      item - The Item that must be added
      group - The ItemGroup that the item must be added to
      stacks - The list of currently added ItemStacks to the ItemGroup
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Labm;Laae;Ljava/util/List;)V
      intermediary method_399 Lnet/minecraft/class_197;method_399(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)V
      named appendItemStacks Lnet/minecraft/block/Block;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)V
    • getItemGroup

      @Environment(CLIENT) public ItemGroup getItemGroup()
      Returns the block's ItemGroup. Only called on the client.
      Returns:
      The Block's item group
      Mappings:
      Namespace Name Mixin selector
      official J Laht;J()Laae;
      intermediary method_483 Lnet/minecraft/class_197;method_483()Lnet/minecraft/class_1041;
      named getItemGroup Lnet/minecraft/block/Block;getItemGroup()Lnet/minecraft/item/itemgroup/ItemGroup;
    • setItemGroup

      public Block setItemGroup(ItemGroup group)
      Sets the block's ItemGroup. Used in registering blocks.
      Parameters:
      group - The itemgroup that the block must be added to
      Returns:
      The current block
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Laae;)Laht;
      intermediary method_406 Lnet/minecraft/class_197;method_406(Lnet/minecraft/class_1041;)Lnet/minecraft/class_197;
      named setItemGroup Lnet/minecraft/block/Block;setItemGroup(Lnet/minecraft/item/itemgroup/ItemGroup;)Lnet/minecraft/block/Block;
    • method_412

      public void method_412(World world, int int2, int int3, int int4, int int5, PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafm;IIIILxk;)V
      intermediary method_412 Lnet/minecraft/class_197;method_412(Lnet/minecraft/class_1150;IIIILnet/minecraft/class_988;)V
      named method_412 Lnet/minecraft/block/Block;method_412(Lnet/minecraft/world/World;IIIILnet/minecraft/entity/player/PlayerEntity;)V
    • method_464

      public void method_464(World world, int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      official f Laht;f(Lafm;IIII)V
      intermediary method_464 Lnet/minecraft/class_197;method_464(Lnet/minecraft/class_1150;IIII)V
      named method_464 Lnet/minecraft/block/Block;method_464(Lnet/minecraft/world/World;IIII)V
    • method_457

      public void method_457(World world, int int2, int int3, int int4)
      Mappings:
      Namespace Name Mixin selector
      official l Laht;l(Lafm;III)V
      intermediary method_457 Lnet/minecraft/class_197;method_457(Lnet/minecraft/class_1150;III)V
      named method_457 Lnet/minecraft/block/Block;method_457(Lnet/minecraft/world/World;III)V
    • isFlowerPot

      @Environment(CLIENT) public boolean isFlowerPot()
      Mappings:
      Namespace Name Mixin selector
      official K Laht;K()Z
      intermediary method_4188 Lnet/minecraft/class_197;method_4188()Z
      named isFlowerPot Lnet/minecraft/block/Block;isFlowerPot()Z
    • isFire

      public boolean isFire()
      Mappings:
      Namespace Name Mixin selector
      official L Laht;L()Z
      intermediary method_4187 Lnet/minecraft/class_197;method_4187()Z
      named isFire Lnet/minecraft/block/Block;isFire()Z
    • shouldDropItemsOnExplosion

      public boolean shouldDropItemsOnExplosion(Explosion explosion)
      Returns whether the block should drop as an Item during an explosion.
      Parameters:
      explosion - The explosion that caused the block to break
      Returns:
      Whether the block should drop as an item during an explosion
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lafh;)Z
      intermediary method_4184 Lnet/minecraft/class_197;method_4184(Lnet/minecraft/class_1147;)Z
      named shouldDropItemsOnExplosion Lnet/minecraft/block/Block;shouldDropItemsOnExplosion(Lnet/minecraft/world/explosion/Explosion;)Z
    • isEqualTo

      public boolean isEqualTo(Block block)
      Returns whether the current block and another block are equal
      Parameters:
      block - The other block
      Returns:
      Whether the current block and the other block are equal
      Mappings:
      Namespace Name Mixin selector
      official c Laht;c(Laht;)Z
      intermediary method_6447 Lnet/minecraft/class_197;method_6447(Lnet/minecraft/class_197;)Z
      named isEqualTo Lnet/minecraft/block/Block;isEqualTo(Lnet/minecraft/block/Block;)Z
    • areBlocksEqual

      public static boolean areBlocksEqual(Block one, Block two)
      Returns whether two blocks are equal.
      Returns:
      Whether two blocks are equal
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Laht;Laht;)Z
      intermediary method_6443 Lnet/minecraft/class_197;method_6443(Lnet/minecraft/class_197;Lnet/minecraft/class_197;)Z
      named areBlocksEqual Lnet/minecraft/block/Block;areBlocksEqual(Lnet/minecraft/block/Block;Lnet/minecraft/block/Block;)Z
    • hasComparatorOutput

      public boolean hasComparatorOutput()
      Returns whether the block provides comparator output. Used in blocks with entities like Chests and Droppers.
      Returns:
      Whether the block provides comparator output
      Mappings:
      Namespace Name Mixin selector
      official M Laht;M()Z
      intermediary method_4797 Lnet/minecraft/class_197;method_4797()Z
      named hasComparatorOutput Lnet/minecraft/block/Block;hasComparatorOutput()Z
    • method_4793

      public int method_4793(World world, int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      official g Laht;g(Lafm;IIII)I
      intermediary method_4793 Lnet/minecraft/class_197;method_4793(Lnet/minecraft/class_1150;IIII)I
      named method_4793 Lnet/minecraft/block/Block;method_4793(Lnet/minecraft/world/World;IIII)I
    • method_5546

      protected Block method_5546(String string)
      Mappings:
      Namespace Name Mixin selector
      official d Laht;d(Ljava/lang/String;)Laht;
      intermediary method_5546 Lnet/minecraft/class_197;method_5546(Ljava/lang/String;)Lnet/minecraft/class_197;
      named method_5546 Lnet/minecraft/block/Block;method_5546(Ljava/lang/String;)Lnet/minecraft/block/Block;
    • getTextureName

      @Environment(CLIENT) protected String getTextureName()
      Mappings:
      Namespace Name Mixin selector
      official N Laht;N()Ljava/lang/String;
      intermediary method_5545 Lnet/minecraft/class_197;method_5545()Ljava/lang/String;
      named getTextureName Lnet/minecraft/block/Block;getTextureName()Ljava/lang/String;
    • method_6444

      @Environment(CLIENT) public Texture method_6444(int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      official b Laht;b(II)Lpr;
      intermediary method_6444 Lnet/minecraft/class_197;method_6444(II)Lnet/minecraft/class_1557;
      named method_6444 Lnet/minecraft/block/Block;method_6444(II)Lnet/minecraft/client/Texture;
    • registerTextures

      @Environment(CLIENT) public void registerTextures(TextureRegistry registry)
      Mappings:
      Namespace Name Mixin selector
      official a Laht;a(Lps;)V
      intermediary method_4791 Lnet/minecraft/class_197;method_4791(Lnet/minecraft/class_1558;)V
      named registerTextures Lnet/minecraft/block/Block;registerTextures(Lnet/minecraft/client/TextureRegistry;)V
    • method_4798

      @Environment(CLIENT) public String method_4798()
      Mappings:
      Namespace Name Mixin selector
      official O Laht;O()Ljava/lang/String;
      intermediary method_4798 Lnet/minecraft/class_197;method_4798()Ljava/lang/String;
      named method_4798 Lnet/minecraft/block/Block;method_4798()Ljava/lang/String;