Package net.minecraft.block
Class WeightedPressurePlateBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractPressurePlateBlock
net.minecraft.block.WeightedPressurePlateBlock
- Mappings:
Namespace Name official aruintermediary net/minecraft/class_1457named net/minecraft/block/WeightedPressurePlateBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsFields inherited from class net.minecraft.block.AbstractPressurePlateBlock
field_12563, field_12564, field_12565Fields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWeightedPressurePlateBlock(Material material, int int2) protectedWeightedPressurePlateBlock(Material material, int int2, MaterialColor materialColor) -
Method Summary
Modifier and TypeMethodDescriptionprotected StateManagerReturns 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 voidmethod_11549(World world, BlockPos blockPos) protected voidmethod_11550(World world, BlockPos blockPos) protected BlockStatesetRedstoneOutput(BlockState state, int value) stateFromData(int data) Returns a blockstate of the current block from it's idMethods inherited from class net.minecraft.block.AbstractPressurePlateBlock
blocksMovement, canBePlacedAtPos, canMobSpawnInside, getCollisionBox, getPistonBehavior, isFullBoundsCubeForCulling, method_11548, method_11562, method_11566, method_8640, method_8653, method_8664, onBreak, onBreaking, onEntityCollision, onUpdateTick, scheduledTick, updateNeighboursMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, areBlocksEqual, canBePlacedAdjacent, canCollide, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getComparatorOutput, getDefaultState, getDropCount, getDropItem, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getRenderLayerType, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11568, method_11575, method_11576, method_11577, method_13315, method_13700, method_13701, method_13702, method_13703, method_13704, method_414, method_435, method_8638, method_8640, method_8651, method_8654, method_8669, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onCreation, onDestroyedByExplosion, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, rainTick, randomDropAsItem, requiresSilkTouch, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, use, useNeighbourLight, withMirror, withRotation
-
Field Details
-
POWER
- Mappings:
Namespace Name Mixin selector official dLaru;d:Laua;intermediary field_9793Lnet/minecraft/class_1457;field_9793:Lnet/minecraft/class_2246;named POWERLnet/minecraft/block/WeightedPressurePlateBlock;POWER:Lnet/minecraft/state/property/IntProperty;
-
field_5640
private final int field_5640- Mappings:
Namespace Name Mixin selector official eLaru;e:Iintermediary field_5640Lnet/minecraft/class_1457;field_5640:Inamed field_5640Lnet/minecraft/block/WeightedPressurePlateBlock;field_5640:I
-
-
Constructor Details
-
WeightedPressurePlateBlock
-
WeightedPressurePlateBlock
-
-
Method Details
-
getRedstoneOutput
- Specified by:
getRedstoneOutputin classAbstractPressurePlateBlock- Mappings:
Namespace Name Mixin selector official eLalp;e(Lajs;Lco;)Iintermediary method_8610Lnet/minecraft/class_1445;method_8610(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Inamed getRedstoneOutputLnet/minecraft/block/AbstractPressurePlateBlock;getRedstoneOutput(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
method_11549
- Specified by:
method_11549in classAbstractPressurePlateBlock- Mappings:
Namespace Name Mixin selector official bLalp;b(Lajs;Lco;)Vintermediary method_11549Lnet/minecraft/class_1445;method_11549(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed method_11549Lnet/minecraft/block/AbstractPressurePlateBlock;method_11549(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
method_11550
- Specified by:
method_11550in classAbstractPressurePlateBlock- Mappings:
Namespace Name Mixin selector official cLalp;c(Lajs;Lco;)Vintermediary method_11550Lnet/minecraft/class_1445;method_11550(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed method_11550Lnet/minecraft/block/AbstractPressurePlateBlock;method_11550(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
getMinRedstoneOutput
- Specified by:
getMinRedstoneOutputin classAbstractPressurePlateBlock- Mappings:
Namespace Name Mixin selector official iLalp;i(Latl;)Iintermediary method_8609Lnet/minecraft/class_1445;method_8609(Lnet/minecraft/class_2232;)Inamed getMinRedstoneOutputLnet/minecraft/block/AbstractPressurePlateBlock;getMinRedstoneOutput(Lnet/minecraft/block/BlockState;)I
-
setRedstoneOutput
- Specified by:
setRedstoneOutputin classAbstractPressurePlateBlock- Mappings:
Namespace Name Mixin selector official aLalp;a(Latl;I)Latl;intermediary method_8605Lnet/minecraft/class_1445;method_8605(Lnet/minecraft/class_2232;I)Lnet/minecraft/class_2232;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 aLalu;a(Lajs;)Iintermediary method_4789Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)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 aLalu;a(I)Latl;intermediary method_8635Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;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 eLalu;e(Latl;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)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 bLalu;b()Latm;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-