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 aivintermediary net/minecraft/class_172named net/minecraft/block/PumpkinBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType, Block.Sound -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BlockPatternprivate BlockPatternprivate static final Predicate<BlockState>private BlockPatternprivate BlockPatternFields inherited from class net.minecraft.block.HorizontalFacingBlock
FACINGFields inherited from class net.minecraft.block.Block
ANVIL, blastResistance, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, CLOTH, fullBlock, GLASS, GRASS, GRAVEL, hardness, LADDER, lightLevel, material, materialColor, opacity, ORE, particleGravity, RAIL, randomTicks, REGISTRY, SAND, SLIME, slipperiness, SNOW, sound, stateManager, stats, STONE, transluscent, useNeighbourLight, WOOD -
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, canMobSpawnInside, 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, getOffsetType, 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_8666, neighborUpdate, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDisplayTick, randomDropAsItem, renderAsNormalBlock, requiresSilkTouch, scheduledTick, setBlockItemBounds, setBoundingBox, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setSound, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, usesNeighbourLight
-
Field Details
-
field_9602
- Mappings:
Namespace Name Mixin selector official QLaiv;Q:Lcom/google/common/base/Predicate;intermediary field_9602Lnet/minecraft/class_172;field_9602:Lcom/google/common/base/Predicate;named field_9602Lnet/minecraft/block/PumpkinBlock;field_9602:Lcom/google/common/base/Predicate;
-
field_9603
- Mappings:
Namespace Name Mixin selector official aLaiv;a:Lamd;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 bLaiv;b:Lamd;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 NLaiv;N:Lamd;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 PLaiv;P:Lamd;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 cLafh;c(Ladm;Lcj;Lalz;)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 eLaiv;e(Ladm;Lcj;)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 fLaiv;f(Ladm;Lcj;)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 dLafh;d(Ladm;Lcj;)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 aLafh;a(Ladm;Lcj;Lcq;FFFILpr;)Lalz;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 aLafh;a(I)Lalz;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 cLafh;c(Lalz;)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 eLafh;e()Lama;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 lLaiv;l()Lamd;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 nLaiv;n()Lamd;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 TLaiv;T()Lamd;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 ULaiv;U()Lamd;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;
-