Class Block

All Implemented Interfaces:
ItemConvertible
Direct Known Subclasses:
AbstractCandleBlock, AbstractCauldronBlock, AbstractFireBlock, AbstractLichenBlock, AbstractPlantPartBlock, AbstractPressurePlateBlock, AbstractRailBlock, AirBlock, AmethystBlock, BambooBlock, BambooSaplingBlock, BarrierBlock, BlockWithEntity, BubbleColumnBlock, CactusBlock, CakeBlock, CarpetBlock, CartographyTableBlock, ChorusFlowerBlock, CobwebBlock, ComposterBlock, ConnectingBlock, CoralBlockBlock, CoralParentBlock, CraftingTableBlock, CryingObsidianBlock, DirtPathBlock, DoorBlock, EndPortalFrameBlock, FacingBlock, FallingBlock, FarmlandBlock, FlowerPotBlock, FluidBlock, GourdBlock, HangingRootsBlock, HorizontalConnectingBlock, HorizontalFacingBlock, InfestedBlock, JigsawBlock, LadderBlock, LanternBlock, LeavesBlock, MagmaBlock, MossBlock, MushroomBlock, NetherPortalBlock, NetherrackBlock, NoteBlock, NyliumBlock, OreBlock, OxidizableBlock, PillarBlock, PlantBlock, PointedDripstoneBlock, PowderSnowBlock, RedstoneBlock, RedstoneLampBlock, RedstoneOreBlock, RedstoneWireBlock, RespawnAnchorBlock, ScaffoldingBlock, SlabBlock, SnowBlock, SnowyBlock, SoulSandBlock, SpongeBlock, SporeBlossomBlock, StairsBlock, StonecutterBlock, StructureVoidBlock, SugarCaneBlock, TargetBlock, TntBlock, TorchBlock, TransparentBlock, TripwireBlock, TripwireHookBlock, TurtleEggBlock, VineBlock, WallBlock, WetSpongeBlock

public class Block
extends AbstractBlock
implements ItemConvertible
Mappings:
Namespace Name
official bwu
intermediary net/minecraft/class_2248
named net/minecraft/block/Block
  • Field Details

    • LOGGER

      protected static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official l Lbwu;l:Lorg/apache/logging/log4j/Logger;
      intermediary field_10638 Lnet/minecraft/class_2248;field_10638:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/block/Block;LOGGER:Lorg/apache/logging/log4j/Logger;
    • STATE_IDS

      public static final IdList<BlockState> STATE_IDS
      Mappings:
      Namespace Name Mixin selector
      official m Lbwu;m:Lgh;
      intermediary field_10651 Lnet/minecraft/class_2248;field_10651:Lnet/minecraft/class_2361;
      named STATE_IDS Lnet/minecraft/block/Block;STATE_IDS:Lnet/minecraft/util/collection/IdList;
    • FULL_CUBE_SHAPE_CACHE

      private static final LoadingCache<VoxelShape,​Boolean> FULL_CUBE_SHAPE_CACHE
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a:Lcom/google/common/cache/LoadingCache;
      intermediary field_19312 Lnet/minecraft/class_2248;field_19312:Lcom/google/common/cache/LoadingCache;
      named FULL_CUBE_SHAPE_CACHE Lnet/minecraft/block/Block;FULL_CUBE_SHAPE_CACHE:Lcom/google/common/cache/LoadingCache;
    • FACE_CULL_MAP

      private static final ThreadLocal<Object2ByteLinkedOpenHashMap<Block.NeighborGroup>> FACE_CULL_MAP
      Mappings:
      Namespace Name Mixin selector
      official e Lbwu;e:Ljava/lang/ThreadLocal;
      intermediary field_10649 Lnet/minecraft/class_2248;field_10649:Ljava/lang/ThreadLocal;
      named FACE_CULL_MAP Lnet/minecraft/block/Block;FACE_CULL_MAP:Ljava/lang/ThreadLocal;
    • stateManager

      protected final StateManager<Block,​BlockState> stateManager
      Mappings:
      Namespace Name Mixin selector
      official n Lbwu;n:Lchu;
      intermediary field_10647 Lnet/minecraft/class_2248;field_10647:Lnet/minecraft/class_2689;
      named stateManager Lnet/minecraft/block/Block;stateManager:Lnet/minecraft/state/StateManager;
    • defaultState

      private BlockState defaultState
      Mappings:
      Namespace Name Mixin selector
      official b Lbwu;b:Lcht;
      intermediary field_10646 Lnet/minecraft/class_2248;field_10646:Lnet/minecraft/class_2680;
      named defaultState Lnet/minecraft/block/Block;defaultState:Lnet/minecraft/block/BlockState;
    • translationKey

      @Nullable private String translationKey
      Mappings:
      Namespace Name Mixin selector
      official c Lbwu;c:Ljava/lang/String;
      intermediary field_10642 Lnet/minecraft/class_2248;field_10642:Ljava/lang/String;
      named translationKey Lnet/minecraft/block/Block;translationKey:Ljava/lang/String;
    • cachedItem

      @Nullable private Item cachedItem
      Mappings:
      Namespace Name Mixin selector
      official d Lbwu;d:Lbnr;
      intermediary field_17562 Lnet/minecraft/class_2248;field_17562:Lnet/minecraft/class_1792;
      named cachedItem Lnet/minecraft/block/Block;cachedItem:Lnet/minecraft/item/Item;
  • Constructor Details

    • Block

      public Block​(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lchs;<init>(Lchs$c;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • getRawIdFromState

      public static int getRawIdFromState​(@Nullable BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official i Lbwu;i(Lcht;)I
      intermediary method_9507 Lnet/minecraft/class_2248;method_9507(Lnet/minecraft/class_2680;)I
      named getRawIdFromState Lnet/minecraft/block/Block;getRawIdFromState(Lnet/minecraft/block/BlockState;)I
    • getStateFromRawId

      public static BlockState getStateFromRawId​(int stateId)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(I)Lcht;
      intermediary method_9531 Lnet/minecraft/class_2248;method_9531(I)Lnet/minecraft/class_2680;
      named getStateFromRawId Lnet/minecraft/block/Block;getStateFromRawId(I)Lnet/minecraft/block/BlockState;
    • getBlockFromItem

      public static Block getBlockFromItem​(@Nullable Item item)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbnr;)Lbwu;
      intermediary method_9503 Lnet/minecraft/class_2248;method_9503(Lnet/minecraft/class_1792;)Lnet/minecraft/class_2248;
      named getBlockFromItem Lnet/minecraft/block/Block;getBlockFromItem(Lnet/minecraft/item/Item;)Lnet/minecraft/block/Block;
    • pushEntitiesUpBeforeBlockChange

      public static BlockState pushEntitiesUpBeforeBlockChange​(BlockState from, BlockState to, World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lcht;Lcht;Lbtv;Lfx;)Lcht;
      intermediary method_9582 Lnet/minecraft/class_2248;method_9582(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named pushEntitiesUpBeforeBlockChange Lnet/minecraft/block/Block;pushEntitiesUpBeforeBlockChange(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • createCuboidShape

      public static VoxelShape createCuboidShape​(double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(DDDDDD)Ldjn;
      intermediary method_9541 Lnet/minecraft/class_2248;method_9541(DDDDDD)Lnet/minecraft/class_265;
      named createCuboidShape Lnet/minecraft/block/Block;createCuboidShape(DDDDDD)Lnet/minecraft/util/shape/VoxelShape;
    • postProcessState

      public static BlockState postProcessState​(BlockState state, WorldAccess world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lbwu;b(Lcht;Lbtw;Lfx;)Lcht;
      intermediary method_9510 Lnet/minecraft/class_2248;method_9510(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named postProcessState Lnet/minecraft/block/Block;postProcessState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • replace

      public static void replace​(BlockState state, BlockState newState, WorldAccess world, BlockPos pos, int flags)
      Replaces the state with the newState at the pos.

      If the two state objects are identical, this method does nothing.

      If the new state is air, breaks the block at the position instead.

      Parameters:
      state - the existing block state
      newState - the new block state
      world - the world
      pos - the position of the replaced block state
      flags - the bitwise flags for ModifiableWorld.setBlockState(BlockPos, BlockState, int, int)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lcht;Lcht;Lbtw;Lfx;I)V
      intermediary method_30094 Lnet/minecraft/class_2248;method_30094(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;I)V
      named replace Lnet/minecraft/block/Block;replace(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;I)V
    • replace

      public static void replace​(BlockState state, BlockState newState, WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth)
      Replaces the state with the newState at the pos.

      If the two state objects are identical, this method does nothing.

      If the new state is air, breaks the block at the position instead.

      Parameters:
      state - the existing block state
      newState - the new block state
      world - the world
      pos - the position of the replaced block state
      flags - the bitwise flags for ModifiableWorld.setBlockState(BlockPos, BlockState, int, int)
      maxUpdateDepth - the limit for the cascading block updates
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lcht;Lcht;Lbtw;Lfx;II)V
      intermediary method_9611 Lnet/minecraft/class_2248;method_9611(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;II)V
      named replace Lnet/minecraft/block/Block;replace(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;II)V
    • cannotConnect

      public static boolean cannotConnect​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official j Lbwu;j(Lcht;)Z
      intermediary method_9581 Lnet/minecraft/class_2248;method_9581(Lnet/minecraft/class_2680;)Z
      named cannotConnect Lnet/minecraft/block/Block;cannotConnect(Lnet/minecraft/block/BlockState;)Z
    • hasRandomTicks

      public boolean hasRandomTicks​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official c_ Lbwu;c_(Lcht;)Z
      intermediary method_9542 Lnet/minecraft/class_2248;method_9542(Lnet/minecraft/class_2680;)Z
      named hasRandomTicks Lnet/minecraft/block/Block;hasRandomTicks(Lnet/minecraft/block/BlockState;)Z
    • shouldDrawSide

      @Environment(CLIENT) public static boolean shouldDrawSide​(BlockState state, BlockView world, BlockPos pos, Direction side, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lcht;Lbsz;Lfx;Lgc;Lfx;)Z
      intermediary method_9607 Lnet/minecraft/class_2248;method_9607(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;)Z
      named shouldDrawSide Lnet/minecraft/block/Block;shouldDrawSide(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;)Z
    • hasTopRim

      public static boolean hasTopRim​(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c Lbwu;c(Lbsz;Lfx;)Z
      intermediary method_16361 Lnet/minecraft/class_2248;method_16361(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
      named hasTopRim Lnet/minecraft/block/Block;hasTopRim(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • sideCoversSmallSquare

      public static boolean sideCoversSmallSquare​(WorldView world, BlockPos pos, Direction side)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbty;Lfx;Lgc;)Z
      intermediary method_20044 Lnet/minecraft/class_2248;method_20044(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
      named sideCoversSmallSquare Lnet/minecraft/block/Block;sideCoversSmallSquare(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • isFaceFullSquare

      public static boolean isFaceFullSquare​(VoxelShape shape, Direction side)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Ldjn;Lgc;)Z
      intermediary method_9501 Lnet/minecraft/class_2248;method_9501(Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Z
      named isFaceFullSquare Lnet/minecraft/block/Block;isFaceFullSquare(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Direction;)Z
    • isShapeFullCube

      public static boolean isShapeFullCube​(VoxelShape shape)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Ldjn;)Z
      intermediary method_9614 Lnet/minecraft/class_2248;method_9614(Lnet/minecraft/class_265;)Z
      named isShapeFullCube Lnet/minecraft/block/Block;isShapeFullCube(Lnet/minecraft/util/shape/VoxelShape;)Z
    • isTranslucent

      public boolean isTranslucent​(BlockState state, BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c Lbwu;c(Lcht;Lbsz;Lfx;)Z
      intermediary method_9579 Lnet/minecraft/class_2248;method_9579(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
      named isTranslucent Lnet/minecraft/block/Block;isTranslucent(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • randomDisplayTick

      @Environment(CLIENT) public void randomDisplayTick​(BlockState state, World world, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lcht;Lbtv;Lfx;Ljava/util/Random;)V
      intermediary method_9496 Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • onBroken

      public void onBroken​(WorldAccess world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbtw;Lfx;Lcht;)V
      intermediary method_9585 Lnet/minecraft/class_2248;method_9585(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named onBroken Lnet/minecraft/block/Block;onBroken(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • getDroppedStacks

      public static List<ItemStack> getDroppedStacks​(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lcht;Laav;Lfx;Lcfr;)Ljava/util/List;
      intermediary method_9562 Lnet/minecraft/class_2248;method_9562(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_2586;)Ljava/util/List;
      named getDroppedStacks Lnet/minecraft/block/Block;getDroppedStacks(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/BlockEntity;)Ljava/util/List;
    • getDroppedStacks

      public static List<ItemStack> getDroppedStacks​(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lcht;Laav;Lfx;Lcfr;Laqv;Lbnv;)Ljava/util/List;
      intermediary method_9609 Lnet/minecraft/class_2248;method_9609(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_2586;Lnet/minecraft/class_1297;Lnet/minecraft/class_1799;)Ljava/util/List;
      named getDroppedStacks Lnet/minecraft/block/Block;getDroppedStacks(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/item/ItemStack;)Ljava/util/List;
    • dropStacks

      public static void dropStacks​(BlockState state, World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c Lbwu;c(Lcht;Lbtv;Lfx;)V
      intermediary method_9497 Lnet/minecraft/class_2248;method_9497(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      named dropStacks Lnet/minecraft/block/Block;dropStacks(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • dropStacks

      public static void dropStacks​(BlockState state, WorldAccess world, BlockPos pos, @Nullable BlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lcht;Lbtw;Lfx;Lcfr;)V
      intermediary method_9610 Lnet/minecraft/class_2248;method_9610(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2586;)V
      named dropStacks Lnet/minecraft/block/Block;dropStacks(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/BlockEntity;)V
    • dropStacks

      public static void dropStacks​(BlockState state, World world, BlockPos pos, @Nullable BlockEntity blockEntity, Entity entity, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lcht;Lbtv;Lfx;Lcfr;Laqv;Lbnv;)V
      intermediary method_9511 Lnet/minecraft/class_2248;method_9511(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2586;Lnet/minecraft/class_1297;Lnet/minecraft/class_1799;)V
      named dropStacks Lnet/minecraft/block/Block;dropStacks(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/item/ItemStack;)V
    • dropStack

      public static void dropStack​(World world, BlockPos pos, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbtv;Lfx;Lbnv;)V
      intermediary method_9577 Lnet/minecraft/class_2248;method_9577(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)V
      named dropStack Lnet/minecraft/block/Block;dropStack(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)V
    • dropExperience

      protected void dropExperience​(ServerWorld world, BlockPos pos, int size)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Laav;Lfx;I)V
      intermediary method_9583 Lnet/minecraft/class_2248;method_9583(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;I)V
      named dropExperience Lnet/minecraft/block/Block;dropExperience(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;I)V
    • getBlastResistance

      public float getBlastResistance()
      Mappings:
      Namespace Name Mixin selector
      official f Lbwu;f()F
      intermediary method_9520 Lnet/minecraft/class_2248;method_9520()F
      named getBlastResistance Lnet/minecraft/block/Block;getBlastResistance()F
    • onDestroyedByExplosion

      public void onDestroyedByExplosion​(World world, BlockPos pos, Explosion explosion)
      Called when this block is destroyed by an explosion.
      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
    • onSteppedOn

      public void onSteppedOn​(World world, BlockPos pos, Entity entity)
      Called when an entity steps on this block.
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbtv;Lfx;Laqv;)V
      intermediary method_9591 Lnet/minecraft/class_2248;method_9591(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)V
      named onSteppedOn Lnet/minecraft/block/Block;onSteppedOn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
    • getPlacementState

      @Nullable public BlockState getPlacementState​(ItemPlacementContext ctx)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbpv;)Lcht;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
    • afterBreak

      public void afterBreak​(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbtv;Lbhl;Lfx;Lcht;Lcfr;Lbnv;)V
      intermediary method_9556 Lnet/minecraft/class_2248;method_9556(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2586;Lnet/minecraft/class_1799;)V
      named afterBreak Lnet/minecraft/block/Block;afterBreak(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/item/ItemStack;)V
    • onPlaced

      public void onPlaced​(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbtv;Lfx;Lcht;Lari;Lbnv;)V
      intermediary method_9567 Lnet/minecraft/class_2248;method_9567(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
      named onPlaced Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
    • canMobSpawnInside

      public boolean canMobSpawnInside()
      Mappings:
      Namespace Name Mixin selector
      official ak_ Lbwu;ak_()Z
      intermediary method_9538 Lnet/minecraft/class_2248;method_9538()Z
      named canMobSpawnInside Lnet/minecraft/block/Block;canMobSpawnInside()Z
    • getName

      @Environment(CLIENT) public MutableText getName()
      Mappings:
      Namespace Name Mixin selector
      official g Lbwu;g()Loo;
      intermediary method_9518 Lnet/minecraft/class_2248;method_9518()Lnet/minecraft/class_5250;
      named getName Lnet/minecraft/block/Block;getName()Lnet/minecraft/text/MutableText;
    • getTranslationKey

      public String getTranslationKey()
      Mappings:
      Namespace Name Mixin selector
      official h Lbwu;h()Ljava/lang/String;
      intermediary method_9539 Lnet/minecraft/class_2248;method_9539()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/block/Block;getTranslationKey()Ljava/lang/String;
    • onLandedUpon

      public void onLandedUpon​(World world, BlockPos pos, Entity entity, float distance)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbtv;Lfx;Laqv;F)V
      intermediary method_9554 Lnet/minecraft/class_2248;method_9554(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;F)V
      named onLandedUpon Lnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V
    • onEntityLand

      public void onEntityLand​(BlockView world, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbsz;Laqv;)V
      intermediary method_9502 Lnet/minecraft/class_2248;method_9502(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;)V
      named onEntityLand Lnet/minecraft/block/Block;onEntityLand(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;)V
    • getPickStack

      @Environment(CLIENT) public ItemStack getPickStack​(BlockView world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbsz;Lfx;Lcht;)Lbnv;
      intermediary method_9574 Lnet/minecraft/class_2248;method_9574(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1799;
      named getPickStack Lnet/minecraft/block/Block;getPickStack(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
    • addStacksForDisplay

      public void addStacksForDisplay​(ItemGroup group, DefaultedList<ItemStack> list)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbmm;Lgj;)V
      intermediary method_9578 Lnet/minecraft/class_2248;method_9578(Lnet/minecraft/class_1761;Lnet/minecraft/class_2371;)V
      named addStacksForDisplay Lnet/minecraft/block/Block;addStacksForDisplay(Lnet/minecraft/item/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
    • getSlipperiness

      public float getSlipperiness()
      Mappings:
      Namespace Name Mixin selector
      official i Lbwu;i()F
      intermediary method_9499 Lnet/minecraft/class_2248;method_9499()F
      named getSlipperiness Lnet/minecraft/block/Block;getSlipperiness()F
    • getVelocityMultiplier

      public float getVelocityMultiplier()
      Mappings:
      Namespace Name Mixin selector
      official j Lbwu;j()F
      intermediary method_23349 Lnet/minecraft/class_2248;method_23349()F
      named getVelocityMultiplier Lnet/minecraft/block/Block;getVelocityMultiplier()F
    • getJumpVelocityMultiplier

      public float getJumpVelocityMultiplier()
      Mappings:
      Namespace Name Mixin selector
      official l Lbwu;l()F
      intermediary method_23350 Lnet/minecraft/class_2248;method_23350()F
      named getJumpVelocityMultiplier Lnet/minecraft/block/Block;getJumpVelocityMultiplier()F
    • method_33614

      protected void method_33614​(World world, PlayerEntity playerEntity, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbtv;Lbhl;Lfx;Lcht;)V
      intermediary method_33614 Lnet/minecraft/class_2248;method_33614(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named method_33614 Lnet/minecraft/block/Block;method_33614(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • onBreak

      public void onBreak​(World world, BlockPos pos, BlockState state, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbtv;Lfx;Lcht;Lbhl;)V
      intermediary method_9576 Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)V
      named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
    • precipitationTick

      public void precipitationTick​(BlockState state, World world, BlockPos pos, Biome.Precipitation precipitation)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lcht;Lbtv;Lfx;Lbuu$e;)V
      intermediary method_9504 Lnet/minecraft/class_2248;method_9504(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1959$class_1963;)V
      named precipitationTick Lnet/minecraft/block/Block;precipitationTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/biome/Biome$Precipitation;)V
    • shouldDropItemsOnExplosion

      public boolean shouldDropItemsOnExplosion​(Explosion explosion)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbtn;)Z
      intermediary method_9533 Lnet/minecraft/class_2248;method_9533(Lnet/minecraft/class_1927;)Z
      named shouldDropItemsOnExplosion Lnet/minecraft/block/Block;shouldDropItemsOnExplosion(Lnet/minecraft/world/explosion/Explosion;)Z
    • appendProperties

      protected void appendProperties​(StateManager.Builder<Block,​BlockState> builder)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lchu$a;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
    • getStateManager

      public StateManager<Block,​BlockState> getStateManager()
      Mappings:
      Namespace Name Mixin selector
      official m Lbwu;m()Lchu;
      intermediary method_9595 Lnet/minecraft/class_2248;method_9595()Lnet/minecraft/class_2689;
      named getStateManager Lnet/minecraft/block/Block;getStateManager()Lnet/minecraft/state/StateManager;
    • setDefaultState

      protected final void setDefaultState​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official k Lbwu;k(Lcht;)V
      intermediary method_9590 Lnet/minecraft/class_2248;method_9590(Lnet/minecraft/class_2680;)V
      named setDefaultState Lnet/minecraft/block/Block;setDefaultState(Lnet/minecraft/block/BlockState;)V
    • getDefaultState

      public final BlockState getDefaultState()
      Mappings:
      Namespace Name Mixin selector
      official n Lbwu;n()Lcht;
      intermediary method_9564 Lnet/minecraft/class_2248;method_9564()Lnet/minecraft/class_2680;
      named getDefaultState Lnet/minecraft/block/Block;getDefaultState()Lnet/minecraft/block/BlockState;
    • getSoundGroup

      public BlockSoundGroup getSoundGroup​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official l Lbwu;l(Lcht;)Lcdg;
      intermediary method_9573 Lnet/minecraft/class_2248;method_9573(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2498;
      named getSoundGroup Lnet/minecraft/block/Block;getSoundGroup(Lnet/minecraft/block/BlockState;)Lnet/minecraft/sound/BlockSoundGroup;
    • asItem

      public Item asItem()
      Gets this object in its item form.
      Specified by:
      asItem in interface ItemConvertible
      Specified by:
      asItem in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official k Lchs;k()Lbnr;
      intermediary method_8389 Lnet/minecraft/class_4970;method_8389()Lnet/minecraft/class_1792;
      named asItem Lnet/minecraft/block/AbstractBlock;asItem()Lnet/minecraft/item/Item;
    • hasDynamicBounds

      public boolean hasDynamicBounds()
      Mappings:
      Namespace Name Mixin selector
      official o Lbwu;o()Z
      intermediary method_9543 Lnet/minecraft/class_2248;method_9543()Z
      named hasDynamicBounds Lnet/minecraft/block/Block;hasDynamicBounds()Z
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lbwu;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2248;toString()Ljava/lang/String;
      named toString Lnet/minecraft/block/Block;toString()Ljava/lang/String;
    • appendTooltip

      @Environment(CLIENT) public void appendTooltip​(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbnv;Lbsz;Ljava/util/List;Lbpi;)V
      intermediary method_9568 Lnet/minecraft/class_2248;method_9568(Lnet/minecraft/class_1799;Lnet/minecraft/class_1922;Ljava/util/List;Lnet/minecraft/class_1836;)V
      named appendTooltip Lnet/minecraft/block/Block;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/BlockView;Ljava/util/List;Lnet/minecraft/client/item/TooltipContext;)V
    • asBlock

      protected Block asBlock()
      Specified by:
      asBlock in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official p Lchs;p()Lbwu;
      intermediary method_26160 Lnet/minecraft/class_4970;method_26160()Lnet/minecraft/class_2248;
      named asBlock Lnet/minecraft/block/AbstractBlock;asBlock()Lnet/minecraft/block/Block;
    • getShapesForStates

      protected ImmutableMap<BlockState,​VoxelShape> getShapesForStates​(Function<BlockState,​VoxelShape> function)
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Ljava/util/function/Function;)Lcom/google/common/collect/ImmutableMap;
      intermediary method_33615 Lnet/minecraft/class_2248;method_33615(Ljava/util/function/Function;)Lcom/google/common/collect/ImmutableMap;
      named getShapesForStates Lnet/minecraft/block/Block;getShapesForStates(Ljava/util/function/Function;)Lcom/google/common/collect/ImmutableMap;