Package net.minecraft.block
Class Leaves1Block
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.BaseLeavesBlock
net.minecraft.block.LeavesBlock
net.minecraft.block.Leaves1Block
- Mappings:
Namespace Name official aypintermediary net/minecraft/class_1760named net/minecraft/block/Leaves1Block
-
Field Summary
FieldsFields inherited from class net.minecraft.block.LeavesBlock
CHECK_DECAY, DECAYABLE, fancyGraphicsStatus, field_287, field_7461Fields inherited from class net.minecraft.block.BaseLeavesBlock
fancyGraphicsFields 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.protected ItemStackcreateStackFromBlock(BlockState state) Creates and returns and ItemStack from a block.intgetBlockColor(BlockView view, BlockPos pos, int id) Returns the current block's colorintgetColor(BlockState state) 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 BlockStatevoidharvest(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity be) Runs every time a player begins to break the block.protected voidmethod_8804(World world, BlockPos blockPos, BlockState blockState, int int2) method_8805(int int2) protected intmethod_8806(BlockState blockState) stateFromData(int data) Returns a blockstate of the current block from it's idMethods inherited from class net.minecraft.block.LeavesBlock
getColor, getDropCount, getDropItem, getRenderLayerType, hasTransperancy, isLeafBlock, method_325, onBreaking, randomDisplayTick, randomDropAsItem, scheduledTickMethods inherited from class net.minecraft.block.BaseLeavesBlock
isSideInvisibleMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockFromItem, getBlockState, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getCollisionBox, getComparatorOutput, getDefaultState, 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, hasBlockEntity, hasCollision, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isNormalBlock, isReplaceable, isTransluscent, method_414, method_8634, method_8666, neighborUpdate, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, renderAsNormalBlock, requiresSilkTouch, setBlockItemBounds, setBlockSoundGroup, setBoundingBox, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, usesNeighbourLight
-
Field Details
-
VARIANT
- Mappings:
Namespace Name Mixin selector official PLayp;P:Lbev;intermediary field_9560Lnet/minecraft/class_1760;field_9560:Lnet/minecraft/class_2245;named VARIANTLnet/minecraft/block/Leaves1Block;VARIANT:Lnet/minecraft/state/property/EnumProperty;
-
-
Constructor Details
-
Leaves1Block
public Leaves1Block()
-
-
Method Details
-
getColor
- Overrides:
getColorin classLeavesBlock- Mappings:
Namespace Name Mixin selector official hLatr;h(Lbec;)Iintermediary method_8681Lnet/minecraft/class_197;method_8681(Lnet/minecraft/class_2232;)Inamed getColorLnet/minecraft/block/Block;getColor(Lnet/minecraft/block/BlockState;)I
-
getBlockColor
Returns the current block's color- Overrides:
getBlockColorin classLeavesBlock- Parameters:
view- BlockView instancepos- The block's positionid- Id- Returns:
- Block color
- Mappings:
Namespace Name Mixin selector official aLatr;a(Lard;Ldt;I)Iintermediary method_438Lnet/minecraft/class_197;method_438(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;I)Inamed getBlockColorLnet/minecraft/block/Block;getBlockColor(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;I)I
-
method_8804
- Overrides:
method_8804in classLeavesBlock- Mappings:
Namespace Name Mixin selector official aLaxg;a(Laqu;Ldt;Lbec;I)Vintermediary method_8804Lnet/minecraft/class_150;method_8804(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;I)Vnamed method_8804Lnet/minecraft/block/LeavesBlock;method_8804(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)V
-
method_8806
- Overrides:
method_8806in classLeavesBlock- Mappings:
Namespace Name Mixin selector official dLaxg;d(Lbec;)Iintermediary method_8806Lnet/minecraft/class_150;method_8806(Lnet/minecraft/class_2232;)Inamed method_8806Lnet/minecraft/block/LeavesBlock;method_8806(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
-
createStackFromBlock
Creates and returns and ItemStack from a block.- Overrides:
createStackFromBlockin classBlock- Parameters:
state- The block's BlockState- Returns:
- An ItemStack instance containing the block
- Mappings:
Namespace Name Mixin selector official iLatr;i(Lbec;)Lamj;intermediary method_8682Lnet/minecraft/class_197;method_8682(Lnet/minecraft/class_2232;)Lnet/minecraft/class_1071;named createStackFromBlockLnet/minecraft/block/Block;createStackFromBlock(Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
-
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
-
method_8805
- Specified by:
method_8805in classLeavesBlock- Mappings:
Namespace Name Mixin selector official bLaxg;b(I)Layx;intermediary method_8805Lnet/minecraft/class_150;method_8805(I)Lnet/minecraft/class_2202;named method_8805Lnet/minecraft/block/LeavesBlock;method_8805(I)Lnet/minecraft/class_2202;
-
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;
-
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
-
harvest
public void harvest(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity be) Runs every time a player begins to break the block.- Overrides:
harvestin classBlock- Parameters:
world- The world that the block is placed inplayer- The player who is mining the blockpos- The block's positionstate- The block's BlockStatebe- The block entity in the block- Mappings:
Namespace Name Mixin selector official aLatr;a(Laqu;Lahd;Ldt;Lbec;Lbcm;)Vintermediary method_8651Lnet/minecraft/class_197;method_8651(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_226;)Vnamed harvestLnet/minecraft/block/Block;harvest(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;)V
-