Package net.minecraft.block
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
- Mappings:
Namespace Name official cilintermediary net/minecraft/class_2231named net/minecraft/block/AbstractPressurePlateBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Boxprotected static final VoxelShapeprotected static final VoxelShapeFields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanPlaceAt(BlockState state, WorldView world, BlockPos pos) booleanemitsRedstonePower(BlockState state) getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) getPistonBehavior(BlockState state) protected abstract intgetRedstoneOutput(BlockState state) protected abstract intgetRedstoneOutput(World world, BlockPos pos) 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.intgetStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) protected intintgetWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) voidonEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) voidonStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)ifnewStateis different fromstate.protected abstract voidplayDepressSound(WorldAccess world, BlockPos pos) protected abstract voidplayPressSound(WorldAccess world, BlockPos pos) voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) protected abstract BlockStatesetRedstoneOutput(BlockState state, int rsOut) protected voidupdateNeighbors(World world, BlockPos pos) protected voidupdatePlateState(@Nullable Entity entity, World world, BlockPos pos, BlockState state, int output) Methods inherited from class net.minecraft.block.Block
afterBreak, appendProperties, appendStacks, appendTooltip, asBlock, asItem, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getVerticalModelOffsetMultiplier, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTick, rotate
-
Field Details
-
PRESSED_SHAPE
- Mappings:
Namespace Name Mixin selector official aLcil;a:Ldwm;intermediary field_9942Lnet/minecraft/class_2231;field_9942:Lnet/minecraft/class_265;named PRESSED_SHAPELnet/minecraft/block/AbstractPressurePlateBlock;PRESSED_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
DEFAULT_SHAPE
- Mappings:
Namespace Name Mixin selector official bLcil;b:Ldwm;intermediary field_9943Lnet/minecraft/class_2231;field_9943:Lnet/minecraft/class_265;named DEFAULT_SHAPELnet/minecraft/block/AbstractPressurePlateBlock;DEFAULT_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
BOX
- Mappings:
Namespace Name Mixin selector official cLcil;c:Ldvo;intermediary field_9941Lnet/minecraft/class_2231;field_9941:Lnet/minecraft/class_238;named BOXLnet/minecraft/block/AbstractPressurePlateBlock;BOX:Lnet/minecraft/util/math/Box;
-
-
Constructor Details
-
AbstractPressurePlateBlock
- Mappings:
Namespace Name Mixin selector official <init>Lcuq;<init>(Lcuq$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <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:
getOutlineShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcfg;Lgt;Ldvy;)Ldwm;intermediary method_9530Lnet/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 getOutlineShapeLnet/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 bLcil;b()Iintermediary method_9563Lnet/minecraft/class_2231;method_9563()Inamed getTickRateLnet/minecraft/block/AbstractPressurePlateBlock;getTickRate()I
-
canMobSpawnInside
public boolean canMobSpawnInside()- Overrides:
canMobSpawnInsidein classBlock- Mappings:
Namespace Name Mixin selector official Z_Lciw;Z_()Zintermediary method_9538Lnet/minecraft/class_2248;method_9538()Znamed canMobSpawnInsideLnet/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:
getStateForNeighborUpdatein classAbstractBlock- Parameters:
state- the state of this blockdirection- the direction from this block to the neighborneighborState- the state of the updated neighbor blockworld- the worldpos- the position of this blockneighborPos- the position of the neighbor block- Returns:
- the new state of this block
- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lgy;Lcur;Lcgb;Lgt;Lgt;)Lcur;intermediary method_9559Lnet/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 getStateForNeighborUpdateLnet/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
- Overrides:
canPlaceAtin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcgd;Lgt;)Zintermediary method_9558Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Znamed canPlaceAtLnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
scheduledTick
- Overrides:
scheduledTickin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lafo;Lgt;Lalu;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vnamed scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
-
onEntityCollision
- Overrides:
onEntityCollisionin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcga;Lgt;Lbaq;)Vintermediary method_9548Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Vnamed onEntityCollisionLnet/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 aLcil;a(Lbaq;Lcga;Lgt;Lcur;I)Vintermediary method_9433Lnet/minecraft/class_2231;method_9433(Lnet/minecraft/class_1297;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;I)Vnamed updatePlateStateLnet/minecraft/block/AbstractPressurePlateBlock;updatePlateState(Lnet/minecraft/entity/Entity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)V
-
playPressSound
- Mappings:
Namespace Name Mixin selector official aLcil;a(Lcgb;Lgt;)Vintermediary method_9436Lnet/minecraft/class_2231;method_9436(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Vnamed playPressSoundLnet/minecraft/block/AbstractPressurePlateBlock;playPressSound(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
-
playDepressSound
- Mappings:
Namespace Name Mixin selector official bLcil;b(Lcgb;Lgt;)Vintermediary method_9438Lnet/minecraft/class_2231;method_9438(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Vnamed playDepressSoundLnet/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 inWorldChunk.setBlockState(BlockPos, BlockState, boolean)ifnewStateis different fromstate. Vanilla blocks perform removal cleanups here.- Overrides:
onStateReplacedin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcga;Lgt;Lcur;Z)Vintermediary method_9536Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vnamed onStateReplacedLnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
updateNeighbors
- Mappings:
Namespace Name Mixin selector official aLcil;a(Lcga;Lgt;)Vintermediary method_9437Lnet/minecraft/class_2231;method_9437(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed updateNeighborsLnet/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:
getWeakRedstonePowerin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcfg;Lgt;Lgy;)Iintermediary method_9524Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Inamed getWeakRedstonePowerLnet/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:
getStrongRedstonePowerin classAbstractBlock- Mappings:
Namespace Name Mixin selector official bLcuq;b(Lcur;Lcfg;Lgt;Lgy;)Iintermediary method_9603Lnet/minecraft/class_4970;method_9603(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Inamed getStrongRedstonePowerLnet/minecraft/block/AbstractBlock;getStrongRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
emitsRedstonePower
- Overrides:
emitsRedstonePowerin classAbstractBlock- Mappings:
Namespace Name Mixin selector official f_Lcuq;f_(Lcur;)Zintermediary method_9506Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Znamed emitsRedstonePowerLnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
-
getPistonBehavior
- Overrides:
getPistonBehaviorin classAbstractBlock- Mappings:
Namespace Name Mixin selector official dLcuq;d(Lcur;)Ldpe;intermediary method_9527Lnet/minecraft/class_4970;method_9527(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3619;named getPistonBehaviorLnet/minecraft/block/AbstractBlock;getPistonBehavior(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/piston/PistonBehavior;
-
getRedstoneOutput
- Mappings:
Namespace Name Mixin selector official bLcil;b(Lcga;Lgt;)Iintermediary method_9434Lnet/minecraft/class_2231;method_9434(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Inamed getRedstoneOutputLnet/minecraft/block/AbstractPressurePlateBlock;getRedstoneOutput(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
getRedstoneOutput
- Mappings:
Namespace Name Mixin selector official gLcil;g(Lcur;)Iintermediary method_9435Lnet/minecraft/class_2231;method_9435(Lnet/minecraft/class_2680;)Inamed getRedstoneOutputLnet/minecraft/block/AbstractPressurePlateBlock;getRedstoneOutput(Lnet/minecraft/block/BlockState;)I
-
setRedstoneOutput
- Mappings:
Namespace Name Mixin selector official aLcil;a(Lcur;I)Lcur;intermediary method_9432Lnet/minecraft/class_2231;method_9432(Lnet/minecraft/class_2680;I)Lnet/minecraft/class_2680;named setRedstoneOutputLnet/minecraft/block/AbstractPressurePlateBlock;setRedstoneOutput(Lnet/minecraft/block/BlockState;I)Lnet/minecraft/block/BlockState;
-