Class DragonEggBlock

All Implemented Interfaces:
LandingBlock, ItemConvertible

public class DragonEggBlock extends FallingBlock
Mappings:
Namespace Name
official cex
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 Lcex;a:Ldpf;
      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> Lcob;<init>(Lcob$c;)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 Lcob;a(Lcoc;Lbzj;Lgh;Ldor;)Ldpf;
      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 Lcob;a(Lcoc;Lcad;Lgh;Lbnr;Lavp;Ldoi;)Lavq;
      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)
      Overrides:
      onBlockBreakStart in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;Lbnr;)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 Lcex;d(Lcoc;Lcad;Lgh;)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 c Lcfi;c()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)
      Overrides:
      canPathfindThrough in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lbzj;Lgh;Ldim;)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