Package net.minecraft

Class class_11709

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

public class class_11709 extends PaneBlock implements Oxidizable
Mappings:
Namespace Name
named net/minecraft/class_11709
intermediary net/minecraft/class_11709
official ebb
  • Field Details

    • field_61907

      public static final com.mojang.serialization.MapCodec<class_11709> field_61907
      Mappings:
      Namespace Name Mixin selector
      named field_61907 Lnet/minecraft/class_11709;field_61907:Lcom/mojang/serialization/MapCodec;
      intermediary field_61907 Lnet/minecraft/class_11709;field_61907:Lcom/mojang/serialization/MapCodec;
      official h Lebb;h:Lcom/mojang/serialization/MapCodec;
    • field_61908

      private final Oxidizable.OxidationLevel field_61908
      Mappings:
      Namespace Name Mixin selector
      named field_61908 Lnet/minecraft/class_11709;field_61908:Lnet/minecraft/block/Oxidizable$OxidationLevel;
      intermediary field_61908 Lnet/minecraft/class_11709;field_61908:Lnet/minecraft/class_5955$class_5811;
      official i Lebb;i:Leba$a;
  • Constructor Details

  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<class_11709> getCodec()
      Overrides:
      getCodec in class PaneBlock
      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_11709;getDegradationLevel()Lnet/minecraft/block/Oxidizable$OxidationLevel;
      intermediary method_73121 Lnet/minecraft/class_11709;method_73121()Lnet/minecraft/class_5955$class_5811;
      official q Lebb;q()Leba$a;