Class AbstractPlantPartBlock

All Implemented Interfaces:
ItemConvertible
Direct Known Subclasses:
AbstractPlantBlock, AbstractPlantStemBlock

public abstract class AbstractPlantPartBlock
extends Block
Mappings:
Namespace Name
official bzw
intermediary net/minecraft/class_4863
named net/minecraft/block/AbstractPlantPartBlock
  • Field Details

    • growthDirection

      protected final Direction growthDirection
      Mappings:
      Namespace Name Mixin selector
      official b_ Lbzw;b_:Lgc;
      intermediary field_22507 Lnet/minecraft/class_4863;field_22507:Lnet/minecraft/class_2350;
      named growthDirection Lnet/minecraft/block/AbstractPlantPartBlock;growthDirection:Lnet/minecraft/util/math/Direction;
    • tickWater

      protected final boolean tickWater
      Mappings:
      Namespace Name Mixin selector
      official c_ Lbzw;c_:Z
      intermediary field_22508 Lnet/minecraft/class_4863;field_22508:Z
      named tickWater Lnet/minecraft/block/AbstractPlantPartBlock;tickWater:Z
    • outlineShape

      protected final VoxelShape outlineShape
      Mappings:
      Namespace Name Mixin selector
      official c Lbzw;c:Ldjn;
      intermediary field_23080 Lnet/minecraft/class_4863;field_23080:Lnet/minecraft/class_265;
      named outlineShape Lnet/minecraft/block/AbstractPlantPartBlock;outlineShape:Lnet/minecraft/util/shape/VoxelShape;
  • Constructor Details

    • AbstractPlantPartBlock

      protected AbstractPlantPartBlock​(AbstractBlock.Settings settings, Direction growthDirection, VoxelShape outlineShape, boolean tickWater)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbzw;<init>(Lchs$c;Lgc;Ldjn;Z)V
      intermediary <init> Lnet/minecraft/class_4863;<init>(Lnet/minecraft/class_4970$class_2251;Lnet/minecraft/class_2350;Lnet/minecraft/class_265;Z)V
      named <init> Lnet/minecraft/block/AbstractPlantPartBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/shape/VoxelShape;Z)V
  • Method Details

    • getPlacementState

      @Nullable public BlockState getPlacementState​(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbpv;)Lcht;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
    • getRandomGrowthState

      public BlockState getRandomGrowthState​(WorldAccess world)
      Mappings:
      Namespace Name Mixin selector
      official a Lbzw;a(Lbtw;)Lcht;
      intermediary method_24948 Lnet/minecraft/class_4863;method_24948(Lnet/minecraft/class_1936;)Lnet/minecraft/class_2680;
      named getRandomGrowthState Lnet/minecraft/block/AbstractPlantPartBlock;getRandomGrowthState(Lnet/minecraft/world/WorldAccess;)Lnet/minecraft/block/BlockState;
    • canPlaceAt

      public boolean canPlaceAt​(BlockState state, WorldView world, BlockPos pos)
      Overrides:
      canPlaceAt in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lchs;a(Lcht;Lbty;Lfx;)Z
      intermediary method_9558 Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      named canPlaceAt Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
    • scheduledTick

      public void scheduledTick​(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      scheduledTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a_ Lchs;a_(Lcht;Laav;Lfx;Ljava/util/Random;)V
      intermediary method_9588 Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • canAttachTo

      protected boolean canAttachTo​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official h Lbzw;h(Lcht;)Z
      intermediary method_24947 Lnet/minecraft/class_4863;method_24947(Lnet/minecraft/class_2680;)Z
      named canAttachTo Lnet/minecraft/block/AbstractPlantPartBlock;canAttachTo(Lnet/minecraft/block/BlockState;)Z
    • getOutlineShape

      public VoxelShape getOutlineShape​(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lchs;a(Lcht;Lbsz;Lfx;Ldiz;)Ldjn;
      intermediary method_9530 Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      named getOutlineShape Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
    • getStem

      protected abstract AbstractPlantStemBlock getStem()
      Mappings:
      Namespace Name Mixin selector
      official c Lbzw;c()Lbzy;
      intermediary method_24945 Lnet/minecraft/class_4863;method_24945()Lnet/minecraft/class_4865;
      named getStem Lnet/minecraft/block/AbstractPlantPartBlock;getStem()Lnet/minecraft/block/AbstractPlantStemBlock;
    • getPlant

      protected abstract Block getPlant()
      Mappings:
      Namespace Name Mixin selector
      official d Lbzw;d()Lbwu;
      intermediary method_24946 Lnet/minecraft/class_4863;method_24946()Lnet/minecraft/class_2248;
      named getPlant Lnet/minecraft/block/AbstractPlantPartBlock;getPlant()Lnet/minecraft/block/Block;