Class TrapdoorBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.TrapdoorBlock

public class TrapdoorBlock extends Block
Mappings:
Namespace Name
official akh
intermediary net/minecraft/class_205
named net/minecraft/block/TrapdoorBlock
  • Field Details

    • FACING

      public static final DirectionProperty FACING
      Mappings:
      Namespace Name Mixin selector
      official a Lakh;a:Laml;
      intermediary field_9751 Lnet/minecraft/class_205;field_9751:Lnet/minecraft/class_2244;
      named FACING Lnet/minecraft/block/TrapdoorBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
    • OPEN

      public static final BooleanProperty OPEN
      Mappings:
      Namespace Name Mixin selector
      official b Lakh;b:Lamk;
      intermediary field_9752 Lnet/minecraft/class_205;field_9752:Lnet/minecraft/class_2243;
      named OPEN Lnet/minecraft/block/TrapdoorBlock;OPEN:Lnet/minecraft/state/property/BooleanProperty;
    • HALF

      public static final EnumProperty<TrapdoorBlock.TrapdoorType> HALF
      Mappings:
      Namespace Name Mixin selector
      official N Lakh;N:Lamm;
      intermediary field_9750 Lnet/minecraft/class_205;field_9750:Lnet/minecraft/class_2245;
      named HALF Lnet/minecraft/block/TrapdoorBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • TrapdoorBlock

      protected TrapdoorBlock(Material material)
      Parameters:
      material - The block's material
      Mappings:
      Namespace Name Mixin selector
      official <init> Lafh;<init>(Larm;)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

    • hasTransperancy

      public boolean hasTransperancy()
      Overrides:
      hasTransperancy in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c()Z
      intermediary method_449 Lnet/minecraft/class_197;method_449()Z
      named hasTransperancy Lnet/minecraft/block/Block;hasTransperancy()Z
    • renderAsNormalBlock

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

      public boolean blocksMovement(BlockView view, BlockPos pos)
      Overrides:
      blocksMovement in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b(Ladq;Lcj;)Z
      intermediary method_8663 Lnet/minecraft/class_197;method_8663(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Z
      named blocksMovement Lnet/minecraft/block/Block;blocksMovement(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • getSelectionBox

      @Environment(CLIENT) public Box getSelectionBox(World world, BlockPos pos)
      Overrides:
      getSelectionBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b(Ladm;Lcj;)Laug;
      intermediary method_8657 Lnet/minecraft/class_197;method_8657(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named getSelectionBox Lnet/minecraft/block/Block;getSelectionBox(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • getCollisionBox

      public Box getCollisionBox(World world, BlockPos pos, BlockState state)
      Returns a box by adding the block's current location and the block's corresponding value in its Bounding Box
      Overrides:
      getCollisionBox in class Block
      Parameters:
      world - The world that the block has been placed
      pos - The block's position
      state - The block's BlockState
      Returns:
      The Collision box
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;)Laug;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
    • setBoundingBox

      public void setBoundingBox(BlockView view, BlockPos pos)
      Overrides:
      setBoundingBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladq;Lcj;)V
      intermediary method_8652 Lnet/minecraft/class_197;method_8652(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)V
      named setBoundingBox Lnet/minecraft/block/Block;setBoundingBox(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)V
    • setBlockItemBounds

      public void setBlockItemBounds()
      Sets the bounds for the BlockItem
      Overrides:
      setBlockItemBounds in class Block
      Mappings:
      Namespace Name Mixin selector
      official j Lafh;j()V
      intermediary method_456 Lnet/minecraft/class_197;method_456()V
      named setBlockItemBounds Lnet/minecraft/block/Block;setBlockItemBounds()V
    • method_8940

      public void method_8940(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official d Lakh;d(Lalz;)V
      intermediary method_8940 Lnet/minecraft/class_205;method_8940(Lnet/minecraft/class_2232;)V
      named method_8940 Lnet/minecraft/block/TrapdoorBlock;method_8940(Lnet/minecraft/block/BlockState;)V
    • onUse

      public boolean onUse(World world, BlockPos pos, BlockState state, PlayerEntity player, Direction direction, float float2, float float3, float float4)
      Runs when the block is used, i.e. right clicked in most cases. It is similar to the same method in Item, but this method is called only when the player uses it when the block is placed, not when the player is holding the BlockItem.
      Overrides:
      onUse in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      player - The player who used the block
      direction - The direction that the block is facing
      Returns:
      Whether the action is succesful
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;Lwn;Lcq;FFF)Z
      intermediary method_421 Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;Lnet/minecraft/class_1354;FFF)Z
      named onUse Lnet/minecraft/block/Block;onUse(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Direction;FFF)Z
    • neighborUpdate

      public void neighborUpdate(World world, BlockPos pos, BlockState state, Block block)
      Runs when its adjacent blocks are updated. It will also run when the block is placed or removed as Air is being updated.
      Overrides:
      neighborUpdate in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      block - The adjacent Block that updated the current block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;Lafh;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_197;)V
      named neighborUpdate Lnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/Block;)V
    • method_414

      public BlockHitResult method_414(World world, BlockPos pos, Vec3d vec1, Vec3d vec2)
      Overrides:
      method_414 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Laui;Laui;)Lauh;
      intermediary method_414 Lnet/minecraft/class_197;method_414(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_236;Lnet/minecraft/class_236;)Lnet/minecraft/class_234;
      named method_414 Lnet/minecraft/block/Block;method_414(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/hit/BlockHitResult;
    • getStateFromData

      public BlockState getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity)
      Returns a BlockState from an id
      Overrides:
      getStateFromData in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      dir - The block's direction
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lcq;FFFILpr;)Lalz;
      intermediary method_8645 Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;
      named getStateFromData Lnet/minecraft/block/Block;getStateFromData(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFFILnet/minecraft/entity/LivingEntity;)Lnet/minecraft/block/BlockState;
    • canBePlacedAdjacent

      public boolean canBePlacedAdjacent(World world, BlockPos pos, Direction direction)
      Returns whether blocks can be placed adjacent to it.
      Overrides:
      canBePlacedAdjacent in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      direction - The block's direction
      Returns:
      Whether blocks can be placed adjacent to it
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b(Ladm;Lcj;Lcq;)Z
      intermediary method_8662 Lnet/minecraft/class_197;method_8662(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named canBePlacedAdjacent Lnet/minecraft/block/Block;canBePlacedAdjacent(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • method_8939

      protected static Direction method_8939(int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Lakh;b(I)Lcq;
      intermediary method_8939 Lnet/minecraft/class_205;method_8939(I)Lnet/minecraft/class_1354;
      named method_8939 Lnet/minecraft/block/TrapdoorBlock;method_8939(I)Lnet/minecraft/util/math/Direction;
    • method_8938

      protected static int method_8938(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lakh;a(Lcq;)I
      intermediary method_8938 Lnet/minecraft/class_205;method_8938(Lnet/minecraft/class_1354;)I
      named method_8938 Lnet/minecraft/block/TrapdoorBlock;method_8938(Lnet/minecraft/util/math/Direction;)I
    • method_6515

      private static boolean method_6515(Block block)
      Mappings:
      Namespace Name Mixin selector
      official c Lakh;c(Lafh;)Z
      intermediary method_6515 Lnet/minecraft/class_205;method_6515(Lnet/minecraft/class_197;)Z
      named method_6515 Lnet/minecraft/block/TrapdoorBlock;method_6515(Lnet/minecraft/block/Block;)Z
    • getRenderLayerType

      @Environment(CLIENT) public BlockRenderLayer getRenderLayerType()
      Returns the appropriate RenderLayer for a block. Only called on the client.
      Overrides:
      getRenderLayerType in class Block
      Returns:
      The block's RenderLayer
      Mappings:
      Namespace Name Mixin selector
      official m Lafh;m()Ladf;
      intermediary method_8687 Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
    • stateFromData

      public BlockState stateFromData(int data)
      Returns a blockstate of the current block from it's id
      Overrides:
      stateFromData in class Block
      Parameters:
      data - The Blockstate's associated data value
      Returns:
      The Default state
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(I)Lalz;
      intermediary method_8635 Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;
      named stateFromData Lnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
    • getData

      public int getData(BlockState state)
      Returns the data value for a blockstate Throws an IllegalArmumentException as this method does not work
      Overrides:
      getData in class Block
      Parameters:
      state - The Blockstate
      Returns:
      Zero
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c(Lalz;)I
      intermediary method_8671 Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)I
      named getData Lnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
    • appendProperties

      protected StateManager appendProperties()
      Returns a new state manager with a property array.
      Overrides:
      appendProperties in class Block
      Returns:
      New state manager
      Mappings:
      Namespace Name Mixin selector
      official e Lafh;e()Lama;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;