Interface Degradable<T extends Enum<T>>

All Known Subinterfaces:
Oxidizable
All Known Implementing Classes:
OxidizableBlock, OxidizableSlabBlock, OxidizableStairsBlock

public interface Degradable<T extends Enum<T>>
Mappings:
Namespace Name
official cal
intermediary net/minecraft/class_5547
named net/minecraft/block/Degradable
  • Field Details

    • field_31056

      static final int field_31056
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official s_ Lcal;s_:I
      intermediary field_31056 Lnet/minecraft/class_5547;field_31056:I
      named field_31056 Lnet/minecraft/block/Degradable;field_31056:I
  • Method Details

    • getDegradationResult

      Optional<BlockState> getDegradationResult(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcal;a(Lcks;)Ljava/util/Optional;
      intermediary method_31639 Lnet/minecraft/class_5547;method_31639(Lnet/minecraft/class_2680;)Ljava/util/Optional;
      named getDegradationResult Lnet/minecraft/block/Degradable;getDegradationResult(Lnet/minecraft/block/BlockState;)Ljava/util/Optional;
    • getDegradationChanceMultiplier

      float getDegradationChanceMultiplier()
      Mappings:
      Namespace Name Mixin selector
      official a Lcal;a()F
      intermediary method_33620 Lnet/minecraft/class_5547;method_33620()F
      named getDegradationChanceMultiplier Lnet/minecraft/block/Degradable;getDegradationChanceMultiplier()F
    • tickDegradation

      default void tickDegradation(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a_ Lcal;a_(Lcks;Labr;Lgg;Ljava/util/Random;)V
      intermediary method_33621 Lnet/minecraft/class_5547;method_33621(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named tickDegradation Lnet/minecraft/block/Degradable;tickDegradation(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • getDegradationLevel

      T getDegradationLevel()
      Mappings:
      Namespace Name Mixin selector
      official b Lcal;b()Ljava/lang/Enum;
      intermediary method_33622 Lnet/minecraft/class_5547;method_33622()Ljava/lang/Enum;
      named getDegradationLevel Lnet/minecraft/block/Degradable;getDegradationLevel()Ljava/lang/Enum;
    • tryDegrade

      default void tryDegrade(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official c Lcal;c(Lcks;Labr;Lgg;Ljava/util/Random;)V
      intermediary method_33623 Lnet/minecraft/class_5547;method_33623(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named tryDegrade Lnet/minecraft/block/Degradable;tryDegrade(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V