Fixed not being able to collect water from soggy cloud stairs

This commit is contained in:
Sollace 2024-10-08 15:10:06 +01:00
parent 73cab14bbb
commit 2318576539
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -12,10 +12,15 @@ import com.mojang.serialization.codecs.RecordCodecBuilder;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.StairsBlock;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.registry.Registries;
import net.minecraft.state.StateManager;
import net.minecraft.util.ActionResult;
import net.minecraft.util.Hand;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraft.world.WorldView;
public class SoggyCloudStairsBlock extends CloudStairsBlock implements Soakable {
@ -49,6 +54,12 @@ public class SoggyCloudStairsBlock extends CloudStairsBlock implements Soakable
return dryBlock.get().getPickStack(world, pos, state);
}
@Deprecated
@Override
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) {
return Soakable.tryCollectMoisture(state, world, pos, player, hand, hit);
}
@Nullable
@Override
public BlockState getStateWithMoisture(BlockState state, int moisture) {