Skip to content

Commit

Permalink
fixed method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Jul 22, 2023
1 parent e3a62d4 commit a3c699f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions common/src/main/java/tesseract/FluidPlatformUtils.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package tesseract;

import dev.architectury.injectables.annotations.ExpectPlatform;
import earth.terrarium.botarium.common.fluid.base.FluidContainer;
import earth.terrarium.botarium.common.fluid.base.FluidHolder;
import earth.terrarium.botarium.common.fluid.base.PlatformFluidHandler;
import earth.terrarium.botarium.common.fluid.base.PlatformFluidItemHandler;
Expand All @@ -12,13 +11,10 @@
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.sounds.SoundSource;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.material.Fluid;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.function.Consumer;
import java.util.function.Predicate;

Expand Down Expand Up @@ -145,8 +141,8 @@ public static boolean fillItemFromContainer(ItemStack stack, PlatformFluidHandle
return fillItemFromContainer(stack, handler, s -> true, consumer);
}

public static boolean emptyItemintoContainer(ItemStack stack, PlatformFluidHandler handler, Consumer<ItemStack> consumer){
return emptyItemintoContainer(stack, handler, s -> true, consumer);
public static boolean emptyItemIntoContainer(ItemStack stack, PlatformFluidHandler handler, Consumer<ItemStack> consumer){
return emptyItemIntoContainer(stack, handler, s -> true, consumer);
}

public static boolean fillItemFromContainer(ItemStack stack, PlatformFluidHandler handler, Predicate<ItemStack> tester, Consumer<ItemStack> consumer){
Expand All @@ -171,7 +167,7 @@ public static boolean fillItemFromContainer(ItemStack stack, PlatformFluidHandle
return false;
}

public static boolean emptyItemintoContainer(ItemStack stack, PlatformFluidHandler handler, Predicate<ItemStack> tester, Consumer<ItemStack> consumer){
public static boolean emptyItemIntoContainer(ItemStack stack, PlatformFluidHandler handler, Predicate<ItemStack> tester, Consumer<ItemStack> consumer){
PlatformFluidItemHandler itemHandler = FluidHooks.safeGetItemFluidManager(stack.copy()).orElse(null);
if (itemHandler == null) return false;
for (int i = 0; i < itemHandler.getTankAmount(); i++) {
Expand Down

0 comments on commit a3c699f

Please sign in to comment.