Package net.minecraft.block
Class SaplingBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.PlantBlock
net.minecraft.block.SaplingBlock
- All Implemented Interfaces:
Growable
- Mappings:
Namespace Name official bafintermediary net/minecraft/class_183named net/minecraft/block/SaplingBlock
-
Field Summary
FieldsFields 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 TypeMethodDescriptionvoidappendItemStacks(Item item, ItemGroup group, List stacks) Appends ItemStacks to an itemgroup.protected StateManagerReturns a new state manager with a property array.booleancanBeFertilized(World world, Random random, BlockPos pos, BlockState state) booleancanGrow(World world, BlockPos pos, BlockState state, boolean bl) intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workintgetMeta(BlockState state) Returns the metadata value for a certain BlockStatevoidgrow(World world, Random random, BlockPos pos, BlockState state) booleanmethod_8896(World world, BlockPos blockPos, class_2202 class_2202) voidmethod_8897(World world, BlockPos blockPos, BlockState blockState, Random random) voidmethod_8898(World world, BlockPos blockPos, BlockState blockState, Random random) voidscheduledTick(World world, BlockPos pos, BlockState state, Random rand) Runs when the block is updated as per a schedulestateFromData(int data) Returns a blockstate of the current block from it's idMethods inherited from class net.minecraft.block.PlantBlock
canBePlacedAtPos, canPlantOnTop, getCollisionBox, getRenderLayerType, hasTransperancy, method_8690, method_8691, neighborUpdate, renderAsNormalBlockMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBeReplaced, canCollide, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, 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, getMinX, getMinY, getMinZ, getOpacity, getPickItem, getPistonInteractionType, getSelectionBox, getStateFromData, getStateFromRawId, getStateManager, getStrength, getStrongRedstonePower, getTickRate, getTranslatedName, getTranslationKey, getWeakRedstonePower, harvest, hasBlockEntity, hasCollision, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isLeafBlock, isNormalBlock, isReplaceable, isSideInvisible, isTransluscent, method_414, method_8634, method_8666, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDisplayTick, randomDropAsItem, requiresSilkTouch, setBlockItemBounds, setBlockSoundGroup, setBoundingBox, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, usesNeighbourLight
-
Field Details
-
TYPE
- Mappings:
Namespace Name Mixin selector official aLbaf;a:Lbev;intermediary field_9660Lnet/minecraft/class_183;field_9660:Lnet/minecraft/class_2245;named TYPELnet/minecraft/block/SaplingBlock;TYPE:Lnet/minecraft/state/property/EnumProperty;
-
STAGE
- Mappings:
Namespace Name Mixin selector official bLbaf;b:Lbew;intermediary field_9661Lnet/minecraft/class_183;field_9661:Lnet/minecraft/class_2246;named STAGELnet/minecraft/block/SaplingBlock;STAGE:Lnet/minecraft/state/property/IntProperty;
-
-
Constructor Details
-
SaplingBlock
protected SaplingBlock()
-
-
Method Details
-
scheduledTick
Runs when the block is updated as per a schedule- Overrides:
scheduledTickin classPlantBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStaterand- Random object- Mappings:
Namespace Name Mixin selector official bLatr;b(Laqu;Ldt;Lbec;Ljava/util/Random;)Vintermediary method_8661Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
method_8897
- Mappings:
Namespace Name Mixin selector official dLbaf;d(Laqu;Ldt;Lbec;Ljava/util/Random;)Vintermediary method_8897Lnet/minecraft/class_183;method_8897(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)Vnamed method_8897Lnet/minecraft/block/SaplingBlock;method_8897(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
method_8898
- Mappings:
Namespace Name Mixin selector official eLbaf;e(Laqu;Ldt;Lbec;Ljava/util/Random;)Vintermediary method_8898Lnet/minecraft/class_183;method_8898(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)Vnamed method_8898Lnet/minecraft/block/SaplingBlock;method_8898(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
method_8896
- Mappings:
Namespace Name Mixin selector official aLbaf;a(Laqu;Ldt;Layx;)Zintermediary method_8896Lnet/minecraft/class_183;method_8896(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2202;)Znamed method_8896Lnet/minecraft/block/SaplingBlock;method_8896(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/class_2202;)Z
-
getMeta
Returns the metadata value for a certain BlockState- Overrides:
getMetain classBlock- Parameters:
state- The BlockState- Returns:
- Metadata value
- Mappings:
Namespace Name Mixin selector official aLatr;a(Lbec;)Iintermediary method_8655Lnet/minecraft/class_197;method_8655(Lnet/minecraft/class_2232;)Inamed getMetaLnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)I
-
appendItemStacks
Appends ItemStacks to an itemgroup. Only called on the client.- Overrides:
appendItemStacksin classBlock- Parameters:
item- The Item that must be addedgroup- The ItemGroup that the item must be added tostacks- The list of currently added ItemStacks to the ItemGroup- Mappings:
Namespace Name Mixin selector official aLatr;a(Lalq;Lakf;Ljava/util/List;)Vintermediary method_399Lnet/minecraft/class_197;method_399(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)Vnamed appendItemStacksLnet/minecraft/block/Block;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)V
-
canGrow
- Specified by:
canGrowin interfaceGrowable- Mappings:
Namespace Name Mixin selector official aLatz;a(Laqu;Ldt;Lbec;Z)Zintermediary method_6460Lnet/minecraft/class_1753;method_6460(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Z)Znamed canGrowLnet/minecraft/block/Growable;canGrow(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Z
-
canBeFertilized
- Specified by:
canBeFertilizedin interfaceGrowable- Mappings:
Namespace Name Mixin selector official aLatz;a(Laqu;Ljava/util/Random;Ldt;Lbec;)Zintermediary method_6461Lnet/minecraft/class_1753;method_6461(Lnet/minecraft/class_1150;Ljava/util/Random;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Znamed canBeFertilizedLnet/minecraft/block/Growable;canBeFertilized(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
grow
- Specified by:
growin interfaceGrowable- Mappings:
Namespace Name Mixin selector official bLatz;b(Laqu;Ljava/util/Random;Ldt;Lbec;)Vintermediary method_6462Lnet/minecraft/class_1753;method_6462(Lnet/minecraft/class_1150;Ljava/util/Random;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed growLnet/minecraft/block/Growable;grow(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
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;
-