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/Degradableintermediary net/minecraft/class_5547official dgz
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfloatgetDegradationResult(BlockState state) default voidtickDegradation(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_RANGELnet/minecraft/block/Degradable;DEGRADING_RANGE:Iintermediary field_31056Lnet/minecraft/class_5547;field_31056:Iofficial y_Ldgz;y_:I
-
-
Method Details
-
getDegradationResult
- Mappings:
Namespace Name Mixin selector named getDegradationResultLnet/minecraft/block/Degradable;getDegradationResult(Lnet/minecraft/block/BlockState;)Ljava/util/Optional;intermediary method_31639Lnet/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 getDegradationChanceMultiplierLnet/minecraft/block/Degradable;getDegradationChanceMultiplier()Fintermediary method_33620Lnet/minecraft/class_5547;method_33620()Fofficial ay_Ldgz;ay_()F
-
tickDegradation
- Mappings:
Namespace Name Mixin selector named tickDegradationLnet/minecraft/block/Degradable;tickDegradation(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Vintermediary method_54764Lnet/minecraft/class_5547;method_54764(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vofficial a_Ldgz;a_(Ldtc;Laqu;Ljd;Layw;)V
-
getDegradationLevel
T getDegradationLevel()- Mappings:
Namespace Name Mixin selector named getDegradationLevelLnet/minecraft/block/Degradable;getDegradationLevel()Ljava/lang/Enum;intermediary method_33622Lnet/minecraft/class_5547;method_33622()Ljava/lang/Enum;official cLdgz;c()Ljava/lang/Enum;
-
tryDegrade
default Optional<BlockState> tryDegrade(BlockState state, ServerWorld world, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector named tryDegradeLnet/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_54765Lnet/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 cLdgz;c(Ldtc;Laqu;Ljd;Layw;)Ljava/util/Optional;
-