Class AbstractPressurePlateBlock

java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractPressurePlateBlock
All Implemented Interfaces:
ItemConvertible
Direct Known Subclasses:
PressurePlateBlock, WeightedPressurePlateBlock

public abstract class AbstractPressurePlateBlock extends Block
Mappings:
Namespace Name
official ccn
intermediary net/minecraft/class_2231
named net/minecraft/block/AbstractPressurePlateBlock
  • Field Details

    • PRESSED_SHAPE

      protected static final VoxelShape PRESSED_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a:Ldpf;
      intermediary field_9942 Lnet/minecraft/class_2231;field_9942:Lnet/minecraft/class_265;
      named PRESSED_SHAPE Lnet/minecraft/block/AbstractPressurePlateBlock;PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • DEFAULT_SHAPE

      protected static final VoxelShape DEFAULT_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official b Lccn;b:Ldpf;
      intermediary field_9943 Lnet/minecraft/class_2231;field_9943:Lnet/minecraft/class_265;
      named DEFAULT_SHAPE Lnet/minecraft/block/AbstractPressurePlateBlock;DEFAULT_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • BOX

      protected static final Box BOX
      Mappings:
      Namespace Name Mixin selector
      official c Lccn;c:Ldoh;
      intermediary field_9941 Lnet/minecraft/class_2231;field_9941:Lnet/minecraft/class_238;
      named BOX Lnet/minecraft/block/AbstractPressurePlateBlock;BOX:Lnet/minecraft/util/math/Box;
  • Constructor Details

    • AbstractPressurePlateBlock

      protected AbstractPressurePlateBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcob;<init>(Lcob$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

    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lbzj;Lgh;Ldor;)Ldpf;
      intermediary method_9530 Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      named getOutlineShape Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
    • getTickRate

      protected int getTickRate()
      Mappings:
      Namespace Name Mixin selector
      official c Lccn;c()I
      intermediary method_9563 Lnet/minecraft/class_2231;method_9563()I
      named getTickRate Lnet/minecraft/block/AbstractPressurePlateBlock;getTickRate()I
    • canMobSpawnInside

      public boolean canMobSpawnInside()
      Overrides:
      canMobSpawnInside in class Block
      Mappings:
      Namespace Name Mixin selector
      official X_ Lccy;X_()Z
      intermediary method_9538 Lnet/minecraft/class_2248;method_9538()Z
      named canMobSpawnInside Lnet/minecraft/block/Block;canMobSpawnInside()Z
    • getStateForNeighborUpdate

      public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
      Gets the possibly updated block state of this block when a neighboring block is updated.
      Overrides:
      getStateForNeighborUpdate in class AbstractBlock
      Parameters:
      state - the state of this block
      direction - the direction from this block to the neighbor
      neighborState - the state of the updated neighbor block
      world - the world
      pos - the position of this block
      neighborPos - the position of the neighbor block
      Returns:
      the new state of this block
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lgm;Lcoc;Lcae;Lgh;Lgh;)Lcoc;
      intermediary method_9559 Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getStateForNeighborUpdate Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • canPlaceAt

      public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
      Overrides:
      canPlaceAt in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcag;Lgh;)Z
      intermediary method_9558 Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      named canPlaceAt Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
    • scheduledTick

      public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      scheduledTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Ladi;Lgh;Ljava/util/Random;)V
      intermediary method_9588 Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • onEntityCollision

      public void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
      Overrides:
      onEntityCollision in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;Lawt;)V
      intermediary method_9548 Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)V
      named onEntityCollision Lnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
    • updatePlateState

      protected void updatePlateState(@Nullable @Nullable Entity entity, World world, BlockPos pos, BlockState state, int output)
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a(Lawt;Lcad;Lgh;Lcoc;I)V
      intermediary method_9433 Lnet/minecraft/class_2231;method_9433(Lnet/minecraft/class_1297;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;I)V
      named updatePlateState Lnet/minecraft/block/AbstractPressurePlateBlock;updatePlateState(Lnet/minecraft/entity/Entity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)V
    • playPressSound

      protected abstract void playPressSound(WorldAccess world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a(Lcae;Lgh;)V
      intermediary method_9436 Lnet/minecraft/class_2231;method_9436(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)V
      named playPressSound Lnet/minecraft/block/AbstractPressurePlateBlock;playPressSound(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
    • playDepressSound

      protected abstract void playDepressSound(WorldAccess world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lccn;b(Lcae;Lgh;)V
      intermediary method_9438 Lnet/minecraft/class_2231;method_9438(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)V
      named playDepressSound Lnet/minecraft/block/AbstractPressurePlateBlock;playDepressSound(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
    • onStateReplaced

      public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)
      Called in WorldChunk.setBlockState(BlockPos, BlockState, boolean) if newState is different from state. Vanilla blocks perform removal cleanups here.
      Overrides:
      onStateReplaced in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;Lcoc;Z)V
      intermediary method_9536 Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
      named onStateReplaced Lnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
    • updateNeighbors

      protected void updateNeighbors(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a(Lcad;Lgh;)V
      intermediary method_9437 Lnet/minecraft/class_2231;method_9437(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      named updateNeighbors Lnet/minecraft/block/AbstractPressurePlateBlock;updateNeighbors(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • getWeakRedstonePower

      public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
      Overrides:
      getWeakRedstonePower in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lbzj;Lgh;Lgm;)I
      intermediary method_9524 Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
      named getWeakRedstonePower Lnet/minecraft/block/AbstractBlock;getWeakRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • getStrongRedstonePower

      public int getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
      Overrides:
      getStrongRedstonePower in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lcob;b(Lcoc;Lbzj;Lgh;Lgm;)I
      intermediary method_9603 Lnet/minecraft/class_4970;method_9603(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
      named getStrongRedstonePower Lnet/minecraft/block/AbstractBlock;getStrongRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • emitsRedstonePower

      public boolean emitsRedstonePower(BlockState state)
      Overrides:
      emitsRedstonePower in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official f_ Lcob;f_(Lcoc;)Z
      intermediary method_9506 Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Z
      named emitsRedstonePower Lnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
    • getPistonBehavior

      public PistonBehavior getPistonBehavior(BlockState state)
      Overrides:
      getPistonBehavior in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official d Lcob;d(Lcoc;)Ldib;
      intermediary method_9527 Lnet/minecraft/class_4970;method_9527(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3619;
      named getPistonBehavior Lnet/minecraft/block/AbstractBlock;getPistonBehavior(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/piston/PistonBehavior;
    • getRedstoneOutput

      protected abstract int getRedstoneOutput(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lccn;b(Lcad;Lgh;)I
      intermediary method_9434 Lnet/minecraft/class_2231;method_9434(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
      named getRedstoneOutput Lnet/minecraft/block/AbstractPressurePlateBlock;getRedstoneOutput(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
    • getRedstoneOutput

      protected abstract int getRedstoneOutput(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official g Lccn;g(Lcoc;)I
      intermediary method_9435 Lnet/minecraft/class_2231;method_9435(Lnet/minecraft/class_2680;)I
      named getRedstoneOutput Lnet/minecraft/block/AbstractPressurePlateBlock;getRedstoneOutput(Lnet/minecraft/block/BlockState;)I
    • setRedstoneOutput

      protected abstract BlockState setRedstoneOutput(BlockState state, int rsOut)
      Mappings:
      Namespace Name Mixin selector
      official a Lccn;a(Lcoc;I)Lcoc;
      intermediary method_9432 Lnet/minecraft/class_2231;method_9432(Lnet/minecraft/class_2680;I)Lnet/minecraft/class_2680;
      named setRedstoneOutput Lnet/minecraft/block/AbstractPressurePlateBlock;setRedstoneOutput(Lnet/minecraft/block/BlockState;I)Lnet/minecraft/block/BlockState;