83 lines
2.0 KiB
Java
83 lines
2.0 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.world.level.material;
|
|
|
|
import net.minecraft.core.BlockPos;
|
|
import net.minecraft.core.Direction;
|
|
import net.minecraft.world.item.Item;
|
|
import net.minecraft.world.item.Items;
|
|
import net.minecraft.world.level.BlockGetter;
|
|
import net.minecraft.world.level.LevelReader;
|
|
import net.minecraft.world.level.block.Blocks;
|
|
import net.minecraft.world.level.block.state.BlockState;
|
|
import net.minecraft.world.level.material.Fluid;
|
|
import net.minecraft.world.level.material.FluidState;
|
|
import net.minecraft.world.phys.Vec3;
|
|
import net.minecraft.world.phys.shapes.Shapes;
|
|
import net.minecraft.world.phys.shapes.VoxelShape;
|
|
|
|
public class EmptyFluid
|
|
extends Fluid {
|
|
@Override
|
|
public Item getBucket() {
|
|
return Items.AIR;
|
|
}
|
|
|
|
@Override
|
|
public boolean canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public Vec3 getFlow(BlockGetter level, BlockPos pos, FluidState fluidState) {
|
|
return Vec3.ZERO;
|
|
}
|
|
|
|
@Override
|
|
public int getTickDelay(LevelReader level) {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
protected boolean isEmpty() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
protected float getExplosionResistance() {
|
|
return 0.0f;
|
|
}
|
|
|
|
@Override
|
|
public float getHeight(FluidState fluidState, BlockGetter level, BlockPos pos) {
|
|
return 0.0f;
|
|
}
|
|
|
|
@Override
|
|
public float getOwnHeight(FluidState fluidState) {
|
|
return 0.0f;
|
|
}
|
|
|
|
@Override
|
|
protected BlockState createLegacyBlock(FluidState fluidState) {
|
|
return Blocks.AIR.defaultBlockState();
|
|
}
|
|
|
|
@Override
|
|
public boolean isSource(FluidState fluidState) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public int getAmount(FluidState fluidState) {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public VoxelShape getShape(FluidState state, BlockGetter level, BlockPos pos) {
|
|
return Shapes.empty();
|
|
}
|
|
}
|
|
|