Fluid tank branch (Third time's the charm??) #121
No reviewers
Labels
No labels
Area-Assets
Area-Backend
Area-Conduits
Area-Datapacks
Area-Lang
Area-Mod Compat
Area-Parity
Area-Rendering
Good first issue
MC-1.19.2
MC-1.20.1
MC-1.20.4
MC-1.20.6
MC-1.21
MC-1.21.1
Modtoberfest
P-0-High
P-1-Medium
P-2-Low
Status-Awaiting Response
Status-Behind-Flag
Status-Blocked
Status-Cannot Reproduce
Status-Duplicate
Status-Help Wanted
Status-Incomplete Report
Status-Invalid
Status-Needs LTS Backport
Status-Needs Updating
Status-Stale
Status-To Implement
Status-Triage
Status-Wontfix
Status-Wontmerge
Type-Backport
Type-Bug
Type-Documentation
Type-Enhancement
Type-Question
Type-RFC
Type-Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Team-EnderIO/EnderIO#121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fluid-tank-branch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hopefully this is the last time I'll have to create a new PR for this. Like in #113 & #111
Checklist:
@ -0,0 +1,251 @@package com.enderio.machines.common.io.fluid;this is the deafult implementation, remove it
those can be simplified, as getAmount will return 0 in that case, so the 2 branches are identical. just use the bottom one.
@ -0,0 +125,4 @@//Same as parent behavior with the addition of this class capabilities, see method 'fill' above for details.public int fill(int desiredAmount, FluidAction action, boolean force) {if (fluid.isEmpty()) {EnderIO.LOGGER.error("No fluid in tank, can't contain an amount of unspecified fluid other than 0");also return here
@ -26,4 +55,67 @@ public class FluidTankItem extends BlockItem {}non constant variables don't start with a capital letter
@ -1,9 +1,15 @@package com.enderio.base.common.blockentity;import com.enderio.api.UseOnly;import net.minecraft.world.InteractionResult;remove comment, add annotation
@ -48,6 +48,8 @@ public class EIOLang {public static final Component REDSTONE_ACTIVE_WITHOUT_SIGNAL = REGISTRATE.addLang("gui", EnderIO.loc("redstone.active_without_signal"), "Active without signal");public static final Component REDSTONE_NEVER_ACTIVE = REGISTRATE.addLang("gui", EnderIO.loc("redstone.never_active"), "Never active");Going to update to 1.19.4 and resolve comments above :)
Thank you!!