Class CactusBlockMixin

java.lang.Object
dev.jaxydog.astral.mixin.bonemeal.CactusBlockMixin

public abstract class CactusBlockMixin extends Object
Implements the Fertilizable interface.
Since:
1.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    impl$canGrow(net.minecraft.world.World world, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
    Returns whether this block can be grown.
    void
    impl$grow(net.minecraft.server.world.ServerWorld world, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
    Grows this block.
    boolean
    impl$isFertilizable(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, boolean isClient)
    Returns whether the given block is fertilizable.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CactusBlockMixin

      public CactusBlockMixin()
  • Method Details

    • impl$isFertilizable

      public boolean impl$isFertilizable(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, boolean isClient)
      Returns whether the given block is fertilizable.
      Parameters:
      world - The current world.
      pos - The block position.
      state - The block state.
      isClient - Whether this is being run on the client.
      Returns:
      Whether the given block is fertilizable.
      Since:
      1.0.0
    • impl$canGrow

      public boolean impl$canGrow(net.minecraft.world.World world, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
      Returns whether this block can be grown.
      Parameters:
      world - The current world.
      random - The randomness instance.
      pos - The block position.
      state - The block state.
      Returns:
      Whether this block can be grown.
      Since:
      1.0.0
    • impl$grow

      public void impl$grow(net.minecraft.server.world.ServerWorld world, net.minecraft.util.math.random.Random random, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
      Grows this block.
      Parameters:
      world - The current world.
      random - The randomness instance.
      pos - The block position.
      state - The block state.
      Since:
      1.0.0