Package net.minecraft

Class class_11712

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

public class class_11712 extends LanternBlock implements Oxidizable
Mappings:
Namespace Name
named net/minecraft/class_11712
intermediary net/minecraft/class_11712
official ebn
  • Field Details

    • field_61911

      public static final com.mojang.serialization.MapCodec<class_11712> field_61911
      Mappings:
      Namespace Name Mixin selector
      named field_61911 Lnet/minecraft/class_11712;field_61911:Lcom/mojang/serialization/MapCodec;
      intermediary field_61911 Lnet/minecraft/class_11712;field_61911:Lcom/mojang/serialization/MapCodec;
      official d Lebn;d:Lcom/mojang/serialization/MapCodec;
    • field_61912

      private final Oxidizable.OxidationLevel field_61912
      Mappings:
      Namespace Name Mixin selector
      named field_61912 Lnet/minecraft/class_11712;field_61912:Lnet/minecraft/block/Oxidizable$OxidationLevel;
      intermediary field_61912 Lnet/minecraft/class_11712;field_61912:Lnet/minecraft/class_5955$class_5811;
      official e Lebn;e:Leba$a;
  • Constructor Details

  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<class_11712> getCodec()
      Overrides:
      getCodec in class LanternBlock
      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 Lefp;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 Lefp;b(Lefq;Lauj;Ljb;Lbcv;)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 Lefp;f(Lefq;)Z
    • getDegradationLevel

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