Class DropperBlock

All Implemented Interfaces:
BlockEntityProvider, ItemConvertible, ToggleableFeature

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

    • LOGGER

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

      public static final com.mojang.serialization.MapCodec<DropperBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/DropperBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46341 Lnet/minecraft/class_2325;field_46341:Lcom/mojang/serialization/MapCodec;
      official e Ldih;e:Lcom/mojang/serialization/MapCodec;
    • BEHAVIOR

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

    • DropperBlock

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

    • getCodec

      public com.mojang.serialization.MapCodec<DropperBlock> getCodec()
      Overrides:
      getCodec in class DispenserBlock
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_53969 Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
      official a Ldsz;a()Lcom/mojang/serialization/MapCodec;
    • getBehaviorForItem

      protected DispenserBehavior getBehaviorForItem(World world, ItemStack stack)
      Overrides:
      getBehaviorForItem in class DispenserBlock
      Mappings:
      Namespace Name Mixin selector
      named getBehaviorForItem Lnet/minecraft/block/DispenserBlock;getBehaviorForItem(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/block/dispenser/DispenserBehavior;
      intermediary method_10011 Lnet/minecraft/class_2315;method_10011(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;)Lnet/minecraft/class_2357;
      official a Ldib;a(Ldcu;Lcuo;)Lkx;
    • 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
      Implementation Note:
      While this is marked as nullable, in practice this should never return null. PistonExtensionBlock is the only block in vanilla that returns null inside the implementation.
      Mappings:
      Namespace Name Mixin selector
      named createBlockEntity Lnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;
      intermediary method_10123 Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;
      official a Ldio;a(Ljd;Ldta;)Ldqf;
    • dispense

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