Class NetherWartBlockMixin
java.lang.Object
dev.jaxydog.astral.mixin.bonemeal.NetherWartBlockMixin
Implements the
Fertilizable interface.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanimpl$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.voidimpl$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.booleanimpl$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.
-
Constructor Details
-
NetherWartBlockMixin
public NetherWartBlockMixin()
-
-
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
-