Package net.minecraft.block
Class WeightedPressurePlateBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractPressurePlateBlock
net.minecraft.block.WeightedPressurePlateBlock
public class WeightedPressurePlateBlock extends AbstractPressurePlateBlock
- Mappings:
Namespace Name official akpintermediary net/minecraft/class_339named net/minecraft/block/WeightedPressurePlateBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType, Block.Sound -
Field Summary
Fields Modifier and Type Field Description private intfield_1323static IntPropertyPOWERFields 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 protectedWeightedPressurePlateBlock(Material material, int int2)protectedWeightedPressurePlateBlock(Material material, int int2, MaterialColor materialColor) -
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)intgetTickRate(World world)Returns the block's tick rate.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, 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
-
POWER
- Mappings:
Namespace Name Mixin selector official aLakp;a:Lamn;intermediary field_1322Lnet/minecraft/class_339;field_1322:Lnet/minecraft/class_391;named POWERLnet/minecraft/block/WeightedPressurePlateBlock;POWER:Lnet/minecraft/state/property/IntProperty;
-
field_1323
private final int field_1323- Mappings:
Namespace Name Mixin selector official bLakp;b:Iintermediary field_1323Lnet/minecraft/class_339;field_1323:Inamed field_1323Lnet/minecraft/block/WeightedPressurePlateBlock;field_1323:I
-
-
Constructor Details
-
WeightedPressurePlateBlock
-
WeightedPressurePlateBlock
-
-
Method Details
-
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
-
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;
-
getTickRate
Returns the block's tick rate. Default is 10.- Overrides:
getTickRatein classAbstractPressurePlateBlock- Parameters:
world- The world that the block is placed in- Returns:
- Tick rate
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;)Iintermediary method_642Lnet/minecraft/class_160;method_642(Lnet/minecraft/class_99;)Inamed getTickRateLnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)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;
-