Add Crafter #99
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#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/crafter"
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
Add Crafter
Todo
IO configChecklist:
@ -0,0 +1,177 @@package com.enderio.machines.common.blockentity;don't use a NonNullLIst, rather code this against the queue interface with an ArrayDeque as impl
extract this to a tryCraftItem method
make sure that no empty stack is added to the deque instead of removing all empty itemstacks each tick
do this check by calling ItemStack#isSameItemSameTags
just use else, because the canMergeOutput does this check implicitly
also grow by the size of the outputbuffer itemstack
nope, not necessary
@ -0,0 +88,4 @@public void serverTick() {tryCraft();super.serverTick();processOutputBuffer();move processOutputBuffer call to after the super.serverTick to push something into the outputslot directly after the machine has pushed it's content
@ -291,7 +291,7 @@ public class MachineInventoryLayout {}/**fix javadoc to imply multiple slots
@ -0,0 +1,177 @@package com.enderio.machines.common.blockentity;Just change
sameItem()toisSameItemSameTags()?@ -0,0 +1,177 @@package com.enderio.machines.common.blockentity;Yep
@ -291,7 +291,7 @@ public class MachineInventoryLayout {}/**I don't understand. Can you reiterate ?
@ -0,0 +88,4 @@public void serverTick() {tryCraft();super.serverTick();processOutputBuffer();I have moved this down. Is it fine now ?
@ -291,7 +291,7 @@ public class MachineInventoryLayout {}/**Some of the builder methods have javadoc that says adds a ghost slot (so singular) while having an int parameter for the amount of fields. Change the javadoc of those methods to plural
@ -291,7 +291,7 @@ public class MachineInventoryLayout {}/**Understood. input and output slots have them. Storage and ghost don't. Should I change them as well ?
@ -291,7 +291,7 @@ public class MachineInventoryLayout {}/**Yeah, all things that allow multipls slots should be written in plural
@ -0,0 +1,177 @@package com.enderio.machines.common.blockentity;I have changed the type. The old method calls seem to work fine (changed the required ones). Let me know if I need to make more changes
codewise this looks good, will do some ingame check next
do you want to wait for slotaccess to be merged into and rebase your stuff onto it or should we merge this and I'll change the crafter to use slot access
This PR is not ready to be merged as of now (I have few todos on the top. ) Also I will like to wait for slotaccess and hopefully IO config as well