Package net.minecraft.block
Class PumpkinBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.HorizontalFacingBlock
net.minecraft.block.PumpkinBlock
public class PumpkinBlock extends HorizontalFacingBlock
- Mappings:
Namespace Name official aivintermediary net/minecraft/class_277named net/minecraft/block/PumpkinBlock
-
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 BlockPatternfield_1115private BlockPatternfield_1116private static Predicate<BlockState>field_1117private BlockPatternfield_1118private BlockPatternfield_1119Fields inherited from class net.minecraft.block.HorizontalFacingBlock
FACINGFields 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 protectedPumpkinBlock() -
Method Summary
Modifier and Type Method Description protected StateManagerappendProperties()Returns 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 workBlockStategetStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity)Returns a BlockState from an idprotected BlockPatternmethod_956()protected BlockPatternmethod_957()booleanmethod_958(World world, BlockPos blockPos)private voidmethod_959(World world, BlockPos blockPos)protected BlockPatternmethod_960()protected BlockPatternmethod_961()voidonCreation(World world, BlockPos pos, BlockState state)Runs when the block is placed (by a player or enderman).BlockStatestateFromData(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_655, method_696, 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_1117
- Mappings:
Namespace Name Mixin selector official QLaiv;Q:Lcom/google/common/base/Predicate;intermediary field_1117Lnet/minecraft/class_277;field_1117:Lcom/google/common/base/Predicate;named field_1117Lnet/minecraft/block/PumpkinBlock;field_1117:Lcom/google/common/base/Predicate;
-
field_1118
- Mappings:
Namespace Name Mixin selector official aLaiv;a:Lamd;intermediary field_1118Lnet/minecraft/class_277;field_1118:Lnet/minecraft/class_381;named field_1118Lnet/minecraft/block/PumpkinBlock;field_1118:Lnet/minecraft/block/pattern/BlockPattern;
-
field_1119
- Mappings:
Namespace Name Mixin selector official bLaiv;b:Lamd;intermediary field_1119Lnet/minecraft/class_277;field_1119:Lnet/minecraft/class_381;named field_1119Lnet/minecraft/block/PumpkinBlock;field_1119:Lnet/minecraft/block/pattern/BlockPattern;
-
field_1115
- Mappings:
Namespace Name Mixin selector official NLaiv;N:Lamd;intermediary field_1115Lnet/minecraft/class_277;field_1115:Lnet/minecraft/class_381;named field_1115Lnet/minecraft/block/PumpkinBlock;field_1115:Lnet/minecraft/block/pattern/BlockPattern;
-
field_1116
- Mappings:
Namespace Name Mixin selector official PLaiv;P:Lamd;intermediary field_1116Lnet/minecraft/class_277;field_1116:Lnet/minecraft/class_381;named field_1116Lnet/minecraft/block/PumpkinBlock;field_1116: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_703Lnet/minecraft/class_160;method_703(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Vnamed onCreationLnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
method_958
- Mappings:
Namespace Name Mixin selector official eLaiv;e(Ladm;Lcj;)Zintermediary method_958Lnet/minecraft/class_277;method_958(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Znamed method_958Lnet/minecraft/block/PumpkinBlock;method_958(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_959
- Mappings:
Namespace Name Mixin selector official fLaiv;f(Ladm;Lcj;)Vintermediary method_959Lnet/minecraft/class_277;method_959(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Vnamed method_959Lnet/minecraft/block/PumpkinBlock;method_959(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_711Lnet/minecraft/class_160;method_711(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)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_656Lnet/minecraft/class_160;method_656(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;FFFILnet/minecraft/class_1752;)Lnet/minecraft/class_376;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_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;
-
method_960
- Mappings:
Namespace Name Mixin selector official lLaiv;l()Lamd;intermediary method_960Lnet/minecraft/class_277;method_960()Lnet/minecraft/class_381;named method_960Lnet/minecraft/block/PumpkinBlock;method_960()Lnet/minecraft/block/pattern/BlockPattern;
-
method_961
- Mappings:
Namespace Name Mixin selector official nLaiv;n()Lamd;intermediary method_961Lnet/minecraft/class_277;method_961()Lnet/minecraft/class_381;named method_961Lnet/minecraft/block/PumpkinBlock;method_961()Lnet/minecraft/block/pattern/BlockPattern;
-
method_956
- Mappings:
Namespace Name Mixin selector official TLaiv;T()Lamd;intermediary method_956Lnet/minecraft/class_277;method_956()Lnet/minecraft/class_381;named method_956Lnet/minecraft/block/PumpkinBlock;method_956()Lnet/minecraft/block/pattern/BlockPattern;
-
method_957
- Mappings:
Namespace Name Mixin selector official ULaiv;U()Lamd;intermediary method_957Lnet/minecraft/class_277;method_957()Lnet/minecraft/class_381;named method_957Lnet/minecraft/block/PumpkinBlock;method_957()Lnet/minecraft/block/pattern/BlockPattern;
-