Package net.minecraft.block
Class PressurePlateBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractPressurePlateBlock
net.minecraft.block.PressurePlateBlock
public class PressurePlateBlock extends AbstractPressurePlateBlock
- Mappings:
Namespace Name official aitintermediary net/minecraft/class_273named net/minecraft/block/PressurePlateBlock
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPressurePlateBlock.ActivationRuleNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType, Block.Sound -
Field Summary
Fields Modifier and Type Field Description private PressurePlateBlock.ActivationRulefield_1098static BooleanPropertyPOWEREDFields inherited from class net.minecraft.block.Block
ANVIL, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, CLOTH, fullBlock, GLASS, GRASS, GRAVEL, LADDER, lightLevel, material, materialColor, opacity, ORE, particleGravity, RAIL, randomTicks, REGISTRY, resistance, SAND, SLIME, slipperiness, SNOW, sound, stateManager, stats, STONE, strength, transluscent, useNeighbourLight, WOOD -
Constructor Summary
Constructors Modifier Constructor Description protectedPressurePlateBlock(Material material, PressurePlateBlock.ActivationRule activationRule) -
Method Summary
Modifier and Type Method Description protected StateManagerappendProperties()Returns a new state manager with a property array.intgetData(BlockState state)Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workprotected intgetMinRedstoneOutput(BlockState state)protected intgetRedstoneOutput(World world, BlockPos pos)protected BlockStatesetRedstoneOutput(BlockState state, int value)BlockStatestateFromData(int data)Returns a blockstate of the current block from it's idMethods inherited from class net.minecraft.block.AbstractPressurePlateBlock
blocksMovement, canBePlacedAtPos, canMobSpawnInside, emitsRedstonePower, getCollisionBox, getPistonInteractionType, getStrongRedstonePower, getTickRate, getWeakRedstonePower, hasTransperancy, method_582, method_584, neighborUpdate, onBreaking, onEntityCollision, onUpdateTick, renderAsNormalBlock, scheduledTick, setBlockItemBounds, setBoundingBox, setBoundingBox, updateNeighboursMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendItemStacks, areBlocksEqual, calcBlockBreakingData, canBePlacedAdjacent, canBeReplaced, canCollide, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockColor, getBlockFromItem, getBlockState, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getColor, getColor, getComparatorOutput, getDefaultState, getDropCount, getDropItem, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaterialColor, getMaxX, getMaxY, getMaxZ, getMeta, getMeta, getMinX, getMinY, getMinZ, getOffsetType, getOpacity, getPickItem, getRenderLayerType, getSelectionBox, getStateFromData, getStateFromRawId, getStateManager, getStrength, getTranslatedName, getTranslationKey, harvest, hasBlockEntity, hasCollision, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isLeafBlock, isNormalBlock, isReplaceable, isSideInvisible, isTransluscent, method_655, method_696, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onCreation, onDestroyedByExplosion, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUse, rainTick, randomDisplayTick, randomDropAsItem, requiresSilkTouch, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setSound, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, usesNeighbourLight
-
Field Details
-
POWERED
- Mappings:
Namespace Name Mixin selector official aLait;a:Lamk;intermediary field_1097Lnet/minecraft/class_273;field_1097:Lnet/minecraft/class_388;named POWEREDLnet/minecraft/block/PressurePlateBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
-
field_1098
- Mappings:
Namespace Name Mixin selector official bLait;b:Lait$a;intermediary field_1098Lnet/minecraft/class_273;field_1098:Lnet/minecraft/class_273$class_274;named field_1098Lnet/minecraft/block/PressurePlateBlock;field_1098:Lnet/minecraft/block/PressurePlateBlock$ActivationRule;
-
-
Constructor Details
-
PressurePlateBlock
-
-
Method Details
-
getMinRedstoneOutput
- Specified by:
getMinRedstoneOutputin classAbstractPressurePlateBlock- Mappings:
Namespace Name Mixin selector official eLafd;e(Lalz;)Iintermediary method_587Lnet/minecraft/class_153;method_587(Lnet/minecraft/class_376;)Inamed getMinRedstoneOutputLnet/minecraft/block/AbstractPressurePlateBlock;getMinRedstoneOutput(Lnet/minecraft/block/BlockState;)I
-
setRedstoneOutput
- Specified by:
setRedstoneOutputin classAbstractPressurePlateBlock- Mappings:
Namespace Name Mixin selector official aLafd;a(Lalz;I)Lalz;intermediary method_583Lnet/minecraft/class_153;method_583(Lnet/minecraft/class_376;I)Lnet/minecraft/class_376;named setRedstoneOutputLnet/minecraft/block/AbstractPressurePlateBlock;setRedstoneOutput(Lnet/minecraft/block/BlockState;I)Lnet/minecraft/block/BlockState;
-
getRedstoneOutput
- Specified by:
getRedstoneOutputin classAbstractPressurePlateBlock- Mappings:
Namespace Name Mixin selector official fLafd;f(Ladm;Lcj;)Iintermediary method_588Lnet/minecraft/class_153;method_588(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Inamed getRedstoneOutputLnet/minecraft/block/AbstractPressurePlateBlock;getRedstoneOutput(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
stateFromData
Returns a blockstate of the current block from it's id- Overrides:
stateFromDatain classBlock- Parameters:
data- The Blockstate's associated data value- Returns:
- The Default state
- Mappings:
Namespace Name Mixin selector official aLafh;a(I)Lalz;intermediary method_637Lnet/minecraft/class_160;method_637(I)Lnet/minecraft/class_376;named stateFromDataLnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
-
getData
Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not work- Overrides:
getDatain classBlock- Parameters:
state- The Blockstate- Returns:
- Zero
- Mappings:
Namespace Name Mixin selector official cLafh;c(Lalz;)Iintermediary method_706Lnet/minecraft/class_160;method_706(Lnet/minecraft/class_376;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official eLafh;e()Lama;intermediary method_714Lnet/minecraft/class_160;method_714()Lnet/minecraft/class_378;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-