Class SpreadableBlock

All Implemented Interfaces:
ItemConvertible
Direct Known Subclasses:
GrassBlock, MyceliumBlock

public abstract class SpreadableBlock
extends SnowyBlock
Mappings:
Namespace Name
official cdk
intermediary net/minecraft/class_2500
named net/minecraft/block/SpreadableBlock
  • Constructor Details

    • SpreadableBlock

      protected SpreadableBlock​(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lchs;<init>(Lchs$c;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • canSurvive

      private static boolean canSurvive​(BlockState state, WorldView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lcdk;b(Lcht;Lbty;Lfx;)Z
      intermediary method_10614 Lnet/minecraft/class_2500;method_10614(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      named canSurvive Lnet/minecraft/block/SpreadableBlock;canSurvive(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
    • canSpread

      private static boolean canSpread​(BlockState state, WorldView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c Lcdk;c(Lcht;Lbty;Lfx;)Z
      intermediary method_10613 Lnet/minecraft/class_2500;method_10613(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      named canSpread Lnet/minecraft/block/SpreadableBlock;canSpread(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
    • randomTick

      public void randomTick​(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      randomTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lchs;b(Lcht;Laav;Lfx;Ljava/util/Random;)V
      intermediary method_9514 Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named randomTick Lnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V