Class AbstractPressurePlateBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractPressurePlateBlock
Direct Known Subclasses:
PressurePlateBlock, WeightedPressurePlateBlock

public abstract class AbstractPressurePlateBlock
extends Block
Mappings:
Namespace Name
official afd
intermediary net/minecraft/class_153
named net/minecraft/block/AbstractPressurePlateBlock
  • Constructor Details

    • AbstractPressurePlateBlock

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

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

    • setBoundingBox

      public void setBoundingBox​(WorldView view, BlockPos pos)
      Overrides:
      setBoundingBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladq;Lcj;)V
      intermediary method_665 Lnet/minecraft/class_160;method_665(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)V
      named setBoundingBox Lnet/minecraft/block/Block;setBoundingBox(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)V
    • setBoundingBox

      protected void setBoundingBox​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official d Lafd;d(Lalz;)V
      intermediary method_585 Lnet/minecraft/class_153;method_585(Lnet/minecraft/class_376;)V
      named setBoundingBox Lnet/minecraft/block/AbstractPressurePlateBlock;setBoundingBox(Lnet/minecraft/block/BlockState;)V
    • getTickRate

      public int getTickRate​(World world)
      Returns the block's tick rate. Default is 10.
      Overrides:
      getTickRate in class Block
      Parameters:
      world - The world that the block is placed in
      Returns:
      Tick rate
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;)I
      intermediary method_642 Lnet/minecraft/class_160;method_642(Lnet/minecraft/class_99;)I
      named getTickRate Lnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
    • 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_645 Lnet/minecraft/class_160;method_645(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Lnet/minecraft/class_646;
      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;
    • hasTransperancy

      public boolean hasTransperancy()
      Overrides:
      hasTransperancy in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c()Z
      intermediary method_699 Lnet/minecraft/class_160;method_699()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_709 Lnet/minecraft/class_160;method_709()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • blocksMovement

      public boolean blocksMovement​(WorldView view, BlockPos pos)
      Overrides:
      blocksMovement in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b(Ladq;Lcj;)Z
      intermediary method_692 Lnet/minecraft/class_160;method_692(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Z
      named blocksMovement Lnet/minecraft/block/Block;blocksMovement(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
    • canMobSpawnInside

      public boolean canMobSpawnInside()
      Returns whether mobs can spawn inside the block. Used for Air.
      Overrides:
      canMobSpawnInside in class Block
      Returns:
      Whether mobs can spawn inside the block
      Mappings:
      Namespace Name Mixin selector
      official g Lafh;g()Z
      intermediary method_718 Lnet/minecraft/class_160;method_718()Z
      named canMobSpawnInside Lnet/minecraft/block/Block;canMobSpawnInside()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 d Lafh;d(Ladm;Lcj;)Z
      intermediary method_711 Lnet/minecraft/class_160;method_711(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Z
      named canBePlacedAtPos Lnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)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_648 Lnet/minecraft/class_160;method_648(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_160;)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
    • canBePlacedOnBlockBelow

      private boolean canBePlacedOnBlockBelow​(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official m Lafd;m(Ladm;Lcj;)Z
      intermediary method_589 Lnet/minecraft/class_153;method_589(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Z
      named canBePlacedOnBlockBelow Lnet/minecraft/block/AbstractPressurePlateBlock;canBePlacedOnBlockBelow(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • onUpdateTick

      public void onUpdateTick​(World world, BlockPos pos, BlockState state, Random rand)
      Runs when the block is updated
      Overrides:
      onUpdateTick in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_650 Lnet/minecraft/class_160;method_650(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)V
      named onUpdateTick Lnet/minecraft/block/Block;onUpdateTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • scheduledTick

      public void scheduledTick​(World world, BlockPos pos, BlockState state, Random rand)
      Runs when the block is updated as per a schedule
      Overrides:
      scheduledTick in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_690 Lnet/minecraft/class_160;method_690(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • onEntityCollision

      public void onEntityCollision​(World world, BlockPos pos, BlockState state, Entity entity)
      Runs every time an entity collides with the block
      Overrides:
      onEntityCollision in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      entity - The entity that collided with the block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;Lpk;)V
      intermediary method_651 Lnet/minecraft/class_160;method_651(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_1745;)V
      named onEntityCollision Lnet/minecraft/block/Block;onEntityCollision(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/Entity;)V
    • method_582

      protected void method_582​(World world, BlockPos pos, BlockState state, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lafd;a(Ladm;Lcj;Lalz;I)V
      intermediary method_582 Lnet/minecraft/class_153;method_582(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;I)V
      named method_582 Lnet/minecraft/block/AbstractPressurePlateBlock;method_582(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)V
    • method_584

      protected Box method_584​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lafd;a(Lcj;)Laug;
      intermediary method_584 Lnet/minecraft/class_153;method_584(Lnet/minecraft/class_1372;)Lnet/minecraft/class_646;
      named method_584 Lnet/minecraft/block/AbstractPressurePlateBlock;method_584(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • onBreaking

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

      protected void updateNeighbours​(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official e Lafd;e(Ladm;Lcj;)V
      intermediary method_586 Lnet/minecraft/class_153;method_586(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)V
      named updateNeighbours Lnet/minecraft/block/AbstractPressurePlateBlock;updateNeighbours(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • getWeakRedstonePower

      public int getWeakRedstonePower​(WorldView view, BlockPos pos, BlockState state, Direction facing)
      Returns the block's weak redstone power.
      Overrides:
      getWeakRedstonePower in class Block
      Parameters:
      view - WorldView instance
      pos - The block's position
      state - The block's BlockState
      facing - The block's direction
      Returns:
      Block's weak redstone power
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladq;Lcj;Lalz;Lcq;)I
      intermediary method_667 Lnet/minecraft/class_160;method_667(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_1383;)I
      named getWeakRedstonePower Lnet/minecraft/block/Block;getWeakRedstonePower(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)I
    • getStrongRedstonePower

      public int getStrongRedstonePower​(WorldView view, BlockPos pos, BlockState state, Direction facing)
      Returns the block's strong redstone power.
      Overrides:
      getStrongRedstonePower in class Block
      Parameters:
      view - WorldView instance
      pos - The block's position
      state - The block's BlockState
      facing - The block's direction
      Returns:
      The Block's strong redstone power
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b(Ladq;Lcj;Lalz;Lcq;)I
      intermediary method_693 Lnet/minecraft/class_160;method_693(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_1383;)I
      named getStrongRedstonePower Lnet/minecraft/block/Block;getStrongRedstonePower(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)I
    • emitsRedstonePower

      public boolean emitsRedstonePower()
      Returns whether the current block emits a redstone signal. Used by comparators, Redstone Blocks, etc.
      Overrides:
      emitsRedstonePower in class Block
      Returns:
      Whether the current block emits a redstone signal
      Mappings:
      Namespace Name Mixin selector
      official i Lafh;i()Z
      intermediary method_723 Lnet/minecraft/class_160;method_723()Z
      named emitsRedstonePower Lnet/minecraft/block/Block;emitsRedstonePower()Z
    • 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_725 Lnet/minecraft/class_160;method_725()V
      named setBlockItemBounds Lnet/minecraft/block/Block;setBlockItemBounds()V
    • getPistonInteractionType

      public int getPistonInteractionType()
      Returns the block's piston interaction type, as provided by it's material.
      Overrides:
      getPistonInteractionType in class Block
      Returns:
      Current block's piston interaction type
      Mappings:
      Namespace Name Mixin selector
      official k Lafh;k()I
      intermediary method_728 Lnet/minecraft/class_160;method_728()I
      named getPistonInteractionType Lnet/minecraft/block/Block;getPistonInteractionType()I
    • getRedstoneOutput

      protected abstract int getRedstoneOutput​(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official f Lafd;f(Ladm;Lcj;)I
      intermediary method_588 Lnet/minecraft/class_153;method_588(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)I
      named getRedstoneOutput Lnet/minecraft/block/AbstractPressurePlateBlock;getRedstoneOutput(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
    • getMinRedstoneOutput

      protected abstract int getMinRedstoneOutput​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official e Lafd;e(Lalz;)I
      intermediary method_587 Lnet/minecraft/class_153;method_587(Lnet/minecraft/class_376;)I
      named getMinRedstoneOutput Lnet/minecraft/block/AbstractPressurePlateBlock;getMinRedstoneOutput(Lnet/minecraft/block/BlockState;)I
    • setRedstoneOutput

      protected abstract BlockState setRedstoneOutput​(BlockState state, int value)
      Mappings:
      Namespace Name Mixin selector
      official a Lafd;a(Lalz;I)Lalz;
      intermediary method_583 Lnet/minecraft/class_153;method_583(Lnet/minecraft/class_376;I)Lnet/minecraft/class_376;
      named setRedstoneOutput Lnet/minecraft/block/AbstractPressurePlateBlock;setRedstoneOutput(Lnet/minecraft/block/BlockState;I)Lnet/minecraft/block/BlockState;