Class SpreadBehaviors
java.lang.Object
io.github.vampirestudios.vampirelib.api.blockspreading.SpreadBehaviors
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddComplexSpreaderBehavior(net.minecraft.world.level.block.Block block, BlockSpreadingType type, SpreadingBehavior behavior) This method allows you to add a complex spreading behaviorstatic voidaddSimpleSpreaderBehavior(net.minecraft.world.level.block.Block block, BlockSpreadingType type) This method allows you to add a simple spreading behaviorstatic booleancanSpread(net.minecraft.world.level.block.state.BlockState state, BlockSpreadingType type) static net.minecraft.world.level.block.state.BlockStategetSpreadState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, BlockSpreadingType type)
-
Constructor Details
-
SpreadBehaviors
public SpreadBehaviors()
-
-
Method Details
-
addSimpleSpreaderBehavior
public static void addSimpleSpreaderBehavior(net.minecraft.world.level.block.Block block, BlockSpreadingType type) This method allows you to add a simple spreading behavior -
addComplexSpreaderBehavior
public static void addComplexSpreaderBehavior(net.minecraft.world.level.block.Block block, BlockSpreadingType type, SpreadingBehavior behavior) This method allows you to add a complex spreading behavior -
canSpread
public static boolean canSpread(net.minecraft.world.level.block.state.BlockState state, BlockSpreadingType type) -
getSpreadState
public static net.minecraft.world.level.block.state.BlockState getSpreadState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, BlockSpreadingType type)
-