Class CoralBlockBlock

All Implemented Interfaces:
ItemConvertible

public class CoralBlockBlock extends Block
Mappings:
Namespace Name
official ckd
intermediary net/minecraft/class_2298
named net/minecraft/block/CoralBlockBlock
  • Field Details

    • deadCoralBlock

      private final Block deadCoralBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lckd;a:Lciw;
      intermediary field_10818 Lnet/minecraft/class_2298;field_10818:Lnet/minecraft/class_2248;
      named deadCoralBlock Lnet/minecraft/block/CoralBlockBlock;deadCoralBlock:Lnet/minecraft/block/Block;
  • Constructor Details

    • CoralBlockBlock

      public CoralBlockBlock(Block deadCoralBlock, AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lckd;<init>(Lciw;Lcuq$c;)V
      intermediary <init> Lnet/minecraft/class_2298;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/CoralBlockBlock;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • scheduledTick

      public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      scheduledTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lafo;Lgt;Lalu;)V
      intermediary method_9588 Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
      named scheduledTick Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
    • getStateForNeighborUpdate

      public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
      Gets the possibly updated block state of this block when a neighboring block is updated.
      Overrides:
      getStateForNeighborUpdate in class AbstractBlock
      Parameters:
      state - the state of this block
      direction - the direction from this block to the neighbor
      neighborState - the state of the updated neighbor block
      world - the world
      pos - the position of this block
      neighborPos - the position of the neighbor block
      Returns:
      the new state of this block
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lgy;Lcur;Lcgb;Lgt;Lgt;)Lcur;
      intermediary method_9559 Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getStateForNeighborUpdate Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • isInWater

      protected boolean isInWater(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lckd;a(Lcfg;Lgt;)Z
      intermediary method_9808 Lnet/minecraft/class_2298;method_9808(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
      named isInWater Lnet/minecraft/block/CoralBlockBlock;isInWater(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • getPlacementState

      @Nullable public @Nullable BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcca;)Lcur;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;