Class DropperBlock

All Implemented Interfaces:
BlockEntityProvider, ItemConvertible, ToggleableFeature

public class DropperBlock extends DispenserBlock
Mappings:
Namespace Name
official cvc
intermediary net/minecraft/class_2325
named net/minecraft/block/DropperBlock
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official c Lcvc;c:Lorg/slf4j/Logger;
      intermediary field_46213 Lnet/minecraft/class_2325;field_46213:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/block/DropperBlock;LOGGER:Lorg/slf4j/Logger;
    • BEHAVIOR

      private static final DispenserBehavior BEHAVIOR
      Mappings:
      Namespace Name Mixin selector
      official d Lcvc;d:Lih;
      intermediary field_10949 Lnet/minecraft/class_2325;field_10949:Lnet/minecraft/class_2357;
      named BEHAVIOR Lnet/minecraft/block/DropperBlock;BEHAVIOR:Lnet/minecraft/block/dispenser/DispenserBehavior;
  • Constructor Details

    • DropperBlock

      public DropperBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldfi;<init>(Ldfi$d;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • getBehaviorForItem

      protected DispenserBehavior getBehaviorForItem(ItemStack stack)
      Overrides:
      getBehaviorForItem in class DispenserBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuw;a(Lcjf;)Lih;
      intermediary method_10011 Lnet/minecraft/class_2315;method_10011(Lnet/minecraft/class_1799;)Lnet/minecraft/class_2357;
      named getBehaviorForItem Lnet/minecraft/block/DispenserBlock;getBehaviorForItem(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/block/dispenser/DispenserBehavior;
    • createBlockEntity

      public BlockEntity createBlockEntity(BlockPos pos, BlockState state)
      Returns a new block entity instance.

      For example:

      
       @Override
       public BlockEntity createBlockEntity(BlockPos pos, BlockState state) {
         return new MyBlockEntity(pos, state);
       }
       
      Specified by:
      createBlockEntity in interface BlockEntityProvider
      Overrides:
      createBlockEntity in class DispenserBlock
      Returns:
      a new block entity instance
      Mappings:
      Namespace Name Mixin selector
      official a Lcvj;a(Lgw;Ldfj;)Ldcv;
      intermediary method_10123 Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;
      named createBlockEntity Lnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;
    • dispense

      protected void dispense(ServerWorld world, BlockState state, BlockPos pos)
      Overrides:
      dispense in class DispenserBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuw;a(Lakq;Ldfj;Lgw;)V
      intermediary method_10012 Lnet/minecraft/class_2315;method_10012(Lnet/minecraft/class_3218;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
      named dispense Lnet/minecraft/block/DispenserBlock;dispense(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V