Class DragonEggBlock

All Implemented Interfaces:
LandingBlock, ItemConvertible, ToggleableFeature

public class DragonEggBlock extends FallingBlock
Mappings:
Namespace Name
named net/minecraft/block/DragonEggBlock
intermediary net/minecraft/class_2328
official dhj
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<DragonEggBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/DragonEggBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46339 Lnet/minecraft/class_2328;field_46339:Lcom/mojang/serialization/MapCodec;
      official a Ldhj;a:Lcom/mojang/serialization/MapCodec;
    • SHAPE

      protected static final VoxelShape SHAPE
      Mappings:
      Namespace Name Mixin selector
      named SHAPE Lnet/minecraft/block/DragonEggBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      intermediary field_10950 Lnet/minecraft/class_2328;field_10950:Lnet/minecraft/class_265;
      official b Ldhj;b:Lewl;
  • Constructor Details

    • DragonEggBlock

      public DragonEggBlock(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<DragonEggBlock> getCodec()
      Specified by:
      getCodec in class FallingBlock
      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;
    • getOutlineShape

      protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Ldsc;a(Ldsd;Ldbf;Liz;Levx;)Lewl;
    • onUse

      protected ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit)
      Overrides:
      onUse in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      named onUse Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
      intermediary method_55766 Lnet/minecraft/class_4970;method_55766(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
      official a Ldsc;a(Ldsd;Ldbz;Liz;Lcmy;Levo;)Lbqv;
    • onBlockBreakStart

      protected void onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)
      Called when a player starts breaking the block (including when instant-mining).

      This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using World.isClient.

      Overrides:
      onBlockBreakStart in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named onBlockBreakStart Lnet/minecraft/block/AbstractBlock;onBlockBreakStart(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_9606 Lnet/minecraft/class_4970;method_9606(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;)V
      official a Ldsc;a(Ldsd;Ldbz;Liz;Lcmy;)V
    • teleport

      private void teleport(BlockState state, World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named teleport Lnet/minecraft/block/DragonEggBlock;teleport(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_10047 Lnet/minecraft/class_2328;method_10047(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      official d Ldhj;d(Ldsd;Ldbz;Liz;)V
    • getFallDelay

      protected int getFallDelay()
      Gets the amount of time in ticks this block will wait before attempting to start falling.
      Overrides:
      getFallDelay in class FallingBlock
      Mappings:
      Namespace Name Mixin selector
      named getFallDelay Lnet/minecraft/block/FallingBlock;getFallDelay()I
      intermediary method_26154 Lnet/minecraft/class_2346;method_26154()I
      official b Ldhw;b()I
    • canPathfindThrough

      protected boolean canPathfindThrough(BlockState state, NavigationType type)
      Returns if an entity using navigation type type can navigate through this block.
      Overrides:
      canPathfindThrough in class AbstractBlock
      Returns:
      if an entity using navigation type type can navigate through this block
      See Also:
      API Note:
      Subclasses may override this to prevent or restrict pathfinding through the block. For example, DoorBlock restricts it to open doors only.
      Mappings:
      Namespace Name Mixin selector
      named canPathfindThrough Lnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z
      intermediary method_9516 Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_10;)Z
      official a Ldsc;a(Ldsd;Leol;)Z