Class DragonEggBlock

All Implemented Interfaces:
LandingBlock, ItemConvertible, ToggleableFeature

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

    • SHAPE

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

    • DragonEggBlock

      public DragonEggBlock(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

    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Ldfi;a(Ldfj;Lcpb;Lgw;Lehs;)Leig;
      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;
    • onUse

      public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
      Called when this block is used by a player. This, by default, is bound to using the right mouse button.

      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().

      If the action result is successful on a logical client, then the action will be sent to the logical server for processing.

      Overrides:
      onUse in class AbstractBlock
      Returns:
      an action result that specifies if using the block was successful.
      Mappings:
      Namespace Name Mixin selector
      official a Ldfi;a(Ldfj;Lcpv;Lgw;Lcbu;Lbgx;Lehj;)Lbgy;
      intermediary method_9534 Lnet/minecraft/class_4970;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
      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/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
    • onBlockBreakStart

      public 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
      Mappings:
      Namespace Name Mixin selector
      official a Ldfi;a(Ldfj;Lcpv;Lgw;Lcbu;)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
      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
    • teleport

      private void teleport(BlockState state, World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official d Lcva;d(Ldfj;Lcpv;Lgw;)V
      intermediary method_10047 Lnet/minecraft/class_2328;method_10047(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      named teleport Lnet/minecraft/block/DragonEggBlock;teleport(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)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
      official a Lcvn;a()I
      intermediary method_26154 Lnet/minecraft/class_2346;method_26154()I
      named getFallDelay Lnet/minecraft/block/FallingBlock;getFallDelay()I
    • canPathfindThrough

      public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, 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
      Mappings:
      Namespace Name Mixin selector
      official a Ldfi;a(Ldfj;Lcpb;Lgw;Lebc;)Z
      intermediary method_9516 Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_10;)Z
      named canPathfindThrough Lnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z