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
public class SaplingBlock extends PlantBlock implements Growable
- Mappings:
Namespace Name official ajjintermediary net/minecraft/class_298named net/minecraft/block/SaplingBlock
-
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 static IntPropertySTAGEstatic EnumProperty<PlanksBlock.WoodType>TYPEFields 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 protectedSaplingBlock() -
Method Summary
Modifier and Type Method Description voidappendItemStacks(Item item, ItemGroup group, List<ItemStack> stacks)Appends ItemStacks to an itemgroup.protected StateManagerappendProperties()Returns 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 BlockStateStringgetTranslatedName()Translates and returns the translation keyvoidgrow(World world, Random random, BlockPos pos, BlockState state)private booleanmethod_992(World world, BlockPos blockPos, int int2, int int3, PlanksBlock.WoodType woodType)booleanmethod_993(World world, BlockPos blockPos, PlanksBlock.WoodType woodType)voidmethod_994(World world, BlockPos blockPos, BlockState blockState, Random random)voidmethod_995(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 scheduleBlockStatestateFromData(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_754, method_755, neighborUpdate, renderAsNormalBlockMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBeReplaced, canCollide, canMobSpawnInside, 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, getOffsetType, getOpacity, getPickItem, getPistonInteractionType, getSelectionBox, getStateFromData, getStateFromRawId, getStateManager, getStrength, getStrongRedstonePower, getTickRate, getTranslationKey, getWeakRedstonePower, harvest, hasBlockEntity, hasCollision, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isLeafBlock, isNormalBlock, isReplaceable, isSideInvisible, isTransluscent, method_655, method_696, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDisplayTick, randomDropAsItem, requiresSilkTouch, setBlockItemBounds, setBoundingBox, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setSound, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, usesNeighbourLight
-
Field Details
-
TYPE
- Mappings:
Namespace Name Mixin selector official aLajj;a:Lamm;intermediary field_1182Lnet/minecraft/class_298;field_1182:Lnet/minecraft/class_390;named TYPELnet/minecraft/block/SaplingBlock;TYPE:Lnet/minecraft/state/property/EnumProperty;
-
STAGE
- Mappings:
Namespace Name Mixin selector official bLajj;b:Lamn;intermediary field_1183Lnet/minecraft/class_298;field_1183:Lnet/minecraft/class_391;named STAGELnet/minecraft/block/SaplingBlock;STAGE:Lnet/minecraft/state/property/IntProperty;
-
-
Constructor Details
-
SaplingBlock
protected SaplingBlock()
-
-
Method Details
-
getTranslatedName
Translates and returns the translation key- Overrides:
getTranslatedNamein classBlock- Returns:
- Translated name
- Mappings:
Namespace Name Mixin selector official fLafh;f()Ljava/lang/String;intermediary method_716Lnet/minecraft/class_160;method_716()Ljava/lang/String;named getTranslatedNameLnet/minecraft/block/Block;getTranslatedName()Ljava/lang/String;
-
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 bLafh;b(Ladm;Lcj;Lalz;Ljava/util/Random;)Vintermediary method_690Lnet/minecraft/class_160;method_690(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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_994
- Mappings:
Namespace Name Mixin selector official dLajj;d(Ladm;Lcj;Lalz;Ljava/util/Random;)Vintermediary method_994Lnet/minecraft/class_298;method_994(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)Vnamed method_994Lnet/minecraft/block/SaplingBlock;method_994(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
method_995
- Mappings:
Namespace Name Mixin selector official eLajj;e(Ladm;Lcj;Lalz;Ljava/util/Random;)Vintermediary method_995Lnet/minecraft/class_298;method_995(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)Vnamed method_995Lnet/minecraft/block/SaplingBlock;method_995(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
method_992
private boolean method_992(World world, BlockPos blockPos, int int2, int int3, PlanksBlock.WoodType woodType)- Mappings:
Namespace Name Mixin selector official aLajj;a(Ladm;Lcj;IILaio$a;)Zintermediary method_992Lnet/minecraft/class_298;method_992(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;IILnet/minecraft/class_266$class_267;)Znamed method_992Lnet/minecraft/block/SaplingBlock;method_992(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;IILnet/minecraft/block/PlanksBlock$WoodType;)Z
-
method_993
- Mappings:
Namespace Name Mixin selector official aLajj;a(Ladm;Lcj;Laio$a;)Zintermediary method_993Lnet/minecraft/class_298;method_993(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_266$class_267;)Znamed method_993Lnet/minecraft/block/SaplingBlock;method_993(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/PlanksBlock$WoodType;)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 aLafh;a(Lalz;)Iintermediary method_672Lnet/minecraft/class_160;method_672(Lnet/minecraft/class_376;)Inamed getMetaLnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)I
-
appendItemStacks
@Environment(CLIENT) public void appendItemStacks(Item item, ItemGroup group, List<ItemStack> stacks)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 aLafh;a(Lzw;Lyz;Ljava/util/List;)Vintermediary method_682Lnet/minecraft/class_160;method_682(Lnet/minecraft/class_2054;Lnet/minecraft/class_2029;Ljava/util/List;)Vnamed appendItemStacksLnet/minecraft/block/Block;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/ItemGroup;Ljava/util/List;)V
-
canGrow
- Specified by:
canGrowin interfaceGrowable- Mappings:
Namespace Name Mixin selector official aLafj;a(Ladm;Lcj;Lalz;Z)Zintermediary method_750Lnet/minecraft/class_164;method_750(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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 aLafj;a(Ladm;Ljava/util/Random;Lcj;Lalz;)Zintermediary method_751Lnet/minecraft/class_164;method_751(Lnet/minecraft/class_99;Ljava/util/Random;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)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 bLafj;b(Ladm;Ljava/util/Random;Lcj;Lalz;)Vintermediary method_752Lnet/minecraft/class_164;method_752(Lnet/minecraft/class_99;Ljava/util/Random;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)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 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;
-