Skip to content

Commit

Permalink
Remove some methods overrides that are the same as the super one
Browse files Browse the repository at this point in the history
  • Loading branch information
pupnewfster committed Apr 28, 2024
1 parent 05cff52 commit 5f8d9a9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ protected void applyImplicitComponents(@NotNull BlockEntity.DataComponentInput i
activeCooled = input.getOrDefault(GeneratorsDataComponents.ACTIVE_COOLED, activeCooled);
}

@Override
public boolean canBeMaster() {
return false;
}

@Override
public void nextMode() {
activeCooled = !activeCooled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import net.minecraft.world.Container;
import net.minecraft.world.inventory.Slot;
import net.minecraft.world.item.ItemStack;
import net.neoforged.neoforge.items.ItemHandlerHelper;
import org.jetbrains.annotations.NotNull;

public class InsertableSlot extends Slot implements IInsertableSlot {
Expand All @@ -13,11 +12,6 @@ public InsertableSlot(Container inventory, int index, int x, int y) {
super(inventory, index, x, y);
}

@Override
public int getMaxStackSize(ItemStack stack) {
return Math.min(getMaxStackSize(), stack.getMaxStackSize());
}

@NotNull
@Override
public ItemStack insertItem(@NotNull ItemStack stack, Action action) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import mekanism.api.chemical.ChemicalStack;
import mekanism.api.chemical.gas.Gas;
import mekanism.api.chemical.gas.GasStack;
import mekanism.api.chemical.infuse.IEmptyInfusionProvider;
import mekanism.api.chemical.infuse.InfuseType;
import mekanism.api.chemical.infuse.InfusionStack;
import mekanism.api.chemical.pigment.Pigment;
Expand Down Expand Up @@ -184,7 +183,7 @@ public MultiGasStackIngredient(List<GasStackIngredient> ingredients) {
}

public static class MultiInfusionStackIngredient extends MultiChemicalStackIngredient<InfuseType, InfusionStack, InfusionStackIngredient> implements
InfusionStackIngredient, IEmptyInfusionProvider {
InfusionStackIngredient {

//This must be lazy as the base stream codec isn't initialized until after this line happens
public static final StreamCodec<RegistryFriendlyByteBuf, MultiInfusionStackIngredient> STREAM_CODEC = NeoForgeStreamCodecs.lazy(() ->
Expand Down

0 comments on commit 5f8d9a9

Please sign in to comment.