Package net.minecraft.block
Class Leaves1Block
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.LeavesBlock
net.minecraft.block.Leaves1Block
- Mappings:
Namespace Name official anfintermediary net/minecraft/class_1760named net/minecraft/block/Leaves1Block
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsFields inherited from class net.minecraft.block.LeavesBlock
CHECK_DECAY, DECAYABLE, fancyGraphicsStatus, field_287Fields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendItemStacks(Item item, ItemGroup group, List<ItemStack> 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.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 BlockStategetWoodType(int state) voidmethod_8651(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack stack) protected voidmethod_8804(World world, BlockPos blockPos, BlockState blockState, 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
getDropCount, getDropItem, getRenderLayerType, isFullBoundsCubeForCulling, isLeafBlock, method_325, method_8654, method_8669, onBreaking, randomDropAsItem, scheduledTickMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, canMobSpawnInside, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getCollisionBox, getCollisionBox, getComparatorOutput, getDefaultState, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getOffsetType, getOpacity, getPistonBehavior, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTickRate, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isTransluscent, method_11557, method_11559, method_11562, method_11563, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_414, method_421, method_435, method_8638, method_8640, method_8641, method_8653, method_8664, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, requiresSilkTouch, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, useNeighbourLight, withMirror, withRotation
-
Field Details
-
VARIANT
- Mappings:
Namespace Name Mixin selector official eLanf;e:Larq;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
-
method_8804
- Overrides:
method_8804in classLeavesBlock- Mappings:
Namespace Name Mixin selector official aLaml;a(Laht;Lcl;Lard;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 iLaml;i(Lard;)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
@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 aLajt;a(Lado;Lacq;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 uLajt;u(Lard;)Ladq;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 aLajt;a(I)Lard;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 eLajt;e(Lard;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
getWoodType
- Specified by:
getWoodTypein classLeavesBlock- Mappings:
Namespace Name Mixin selector official eLaml;e(I)Lanj$a;intermediary method_8805Lnet/minecraft/class_150;method_8805(I)Lnet/minecraft/class_213$class_2202;named getWoodTypeLnet/minecraft/block/LeavesBlock;getWoodType(I)Lnet/minecraft/block/PlanksBlock$WoodType;
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official bLajt;b()Lare;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 dLajt;d(Lard;)Iintermediary method_8655Lnet/minecraft/class_197;method_8655(Lnet/minecraft/class_2232;)Inamed getMetaLnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)I
-
method_8651
public void method_8651(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, @Nullable ItemStack stack) - Overrides:
method_8651in classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lzj;Lcl;Lard;Lapv;Ladq;)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;Lnet/minecraft/class_1071;)Vnamed method_8651Lnet/minecraft/block/Block;method_8651(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/item/ItemStack;)V
-