-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement locks #13
base: develop/1.14.x
Are you sure you want to change the base?
Implement locks #13
Conversation
src/api/java/com/teamacronymcoders/epos/api/locks/LockRegistry.java
Outdated
Show resolved
Hide resolved
src/api/java/com/teamacronymcoders/epos/api/locks/LockRegistry.java
Outdated
Show resolved
Hide resolved
src/main/java/com/teamacronymcoders/epos/locks/DefaultLocks.java
Outdated
Show resolved
Hide resolved
} else if (object instanceof FluidState) { | ||
return fromTags(((FluidState) object).getFluid().getTags()); | ||
} | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add support for EntityType tags (the final type of built in tag in MC that this doesn't already support)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're gonna do things regarding tags, you should add a way for an addon to register a Function<T,Tags>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By this do you mean that they would be registering a function such as Function<Item, Tag<Item>>
or what do you have in mind by this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I left a TODO to go back at some point and look into letting mods register other types of Tags as the system probably needs some work once we come up with more potential use cases.
src/api/java/com/teamacronymcoders/epos/api/locks/LockRegistry.java
Outdated
Show resolved
Hide resolved
src/api/java/com/teamacronymcoders/epos/api/locks/LockRegistry.java
Outdated
Show resolved
Hide resolved
src/api/java/com/teamacronymcoders/epos/api/locks/LockRegistry.java
Outdated
Show resolved
Hide resolved
src/main/java/com/teamacronymcoders/epos/locks/DefaultLocks.java
Outdated
Show resolved
Hide resolved
src/main/java/com/teamacronymcoders/epos/locks/keys/HungerLockKey.java
Outdated
Show resolved
Hide resolved
src/main/java/com/teamacronymcoders/epos/locks/keys/ItemLockKey.java
Outdated
Show resolved
Hide resolved
src/main/java/com/teamacronymcoders/epos/locks/keys/SaturationLockKey.java
Outdated
Show resolved
Hide resolved
src/main/java/com/teamacronymcoders/epos/locks/keys/harvest/HarvestLockKey.java
Outdated
Show resolved
Hide resolved
} else if (object instanceof FluidState) { | ||
return fromTags(((FluidState) object).getFluid().getTags()); | ||
} | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're gonna do things regarding tags, you should add a way for an addon to register a Function<T,Tags>
src/main/java/com/teamacronymcoders/epos/locks/keys/harvest/ToolHarvestLockKey.java
Outdated
Show resolved
Hide resolved
} else if (object instanceof FluidState) { | ||
return fromTags(((FluidState) object).getFluid().getTags()); | ||
} | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By this do you mean that they would be registering a function such as Function<Item, Tag<Item>>
or what do you have in mind by this.
…re code for arrays
7097401
to
d1f97f6
Compare
…can access it easier from another machine if I don't work on it more before then.
…has changed yet beyond fixing the compiler errors, a couple typos, moving the lock registry implementation details to not be part of the API and adjusting a couple things that check Items to check IItemProviders instead
No description provided.