Started Zombie Generators #114
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#114
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/1.19.x"
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?
Description
I started working on the zombie generators (zombie / franken / ender) as a starting point for implementing all basic generators (issue #27). I'm not sure why the fluid capacity is not fully working here but works for Fluid Tank (cannot push any fluid using mekanism fluid conduits).
Closes #139
Todo
Checklist:
If I were to guess for the fluid input, it's cause the IOConfig right now is probably not pulling in anything.
Nice work for your first contribution to Ender IO, thank you! Just left you a few comments to get you started :)
@ -69,7 +69,7 @@ public class XPVacuumBlockEntity extends VacuumMachineEntity<ExperienceOrb> {@Overridepublic void load(CompoundTag pTag) {Why was this modified?
@ -0,0 +24,4 @@import static com.enderio.base.common.init.EIOFluids.DEW_OF_THE_VOID;import static com.enderio.base.common.init.EIOFluids.NUTRIENT_DISTILLATION;public class ZombieGeneratorBlockEntity extends PowerGeneratingMachineEntity {Maybe rename this to something along these lines to make slightly more sense? And also for clarity, make this an abstract class and the default behaviour another subclass :)
@ -0,0 +35,4 @@public ZombieGeneratorBlockEntity(QuadraticScalable capacity, QuadraticScalable transfer, QuadraticScalable use, BlockEntityType<?> type,BlockPos worldPosition, BlockState blockState) {super(capacity, transfer, use, type, worldPosition, blockState);fluidTank = new FluidTank(10000) {Could we store this 10,000 as a constant in this file or a config value? This goes for any of the magic numbers in here :)
@ -30,6 +30,15 @@ public class MachineBlockEntities {MachineBlocks.CREATIVE_POWER);This class shouldn't be double nested.
@ -0,0 +9,4 @@import org.apache.logging.log4j.LogManager;import org.jetbrains.annotations.Nullable;public class ZombieGeneratorMenu extends MachineMenu<ZombieGeneratorBlockEntity> {The same rename can be applied to these classes again to aid visibility.
@ -69,7 +69,7 @@ public class XPVacuumBlockEntity extends VacuumMachineEntity<ExperienceOrb> {@Overridepublic void load(CompoundTag pTag) {Isn't the NBT id supposed to be the same in saveAdditional() and load() ? It's "tank" in saveAdditional().
@ -69,7 +69,7 @@ public class XPVacuumBlockEntity extends VacuumMachineEntity<ExperienceOrb> {@Overridepublic void load(CompoundTag pTag) {Dang yeah it is, nice catch!
Just 2 small ones. I'm not sure what way we'll move with using the soul binder on them, but for now that's not a concern.
@ -0,0 +106,4 @@@Overridepublic void serverTick() {if (canAct() && isGenerating()) {Is the canAct() here not redundant?
@ -0,0 +140,4 @@return fluidTank;}public Fluid getFluidType() {It could be more useful to make this a predicate of fluidstack?
@ -0,0 +140,4 @@return fluidTank;}public Fluid getFluidType() {I actually don't know how to implement a predicate.
I looked at the 1.12 implementation and they had this getFluidType() method.
As one type of generator = one type of fluid, I think that makes sense to use this method.
Pull request closed