Package net.minecraft

Class class_11592

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

public class class_11592 extends class_11582 implements Oxidizable
Mappings:
Namespace Name
named net/minecraft/class_11592
intermediary net/minecraft/class_11592
official eaw
  • Field Details

    • field_61433

      public static final com.mojang.serialization.MapCodec<class_11592> field_61433
      Mappings:
      Namespace Name Mixin selector
      named field_61433 Lnet/minecraft/class_11592;field_61433:Lcom/mojang/serialization/MapCodec;
      intermediary field_61433 Lnet/minecraft/class_11592;field_61433:Lcom/mojang/serialization/MapCodec;
      official h Leaw;h:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<class_11592> getCodec()
      Overrides:
      getCodec in class class_11582
      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;
    • 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
    • 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
    • getDegradationLevel

      public Oxidizable.OxidationLevel getDegradationLevel()
      Specified by:
      getDegradationLevel in interface Degradable<Oxidizable.OxidationLevel>
      Mappings:
      Namespace Name Mixin selector
      named getDegradationLevel Lnet/minecraft/class_11592;getDegradationLevel()Lnet/minecraft/block/Oxidizable$OxidationLevel;
      intermediary method_72646 Lnet/minecraft/class_11592;method_72646()Lnet/minecraft/class_5955$class_5811;
      official v Leaw;v()Leau$a;
    • method_72602

      public boolean method_72602()
      Overrides:
      method_72602 in class class_11582
      Mappings:
      Namespace Name Mixin selector
      named method_72602 Lnet/minecraft/class_11582;method_72602()Z
      intermediary method_72602 Lnet/minecraft/class_11582;method_72602()Z
      official u Ldsj;u()Z