Package net.minecraft.block
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 named net/minecraft/block/Degradable
intermediary net/minecraft/class_5547
official dgz
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getDegradationResult
(BlockState state) default void
tickDegradation
(BlockState state, ServerWorld world, BlockPos pos, Random random) default Optional
<BlockState> tryDegrade
(BlockState state, ServerWorld world, BlockPos pos, Random random)
-
Field Details
-
DEGRADING_RANGE
static final int DEGRADING_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named DEGRADING_RANGE
Lnet/minecraft/block/Degradable;DEGRADING_RANGE:I
intermediary field_31056
Lnet/minecraft/class_5547;field_31056:I
official y_
Ldgz;y_:I
-
-
Method Details
-
getDegradationResult
- Mappings:
Namespace Name Mixin selector named getDegradationResult
Lnet/minecraft/block/Degradable;getDegradationResult(Lnet/minecraft/block/BlockState;)Ljava/util/Optional;
intermediary method_31639
Lnet/minecraft/class_5547;method_31639(Lnet/minecraft/class_2680;)Ljava/util/Optional;
official i_
Ldgz;i_(Ldtc;)Ljava/util/Optional;
-
getDegradationChanceMultiplier
float getDegradationChanceMultiplier()- Mappings:
Namespace Name Mixin selector named getDegradationChanceMultiplier
Lnet/minecraft/block/Degradable;getDegradationChanceMultiplier()F
intermediary method_33620
Lnet/minecraft/class_5547;method_33620()F
official ay_
Ldgz;ay_()F
-
tickDegradation
- Mappings:
Namespace Name Mixin selector 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
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
official a_
Ldgz;a_(Ldtc;Laqu;Ljd;Layw;)V
-
getDegradationLevel
T getDegradationLevel()- Mappings:
Namespace Name Mixin selector named getDegradationLevel
Lnet/minecraft/block/Degradable;getDegradationLevel()Ljava/lang/Enum;
intermediary method_33622
Lnet/minecraft/class_5547;method_33622()Ljava/lang/Enum;
official c
Ldgz;c()Ljava/lang/Enum;
-
tryDegrade
default Optional<BlockState> tryDegrade(BlockState state, ServerWorld world, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector 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;
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;
official c
Ldgz;c(Ldtc;Laqu;Ljd;Layw;)Ljava/util/Optional;
-