Skip to content

Commit

Permalink
add nbt support for modern dynamics pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Jul 17, 2022
1 parent 0174133 commit 1c6bb69
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import dev.technici4n.moderndynamics.pipe.FluidPipeBlockEntity;
import lol.bai.megane.api.provider.FluidProvider;
import net.minecraft.fluid.Fluid;
import net.minecraft.nbt.NbtCompound;
import org.jetbrains.annotations.Nullable;

@SuppressWarnings("UnstableApiUsage")
Expand All @@ -26,6 +27,11 @@ public int getSlotCount() {
return host.getVariant().getFluid();
}

@Override
public @Nullable NbtCompound getNbt(int slot) {
return host.getVariant().getNbt();
}

@Override
public double getStored(int slot) {
return droplets(host.getAmount());
Expand Down

0 comments on commit 1c6bb69

Please sign in to comment.