Package net.minecraft.block
Class PumpkinBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.HorizontalFacingBlock
net.minecraft.block.PumpkinBlock
- Mappings:
Namespace Name official azkintermediary net/minecraft/class_172named net/minecraft/block/PumpkinBlock
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BlockPatternprivate BlockPatternprivate BlockPatternprivate BlockPatternFields inherited from class net.minecraft.block.HorizontalFacingBlock
FACINGFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, field_483, field_484, field_486, field_487, field_7261, field_7262, field_7263, field_7264, field_7265, field_7266, field_7267, field_7268, field_9285, fullBlock, hardness, lightLevel, material, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, soundGroup, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StateManagerReturns a new state manager with a property array.booleancanBePlacedAtPos(World world, BlockPos pos) Returns whether the current block can be placed at a certainBlockPosintgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workgetStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an idprotected BlockPatternprotected BlockPatternbooleanmethod_8862(World world, BlockPos blockPos) private voidmethod_8863(World world, BlockPos blockPos) protected BlockPatternprotected BlockPatternvoidonCreation(World world, BlockPos pos, BlockState state) Runs when the block is placed (by a player or enderman).stateFromData(int data) Returns a blockstate of the current block from it's idMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendItemStacks, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBeReplaced, canCollide, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockColor, getBlockFromItem, getBlockState, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getCollisionBox, getColor, getColor, getComparatorOutput, getDefaultState, getDropCount, getDropItem, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaterialColor, getMaxX, getMaxY, getMaxZ, getMeta, getMeta, getMinX, getMinY, getMinZ, getOpacity, getPickItem, getPistonInteractionType, getRenderLayerType, getSelectionBox, getStateFromRawId, getStateManager, getStrength, getStrongRedstonePower, getTickRate, getTranslatedName, getTranslationKey, getWeakRedstonePower, harvest, hasBlockEntity, hasCollision, hasCollision, hasComparatorOutput, hasStats, hasTransperancy, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isLeafBlock, isNormalBlock, isReplaceable, isSideInvisible, isTransluscent, method_414, method_8634, method_8666, neighborUpdate, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDisplayTick, randomDropAsItem, renderAsNormalBlock, requiresSilkTouch, scheduledTick, setBlockItemBounds, setBlockSoundGroup, setBoundingBox, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, usesNeighbourLight
-
Field Details
-
field_9603
- Mappings:
Namespace Name Mixin selector official aLazk;a:Lbek;intermediary field_9603Lnet/minecraft/class_172;field_9603:Lnet/minecraft/class_2236;named field_9603Lnet/minecraft/block/PumpkinBlock;field_9603:Lnet/minecraft/block/pattern/BlockPattern;
-
field_9604
- Mappings:
Namespace Name Mixin selector official bLazk;b:Lbek;intermediary field_9604Lnet/minecraft/class_172;field_9604:Lnet/minecraft/class_2236;named field_9604Lnet/minecraft/block/PumpkinBlock;field_9604:Lnet/minecraft/block/pattern/BlockPattern;
-
field_9600
- Mappings:
Namespace Name Mixin selector official MLazk;M:Lbek;intermediary field_9600Lnet/minecraft/class_172;field_9600:Lnet/minecraft/class_2236;named field_9600Lnet/minecraft/block/PumpkinBlock;field_9600:Lnet/minecraft/block/pattern/BlockPattern;
-
field_9601
- Mappings:
Namespace Name Mixin selector official OLazk;O:Lbek;intermediary field_9601Lnet/minecraft/class_172;field_9601:Lnet/minecraft/class_2236;named field_9601Lnet/minecraft/block/PumpkinBlock;field_9601:Lnet/minecraft/block/pattern/BlockPattern;
-
-
Constructor Details
-
PumpkinBlock
protected PumpkinBlock()
-
-
Method Details
-
onCreation
Runs when the block is placed (by a player or enderman).- Overrides:
onCreationin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official cLatr;c(Laqu;Ldt;Lbec;)Vintermediary method_8668Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onCreationLnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
method_8862
- Mappings:
Namespace Name Mixin selector official dLazk;d(Laqu;Ldt;)Zintermediary method_8862Lnet/minecraft/class_172;method_8862(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed method_8862Lnet/minecraft/block/PumpkinBlock;method_8862(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_8863
- Mappings:
Namespace Name Mixin selector official eLazk;e(Laqu;Ldt;)Vintermediary method_8863Lnet/minecraft/class_172;method_8863(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed method_8863Lnet/minecraft/block/PumpkinBlock;method_8863(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
canBePlacedAtPos
Returns whether the current block can be placed at a certainBlockPos- Overrides:
canBePlacedAtPosin classBlock- Returns:
- Whether the current block can be placed at a BlockPos
- Mappings:
Namespace Name Mixin selector official cLatr;c(Laqu;Ldt;)Zintermediary method_8673Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed canBePlacedAtPosLnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
getStateFromData
public BlockState getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an id- Overrides:
getStateFromDatain classBlock- Parameters:
world- The world that the block is placed inpos- The block's positiondir- The block's direction- Mappings:
Namespace Name Mixin selector official aLatr;a(Laqu;Ldt;Lej;FFFILxm;)Lbec;intermediary method_8645Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;named getStateFromDataLnet/minecraft/block/Block;getStateFromData(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFFILnet/minecraft/entity/LivingEntity;)Lnet/minecraft/block/BlockState;
-
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 aLatr;a(I)Lbec;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 cLatr;c(Lbec;)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 eLatr;e()Lbed;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-
method_8864
- Mappings:
Namespace Name Mixin selector official jLazk;j()Lbek;intermediary method_8864Lnet/minecraft/class_172;method_8864()Lnet/minecraft/class_2236;named method_8864Lnet/minecraft/block/PumpkinBlock;method_8864()Lnet/minecraft/block/pattern/BlockPattern;
-
method_8865
- Mappings:
Namespace Name Mixin selector official lLazk;l()Lbek;intermediary method_8865Lnet/minecraft/class_172;method_8865()Lnet/minecraft/class_2236;named method_8865Lnet/minecraft/block/PumpkinBlock;method_8865()Lnet/minecraft/block/pattern/BlockPattern;
-
method_8860
- Mappings:
Namespace Name Mixin selector official SLazk;S()Lbek;intermediary method_8860Lnet/minecraft/class_172;method_8860()Lnet/minecraft/class_2236;named method_8860Lnet/minecraft/block/PumpkinBlock;method_8860()Lnet/minecraft/block/pattern/BlockPattern;
-
method_8861
- Mappings:
Namespace Name Mixin selector official TLazk;T()Lbek;intermediary method_8861Lnet/minecraft/class_172;method_8861()Lnet/minecraft/class_2236;named method_8861Lnet/minecraft/block/PumpkinBlock;method_8861()Lnet/minecraft/block/pattern/BlockPattern;
-