Interface Degradable<T extends Enum<T>>

All Known Subinterfaces:
Oxidizable
All Known Implementing Classes:
OxidizableBlock, OxidizableBulbBlock, OxidizableDoorBlock, OxidizableGrateBlock, OxidizableSlabBlock, OxidizableStairsBlock, OxidizableTrapdoorBlock

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

    • DEGRADING_RANGE

      static final int DEGRADING_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official x_ Lcxr;x_:I
      intermediary field_31056 Lnet/minecraft/class_5547;field_31056:I
      named DEGRADING_RANGE Lnet/minecraft/block/Degradable;DEGRADING_RANGE:I
  • Method Details

    • getDegradationResult

      Optional<BlockState> getDegradationResult(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official i_ Lcxr;i_(Ldjh;)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 aw_ Lcxr;aw_()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_ Lcxr;a_(Ldjh;Land;Lhx;Lauv;)V
      intermediary method_54764 Lnet/minecraft/class_5547;method_54764(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
      named tickDegradation Lnet/minecraft/block/Degradable;tickDegradation(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
    • getDegradationLevel

      T getDegradationLevel()
      Mappings:
      Namespace Name Mixin selector
      official c Lcxr;c()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 Optional<BlockState> tryDegrade(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official c Lcxr;c(Ldjh;Land;Lhx;Lauv;)Ljava/util/Optional;
      intermediary method_54765 Lnet/minecraft/class_5547;method_54765(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Ljava/util/Optional;
      named tryDegrade Lnet/minecraft/block/Degradable;tryDegrade(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Ljava/util/Optional;