diff options
| author | shedaniel <daniel@shedaniel.me> | 2021-10-14 17:53:21 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2021-10-15 01:34:09 +0800 |
| commit | 9b579a395329fd8fa6cd33dcc2722e923cc31773 (patch) | |
| tree | 0e04139334a1cb0d6b788a82709936b7e56456d9 /runtime/src/main/java | |
| parent | 68fe2066bb702bedfcc97a01a44037da202ea85a (diff) | |
| download | RoughlyEnoughItems-9b579a395329fd8fa6cd33dcc2722e923cc31773.tar.gz RoughlyEnoughItems-9b579a395329fd8fa6cd33dcc2722e923cc31773.tar.bz2 RoughlyEnoughItems-9b579a395329fd8fa6cd33dcc2722e923cc31773.zip | |
Remove LBA compatibility, Add Fabric API compatibility
Update buildscripts and README
Update buildscripts and README
Diffstat (limited to 'runtime/src/main/java')
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/impl/common/compat/LBASupportPlugin.java | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/common/compat/LBASupportPlugin.java b/runtime/src/main/java/me/shedaniel/rei/impl/common/compat/LBASupportPlugin.java deleted file mode 100644 index 3aa364129..000000000 --- a/runtime/src/main/java/me/shedaniel/rei/impl/common/compat/LBASupportPlugin.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is licensed under the MIT License, part of Roughly Enough Items. - * Copyright (c) 2018, 2019, 2020, 2021 shedaniel - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package me.shedaniel.rei.impl.common.compat; - -import alexiil.mc.lib.attributes.fluid.FluidAttributes; -import alexiil.mc.lib.attributes.fluid.GroupedFluidInvView; -import alexiil.mc.lib.attributes.fluid.amount.FluidAmount; -import me.shedaniel.architectury.event.CompoundEventResult; -import me.shedaniel.architectury.utils.Fraction; -import me.shedaniel.rei.api.common.fluid.FluidSupportProvider; -import me.shedaniel.rei.api.common.plugins.REIServerPlugin; -import me.shedaniel.rei.api.common.util.EntryStacks; - -public class LBASupportPlugin implements REIServerPlugin { - @Override - public void registerFluidSupport(FluidSupportProvider support) { - support.register(entry -> { - GroupedFluidInvView view = FluidAttributes.GROUPED_INV_VIEW.get(entry.getValue()); - if (view.getStoredFluids().size() > 0) - return CompoundEventResult.interruptTrue(view.getStoredFluids().stream() - .filter(fluidKey -> !fluidKey.isEmpty() && fluidKey.getRawFluid() != null) - .map(fluidKey -> { - FluidAmount amount = view.getAmount_F(fluidKey); - return EntryStacks.of(fluidKey.getRawFluid(), Fraction.of(amount.numerator, amount.denominator)); - })); - return CompoundEventResult.pass(); - }); - } -} |
