Class LeverBlock

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

public class LeverBlock extends Block
Mappings:
Namespace Name
official amn
intermediary net/minecraft/class_151
named net/minecraft/block/LeverBlock
  • Field Details

    • FACING

      public static final EnumProperty<LeverBlock.LeverType> FACING
      Mappings:
      Namespace Name Mixin selector
      official a Lamn;a:Larq;
      intermediary field_9505 Lnet/minecraft/class_151;field_9505:Lnet/minecraft/class_2245;
      named FACING Lnet/minecraft/block/LeverBlock;FACING:Lnet/minecraft/state/property/EnumProperty;
    • POWERED

      public static final BooleanProperty POWERED
      Mappings:
      Namespace Name Mixin selector
      official b Lamn;b:Laro;
      intermediary field_9506 Lnet/minecraft/class_151;field_9506:Lnet/minecraft/class_2243;
      named POWERED Lnet/minecraft/block/LeverBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
    • field_12698

      protected static final Box field_12698
      Mappings:
      Namespace Name Mixin selector
      official c Lamn;c:Lbbf;
      intermediary field_12698 Lnet/minecraft/class_151;field_12698:Lnet/minecraft/class_231;
      named field_12698 Lnet/minecraft/block/LeverBlock;field_12698:Lnet/minecraft/util/math/Box;
    • field_12699

      protected static final Box field_12699
      Mappings:
      Namespace Name Mixin selector
      official d Lamn;d:Lbbf;
      intermediary field_12699 Lnet/minecraft/class_151;field_12699:Lnet/minecraft/class_231;
      named field_12699 Lnet/minecraft/block/LeverBlock;field_12699:Lnet/minecraft/util/math/Box;
    • field_12700

      protected static final Box field_12700
      Mappings:
      Namespace Name Mixin selector
      official e Lamn;e:Lbbf;
      intermediary field_12700 Lnet/minecraft/class_151;field_12700:Lnet/minecraft/class_231;
      named field_12700 Lnet/minecraft/block/LeverBlock;field_12700:Lnet/minecraft/util/math/Box;
    • field_12701

      protected static final Box field_12701
      Mappings:
      Namespace Name Mixin selector
      official f Lamn;f:Lbbf;
      intermediary field_12701 Lnet/minecraft/class_151;field_12701:Lnet/minecraft/class_231;
      named field_12701 Lnet/minecraft/block/LeverBlock;field_12701:Lnet/minecraft/util/math/Box;
    • field_12702

      protected static final Box field_12702
      Mappings:
      Namespace Name Mixin selector
      official g Lamn;g:Lbbf;
      intermediary field_12702 Lnet/minecraft/class_151;field_12702:Lnet/minecraft/class_231;
      named field_12702 Lnet/minecraft/block/LeverBlock;field_12702:Lnet/minecraft/util/math/Box;
    • field_12697

      protected static final Box field_12697
      Mappings:
      Namespace Name Mixin selector
      official B Lamn;B:Lbbf;
      intermediary field_12697 Lnet/minecraft/class_151;field_12697:Lnet/minecraft/class_231;
      named field_12697 Lnet/minecraft/block/LeverBlock;field_12697:Lnet/minecraft/util/math/Box;
  • Constructor Details

    • LeverBlock

      protected LeverBlock()
  • Method Details

    • getCollisionBox

      @Nullable public Box getCollisionBox(BlockState state, World world, BlockPos pos)
      Overrides:
      getCollisionBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laht;Lcl;)Lbbf;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • isFullBoundsCubeForCulling

      public boolean isFullBoundsCubeForCulling(BlockState blockState)
      Overrides:
      isFullBoundsCubeForCulling in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lajt;b(Lard;)Z
      intermediary method_11560 Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Z
      named isFullBoundsCubeForCulling Lnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
    • method_11562

      public boolean method_11562(BlockState state)
      Overrides:
      method_11562 in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lajt;c(Lard;)Z
      intermediary method_11562 Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Z
      named method_11562 Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
    • 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 Lajt;b(Laht;Lcl;Lcs;)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
    • canBePlacedAtPos

      public boolean canBePlacedAtPos(World world, BlockPos pos)
      Returns whether the current block can be placed at a certain BlockPos
      Overrides:
      canBePlacedAtPos in class Block
      Returns:
      Whether the current block can be placed at a BlockPos
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Laht;Lcl;)Z
      intermediary method_8673 Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named canBePlacedAtPos Lnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • method_8808

      protected static boolean method_8808(World world, BlockPos blockPos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lamn;a(Laht;Lcl;Lcs;)Z
      intermediary method_8808 Lnet/minecraft/class_151;method_8808(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named method_8808 Lnet/minecraft/block/LeverBlock;method_8808(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • 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 Lajt;a(Laht;Lcl;Lcs;FFFILsa;)Lard;
      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;
    • method_8641

      public void method_8641(BlockState blockState, World world, BlockPos blockPos, Block block)
      Overrides:
      method_8641 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laht;Lcl;Lajt;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;)V
      named method_8641 Lnet/minecraft/block/Block;method_8641(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
    • method_8810

      private boolean method_8810(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official e Lamn;e(Laht;Lcl;Lard;)Z
      intermediary method_8810 Lnet/minecraft/class_151;method_8810(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named method_8810 Lnet/minecraft/block/LeverBlock;method_8810(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • getCollisionBox

      public Box getCollisionBox(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      getCollisionBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Lahx;Lcl;)Lbbf;
      intermediary method_11554 Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • method_421

      public boolean method_421(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity, Hand hand, @Nullable ItemStack itemStack, Direction direction, float float2, float float3, float float4)
      Overrides:
      method_421 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Laht;Lcl;Lard;Lzj;Lqm;Ladq;Lcs;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_2961;Lnet/minecraft/class_1071;Lnet/minecraft/class_1354;FFF)Z
      named method_421 Lnet/minecraft/block/Block;method_421(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;FFF)Z
    • onBreaking

      public void onBreaking(World world, BlockPos pos, BlockState state)
      Runs when the block is removed (by an entity or explosion).
      Overrides:
      onBreaking in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      Mappings:
      Namespace Name Mixin selector
      official b Lajt;b(Laht;Lcl;Lard;)V
      intermediary method_8659 Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named onBreaking Lnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • method_8653

      public int method_8653(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction)
      Overrides:
      method_8653 in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lajt;b(Lard;Lahx;Lcl;Lcs;)I
      intermediary method_8653 Lnet/minecraft/class_197;method_8653(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)I
      named method_8653 Lnet/minecraft/block/Block;method_8653(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • method_8664

      public int method_8664(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction)
      Overrides:
      method_8664 in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lajt;c(Lard;Lahx;Lcl;Lcs;)I
      intermediary method_8664 Lnet/minecraft/class_197;method_8664(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)I
      named method_8664 Lnet/minecraft/block/Block;method_8664(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • method_11566

      public boolean method_11566(BlockState state)
      Overrides:
      method_11566 in class Block
      Mappings:
      Namespace Name Mixin selector
      official g Lajt;g(Lard;)Z
      intermediary method_11566 Lnet/minecraft/class_197;method_11566(Lnet/minecraft/class_2232;)Z
      named method_11566 Lnet/minecraft/block/Block;method_11566(Lnet/minecraft/block/BlockState;)Z
    • 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 Lajt;a(I)Lard;
      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 e Lajt;e(Lard;)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
    • withRotation

      public BlockState withRotation(BlockState state, BlockRotation rotation)
      Overrides:
      withRotation in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laoe;)Lard;
      intermediary method_11556 Lnet/minecraft/class_197;method_11556(Lnet/minecraft/class_2232;Lnet/minecraft/class_2734;)Lnet/minecraft/class_2232;
      named withRotation Lnet/minecraft/block/Block;withRotation(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
    • withMirror

      public BlockState withMirror(BlockState state, BlockMirror mirror)
      Overrides:
      withMirror in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Lamr;)Lard;
      intermediary method_11555 Lnet/minecraft/class_197;method_11555(Lnet/minecraft/class_2232;Lnet/minecraft/class_2727;)Lnet/minecraft/class_2232;
      named withMirror Lnet/minecraft/block/Block;withMirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
    • 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 b Lajt;b()Lare;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;