Package net.minecraft.block
Class DoublePlantBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.PlantBlock
net.minecraft.block.DoublePlantBlock
- All Implemented Interfaces:
Growable
- Mappings:
Namespace Name official amyintermediary net/minecraft/class_1755named net/minecraft/block/DoublePlantBlock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EnumProperty<Direction>static final EnumProperty<DoublePlantBlock.HalfType>static final EnumProperty<DoublePlantBlock.DoublePlantType>Fields inherited from class net.minecraft.block.PlantBlock
field_12594Fields 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 TypeMethodDescriptionprotected StateManagerReturns a new state manager with a property array.booleancanBeFertilized(World world, Random random, BlockPos pos, BlockState state) booleancanBePlacedAtPos(World world, BlockPos pos) Returns whether the current block can be placed at a certainBlockPosbooleancanGrow(World world, BlockPos pos, BlockState state, boolean bl) getBlockState(BlockState state, BlockView view, BlockPos pos) Returns the current block's blockstate at a certain positiongetCollisionBox(BlockState state, BlockView view, BlockPos pos) intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workgetDropItem(BlockState blockState, Random random, int state) Returns the item that must be dropped when the block is brokenintgetMeta(BlockState state) Returns the metadata value for a certain BlockStateReturns the block's offset type.voidgrow(World world, Random random, BlockPos pos, BlockState state) private DoublePlantBlock.DoublePlantTypemethod_11606(BlockView blockView, BlockPos blockPos, BlockState blockState) voidmethod_13700(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) booleanmethod_8638(BlockView blockView, BlockPos blockPos) method_8640(World world, BlockPos blockPos, BlockState blockState) voidmethod_8651(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack stack) protected voidmethod_8690(World world, BlockPos blockPos, BlockState blockState) booleanmethod_8691(World world, BlockPos pos, BlockState state) voidmethod_8752(World world, BlockPos blockPos, DoublePlantBlock.DoublePlantType doublePlantType, int int2) private booleanmethod_8753(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity) voidonBreakByPlayer(World world, BlockPos pos, BlockState state, PlayerEntity player) Runs when the block is broken by a player.voidonPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Runs when the block is placed by an entitystateFromData(int data) Returns a blockstate of the current block from it's idMethods inherited from class net.minecraft.block.PlantBlock
canBePlacedOn, getRenderLayerType, isFullBoundsCubeForCulling, method_11562, method_8640, onBreak, scheduledTickMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBonusDrops, getByBlockState, getById, getComparatorOutput, getDefaultState, getDropCount, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getOpacity, getPistonBehavior, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTickRate, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_13315, method_13701, method_13702, method_13703, method_13704, method_414, method_435, method_8653, method_8654, method_8664, method_8669, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreaking, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, use, useNeighbourLight, withMirror, withRotation
-
Field Details
-
VARIANT
- Mappings:
Namespace Name Mixin selector official aLamy;a:Latz;intermediary field_9381Lnet/minecraft/class_1755;field_9381:Lnet/minecraft/class_2245;named VARIANTLnet/minecraft/block/DoublePlantBlock;VARIANT:Lnet/minecraft/state/property/EnumProperty;
-
HALF
- Mappings:
Namespace Name Mixin selector official cLamy;c:Latz;intermediary field_9382Lnet/minecraft/class_1755;field_9382:Lnet/minecraft/class_2245;named HALFLnet/minecraft/block/DoublePlantBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
-
FACING
- Mappings:
Namespace Name Mixin selector official dLamy;d:Latz;intermediary field_9380Lnet/minecraft/class_1755;field_9380:Lnet/minecraft/class_2245;named FACINGLnet/minecraft/block/DoublePlantBlock;FACING:Lnet/minecraft/state/property/EnumProperty;
-
-
Constructor Details
-
DoublePlantBlock
public DoublePlantBlock()
-
-
Method Details
-
getCollisionBox
- Overrides:
getCollisionBoxin classPlantBlock- Mappings:
Namespace Name Mixin selector official bLalu;b(Latl;Lajw;Lco;)Lbdt;intermediary method_11554Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
method_11606
private DoublePlantBlock.DoublePlantType method_11606(BlockView blockView, BlockPos blockPos, BlockState blockState) - Mappings:
Namespace Name Mixin selector official aLamy;a(Lajw;Lco;Latl;)Lamy$b;intermediary method_11606Lnet/minecraft/class_1755;method_11606(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_1755$class_2184;named method_11606Lnet/minecraft/block/DoublePlantBlock;method_11606(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/DoublePlantBlock$DoublePlantType;
-
canBePlacedAtPos
Returns whether the current block can be placed at a certainBlockPos- Overrides:
canBePlacedAtPosin classPlantBlock- Returns:
- Whether the current block can be placed at a BlockPos
- Mappings:
Namespace Name Mixin selector official aLalu;a(Lajs;Lco;)Zintermediary method_8673Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed canBePlacedAtPosLnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_8638
- Overrides:
method_8638in classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Lajw;Lco;)Zintermediary method_8638Lnet/minecraft/class_197;method_8638(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Znamed method_8638Lnet/minecraft/block/Block;method_8638(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
method_8690
- Overrides:
method_8690in classPlantBlock- Mappings:
Namespace Name Mixin selector official eLama;e(Lajs;Lco;Latl;)Vintermediary method_8690Lnet/minecraft/class_1754;method_8690(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed method_8690Lnet/minecraft/block/PlantBlock;method_8690(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
method_8691
- Overrides:
method_8691in classPlantBlock- Mappings:
Namespace Name Mixin selector official fLama;f(Lajs;Lco;Latl;)Zintermediary method_8691Lnet/minecraft/class_1754;method_8691(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Znamed method_8691Lnet/minecraft/block/PlantBlock;method_8691(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
getDropItem
Returns the item that must be dropped when the block is broken- Overrides:
getDropItemin classBlock- Parameters:
blockState- The block's BlockStaterandom- Random objectstate- State- Returns:
- The Item that drops after the block breaks
- Mappings:
Namespace Name Mixin selector official aLalu;a(Latl;Ljava/util/Random;I)Lafh;intermediary method_398Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;named getDropItemLnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
-
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 dLalu;d(Latl;)Iintermediary method_8655Lnet/minecraft/class_197;method_8655(Lnet/minecraft/class_2232;)Inamed getMetaLnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)I
-
method_8752
public void method_8752(World world, BlockPos blockPos, DoublePlantBlock.DoublePlantType doublePlantType, int int2) - Mappings:
Namespace Name Mixin selector official aLamy;a(Lajs;Lco;Lamy$b;I)Vintermediary method_8752Lnet/minecraft/class_1755;method_8752(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1755$class_2184;I)Vnamed method_8752Lnet/minecraft/block/DoublePlantBlock;method_8752(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/DoublePlantBlock$DoublePlantType;I)V
-
onPlaced
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Runs when the block is placed by an entity- Overrides:
onPlacedin classBlock- Parameters:
world- The world that the block is inpos- The block's positionstate- The block's BlockStateplacer- The entity who placed the blockitemStack- ItemStack instance- Mappings:
Namespace Name Mixin selector official aLalu;a(Lajs;Lco;Latl;Lsw;Lafj;)Vintermediary method_419Lnet/minecraft/class_197;method_419(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1699;Lnet/minecraft/class_1071;)Vnamed onPlacedLnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
-
method_8651
public void method_8651(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) - Overrides:
method_8651in classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Lajs;Laay;Lco;Latl;Lasc;Lafj;)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
-
onBreakByPlayer
Runs when the block is broken by a player.- Overrides:
onBreakByPlayerin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateplayer- The player who broke the block- Mappings:
Namespace Name Mixin selector official aLalu;a(Lajs;Lco;Latl;Laay;)Vintermediary method_8644Lnet/minecraft/class_197;method_8644(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;)Vnamed onBreakByPlayerLnet/minecraft/block/Block;onBreakByPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
-
method_8753
private boolean method_8753(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity) - Mappings:
Namespace Name Mixin selector official bLamy;b(Lajs;Lco;Latl;Laay;)Zintermediary method_8753Lnet/minecraft/class_1755;method_8753(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;)Znamed method_8753Lnet/minecraft/block/DoublePlantBlock;method_8753(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)Z
-
method_13700
@Environment(CLIENT) public void method_13700(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) - Overrides:
method_13700in classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Lafh;Laej;Ldd;)Vintermediary method_13700Lnet/minecraft/class_197;method_13700(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)Vnamed method_13700Lnet/minecraft/block/Block;method_13700(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
-
method_8640
- Overrides:
method_8640in classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Lajs;Lco;Latl;)Lafj;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_1071;named method_8640Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
-
canGrow
- Specified by:
canGrowin interfaceGrowable- Mappings:
Namespace Name Mixin selector official aLalx;a(Lajs;Lco;Latl;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 aLalx;a(Lajs;Ljava/util/Random;Lco;Latl;)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 bLalx;b(Lajs;Ljava/util/Random;Lco;Latl;)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 aLalu;a(I)Latl;intermediary method_8635Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;named stateFromDataLnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
-
getBlockState
Returns the current block's blockstate at a certain position- Overrides:
getBlockStatein classBlock- Parameters:
state- The original blockstateview- BlockView instancepos- The block's position- Returns:
- state
- Mappings:
Namespace Name Mixin selector official cLalu;c(Latl;Lajw;Lco;)Latl;intermediary method_8656Lnet/minecraft/class_197;method_8656(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2232;named getBlockStateLnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)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 eLalu;e(Latl;)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 bLalu;b()Latm;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-
getOffsetType
Returns the block's offset type. Used by grass and flowers.- Overrides:
getOffsetTypein classBlock- Returns:
- The block's offset type
- Mappings:
Namespace Name Mixin selector official uLalu;u()Lalu$a;intermediary method_8634Lnet/minecraft/class_197;method_8634()Lnet/minecraft/class_197$class_2177;named getOffsetTypeLnet/minecraft/block/Block;getOffsetType()Lnet/minecraft/block/Block$OffsetType;
-