Class CarvedPumpkinBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature
Direct Known Subclasses:
WearableCarvedPumpkinBlock

public class CarvedPumpkinBlock extends HorizontalFacingBlock
Mappings:
Namespace Name
named net/minecraft/block/CarvedPumpkinBlock
intermediary net/minecraft/class_2276
official dfu
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<CarvedPumpkinBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/CarvedPumpkinBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46304 Lnet/minecraft/class_2276;field_46304:Lcom/mojang/serialization/MapCodec;
      official a Ldfu;a:Lcom/mojang/serialization/MapCodec;
    • FACING

      public static final DirectionProperty FACING
      Mappings:
      Namespace Name Mixin selector
      named FACING Lnet/minecraft/block/CarvedPumpkinBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
      intermediary field_10748 Lnet/minecraft/class_2276;field_10748:Lnet/minecraft/class_2753;
      official b Ldfu;b:Ldsx;
    • IS_GOLEM_HEAD_PREDICATE

      private static final Predicate<BlockState> IS_GOLEM_HEAD_PREDICATE
      Mappings:
      Namespace Name Mixin selector
      named IS_GOLEM_HEAD_PREDICATE Lnet/minecraft/block/CarvedPumpkinBlock;IS_GOLEM_HEAD_PREDICATE:Ljava/util/function/Predicate;
      intermediary field_10751 Lnet/minecraft/class_2276;field_10751:Ljava/util/function/Predicate;
      official g Ldfu;g:Ljava/util/function/Predicate;
    • snowGolemDispenserPattern

      @Nullable private @Nullable BlockPattern snowGolemDispenserPattern
      Mappings:
      Namespace Name Mixin selector
      named snowGolemDispenserPattern Lnet/minecraft/block/CarvedPumpkinBlock;snowGolemDispenserPattern:Lnet/minecraft/block/pattern/BlockPattern;
      intermediary field_10749 Lnet/minecraft/class_2276;field_10749:Lnet/minecraft/class_2700;
      official c Ldfu;c:Ldsi;
    • snowGolemPattern

      @Nullable private @Nullable BlockPattern snowGolemPattern
      Mappings:
      Namespace Name Mixin selector
      named snowGolemPattern Lnet/minecraft/block/CarvedPumpkinBlock;snowGolemPattern:Lnet/minecraft/block/pattern/BlockPattern;
      intermediary field_10750 Lnet/minecraft/class_2276;field_10750:Lnet/minecraft/class_2700;
      official d Ldfu;d:Ldsi;
    • ironGolemDispenserPattern

      @Nullable private @Nullable BlockPattern ironGolemDispenserPattern
      Mappings:
      Namespace Name Mixin selector
      named ironGolemDispenserPattern Lnet/minecraft/block/CarvedPumpkinBlock;ironGolemDispenserPattern:Lnet/minecraft/block/pattern/BlockPattern;
      intermediary field_10752 Lnet/minecraft/class_2276;field_10752:Lnet/minecraft/class_2700;
      official e Ldfu;e:Ldsi;
    • ironGolemPattern

      @Nullable private @Nullable BlockPattern ironGolemPattern
      Mappings:
      Namespace Name Mixin selector
      named ironGolemPattern Lnet/minecraft/block/CarvedPumpkinBlock;ironGolemPattern:Lnet/minecraft/block/pattern/BlockPattern;
      intermediary field_10753 Lnet/minecraft/class_2276;field_10753:Lnet/minecraft/class_2700;
      official f Ldfu;f:Ldsi;
  • Constructor Details

    • CarvedPumpkinBlock

      protected CarvedPumpkinBlock(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> Ldsc;<init>(Ldsc$d;)V
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<? extends CarvedPumpkinBlock> getCodec()
      Specified by:
      getCodec in class HorizontalFacingBlock
      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 Ldsc;a()Lcom/mojang/serialization/MapCodec;
    • onBlockAdded

      protected void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
      Overrides:
      onBlockAdded in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named onBlockAdded Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
      intermediary method_9615 Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
      official b Ldsc;b(Ldsd;Ldbz;Liz;Ldsd;Z)V
    • canDispense

      public boolean canDispense(WorldView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named canDispense Lnet/minecraft/block/CarvedPumpkinBlock;canDispense(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_9733 Lnet/minecraft/class_2276;method_9733(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      official a Ldfu;a(Ldcc;Liz;)Z
    • trySpawnEntity

      private void trySpawnEntity(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named trySpawnEntity Lnet/minecraft/block/CarvedPumpkinBlock;trySpawnEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_9731 Lnet/minecraft/class_2276;method_9731(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      official a Ldfu;a(Ldbz;Liz;)V
    • spawnEntity

      private static void spawnEntity(World world, BlockPattern.Result patternResult, Entity entity, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named spawnEntity Lnet/minecraft/block/CarvedPumpkinBlock;spawnEntity(Lnet/minecraft/world/World;Lnet/minecraft/block/pattern/BlockPattern$Result;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_45455 Lnet/minecraft/class_2276;method_45455(Lnet/minecraft/class_1937;Lnet/minecraft/class_2700$class_2702;Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)V
      official a Ldfu;a(Ldbz;Ldsi$b;Lbsv;Liz;)V
    • breakPatternBlocks

      public static void breakPatternBlocks(World world, BlockPattern.Result patternResult)
      Mappings:
      Namespace Name Mixin selector
      named breakPatternBlocks Lnet/minecraft/block/CarvedPumpkinBlock;breakPatternBlocks(Lnet/minecraft/world/World;Lnet/minecraft/block/pattern/BlockPattern$Result;)V
      intermediary method_45454 Lnet/minecraft/class_2276;method_45454(Lnet/minecraft/class_1937;Lnet/minecraft/class_2700$class_2702;)V
      official a Ldfu;a(Ldbz;Ldsi$b;)V
    • updatePatternBlocks

      public static void updatePatternBlocks(World world, BlockPattern.Result patternResult)
      Mappings:
      Namespace Name Mixin selector
      named updatePatternBlocks Lnet/minecraft/block/CarvedPumpkinBlock;updatePatternBlocks(Lnet/minecraft/world/World;Lnet/minecraft/block/pattern/BlockPattern$Result;)V
      intermediary method_45456 Lnet/minecraft/class_2276;method_45456(Lnet/minecraft/class_1937;Lnet/minecraft/class_2700$class_2702;)V
      official b Ldfu;b(Ldbz;Ldsi$b;)V
    • getPlacementState

      public BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      official a Ldfa;a(Lcyb;)Ldsd;
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Appends block state properties to this block. To use this, override and call StateManager.Builder.add(net.minecraft.state.property.Property<?>[]) inside the method. See Properties for the list of pre-defined properties.
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      official a Ldfa;a(Ldse$a;)V
    • getSnowGolemDispenserPattern

      private BlockPattern getSnowGolemDispenserPattern()
      Mappings:
      Namespace Name Mixin selector
      named getSnowGolemDispenserPattern Lnet/minecraft/block/CarvedPumpkinBlock;getSnowGolemDispenserPattern()Lnet/minecraft/block/pattern/BlockPattern;
      intermediary method_9732 Lnet/minecraft/class_2276;method_9732()Lnet/minecraft/class_2700;
      official b Ldfu;b()Ldsi;
    • getSnowGolemPattern

      private BlockPattern getSnowGolemPattern()
      Mappings:
      Namespace Name Mixin selector
      named getSnowGolemPattern Lnet/minecraft/block/CarvedPumpkinBlock;getSnowGolemPattern()Lnet/minecraft/block/pattern/BlockPattern;
      intermediary method_9729 Lnet/minecraft/class_2276;method_9729()Lnet/minecraft/class_2700;
      official m Ldfu;m()Ldsi;
    • getIronGolemDispenserPattern

      private BlockPattern getIronGolemDispenserPattern()
      Mappings:
      Namespace Name Mixin selector
      named getIronGolemDispenserPattern Lnet/minecraft/block/CarvedPumpkinBlock;getIronGolemDispenserPattern()Lnet/minecraft/block/pattern/BlockPattern;
      intermediary method_9727 Lnet/minecraft/class_2276;method_9727()Lnet/minecraft/class_2700;
      official y Ldfu;y()Ldsi;
    • getIronGolemPattern

      private BlockPattern getIronGolemPattern()
      Mappings:
      Namespace Name Mixin selector
      named getIronGolemPattern Lnet/minecraft/block/CarvedPumpkinBlock;getIronGolemPattern()Lnet/minecraft/block/pattern/BlockPattern;
      intermediary method_9730 Lnet/minecraft/class_2276;method_9730()Lnet/minecraft/class_2700;
      official z Ldfu;z()Ldsi;