Class RodBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature
Direct Known Subclasses:
EndRodBlock, LightningRodBlock

public abstract class RodBlock extends FacingBlock
Mappings:
Namespace Name
named net/minecraft/block/RodBlock
intermediary net/minecraft/class_2337
official dqx
  • Field Details

    • field_31233

      protected static final float field_31233
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31233 Lnet/minecraft/block/RodBlock;field_31233:F
      intermediary field_31233 Lnet/minecraft/class_2337;field_31233:F
      official f Ldqx;f:F
    • field_31234

      protected static final float field_31234
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31234 Lnet/minecraft/block/RodBlock;field_31234:F
      intermediary field_31234 Lnet/minecraft/class_2337;field_31234:F
      official g Ldqx;g:F
    • Y_SHAPE

      protected static final VoxelShape Y_SHAPE
      Mappings:
      Namespace Name Mixin selector
      named Y_SHAPE Lnet/minecraft/block/RodBlock;Y_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      intermediary field_10971 Lnet/minecraft/class_2337;field_10971:Lnet/minecraft/class_265;
      official h Ldqx;h:Lfcr;
    • Z_SHAPE

      protected static final VoxelShape Z_SHAPE
      Mappings:
      Namespace Name Mixin selector
      named Z_SHAPE Lnet/minecraft/block/RodBlock;Z_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      intermediary field_10970 Lnet/minecraft/class_2337;field_10970:Lnet/minecraft/class_265;
      official i Ldqx;i:Lfcr;
    • X_SHAPE

      protected static final VoxelShape X_SHAPE
      Mappings:
      Namespace Name Mixin selector
      named X_SHAPE Lnet/minecraft/block/RodBlock;X_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
      intermediary field_10969 Lnet/minecraft/class_2337;field_10969:Lnet/minecraft/class_265;
      official j Ldqx;j:Lfcr;
  • Constructor Details

    • RodBlock

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

    • getCodec

      protected abstract com.mojang.serialization.MapCodec<? extends RodBlock> getCodec()
      Specified by:
      getCodec in class FacingBlock
      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 Ldxt;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 Ldxt;a(Ldxu;Ldgm;Ljh;Lfcc;)Lfcr;
    • rotate

      protected BlockState rotate(BlockState state, BlockRotation rotation)
      Returns state rotated by rotation.

      By default, this returns the provided block state.

      Overrides:
      rotate in class AbstractBlock
      Returns:
      state rotated by rotation
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named rotate Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
      intermediary method_9598 Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
      official a Ldxt;a(Ldxu;Ldrb;)Ldxu;
    • mirror

      protected BlockState mirror(BlockState state, BlockMirror mirror)
      Returns state mirrored by mirror.

      By default, this returns the provided block state.

      Overrides:
      mirror in class AbstractBlock
      Returns:
      state mirrored by mirror
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mirror Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
      intermediary method_9569 Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
      official a Ldxt;a(Ldxu;Ldpk;)Ldxu;
    • 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 Ldxt;a(Ldxu;Leul;)Z