Package net.minecraft

Class class_11594

All Implemented Interfaces:
Degradable<Oxidizable.OxidationLevel>, FluidDrainable, FluidFillable, Oxidizable, Waterloggable, ItemConvertible, ToggleableFeature

public class class_11594 extends LightningRodBlock implements Oxidizable
Mappings:
Namespace Name
named net/minecraft/class_11594
intermediary net/minecraft/class_11594
official ebe
  • Field Details

    • field_61435

      public static final com.mojang.serialization.MapCodec<class_11594> field_61435
      Mappings:
      Namespace Name Mixin selector
      named field_61435 Lnet/minecraft/class_11594;field_61435:Lcom/mojang/serialization/MapCodec;
      intermediary field_61435 Lnet/minecraft/class_11594;field_61435:Lcom/mojang/serialization/MapCodec;
      official f Lebe;f:Lcom/mojang/serialization/MapCodec;
    • field_61436

      private final Oxidizable.OxidationLevel field_61436
      Mappings:
      Namespace Name Mixin selector
      named field_61436 Lnet/minecraft/class_11594;field_61436:Lnet/minecraft/block/Oxidizable$OxidationLevel;
      intermediary field_61436 Lnet/minecraft/class_11594;field_61436:Lnet/minecraft/class_5955$class_5811;
      official g Lebe;g:Leau$a;
  • Constructor Details

  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<class_11594> getCodec()
      Overrides:
      getCodec in class LightningRodBlock
      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 Leff;a()Lcom/mojang/serialization/MapCodec;
    • randomTick

      protected void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Called server-side when a block gets ticked randomly. This can be overridden to implement various logics, most commonly plant growth. Default implementation does nothing. To control the rate of the action, use random.

      Random tick speed is controlled by the game rule randomTickSpeed and can be disabled. Only blocks within 128-block cylinder (i.e. ignoring Y coordinates) around players receive random ticks.

      Blocks overriding this must use AbstractBlock.Settings.ticksRandomly() block settings.

      Here are some examples:

      • invalid reference
        SugarCaneBlock
        uses this to grow sugar cane.
      • invalid reference
        OxidizableBlock
        uses this to oxidize.
      • invalid reference
        NetherPortalBlock
        uses this to spawn zombified piglins.
      • invalid reference
        LeavesBlock
        uses this to decay when far from logs.
      Overrides:
      randomTick in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named randomTick Lnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
      intermediary method_9514 Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
      official b Leff;b(Lefg;Lauf;Ljb;Lbcr;)V
    • hasRandomTicks

      protected boolean hasRandomTicks(BlockState state)
      Overrides:
      hasRandomTicks in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      named hasRandomTicks Lnet/minecraft/block/AbstractBlock;hasRandomTicks(Lnet/minecraft/block/BlockState;)Z
      intermediary method_9542 Lnet/minecraft/class_4970;method_9542(Lnet/minecraft/class_2680;)Z
      official f Leff;f(Lefg;)Z
    • getDegradationLevel

      public Oxidizable.OxidationLevel getDegradationLevel()
      Specified by:
      getDegradationLevel in interface Degradable<Oxidizable.OxidationLevel>
      Mappings:
      Namespace Name Mixin selector
      named getDegradationLevel Lnet/minecraft/class_11594;getDegradationLevel()Lnet/minecraft/block/Oxidizable$OxidationLevel;
      intermediary method_72650 Lnet/minecraft/class_11594;method_72650()Lnet/minecraft/class_5955$class_5811;
      official q Lebe;q()Leau$a;