-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Minecraft Tags #7127
base: dev/feature
Are you sure you want to change the base?
Minecraft Tags #7127
Conversation
src/main/java/org/skriptlang/skript/bukkit/tags/CondIsTagged.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/bukkit/tags/ExprTagContents.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/bukkit/tags/ExprTagContents.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/bukkit/tags/ExprTagContents.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/bukkit/tags/CondIsTagged.java
Outdated
Show resolved
Hide resolved
paper's material/entity tags, get all tags of something
… into feature/block-tags
Tests are kept deliberately small due to the volatile nature of tag contents.
src/main/java/org/skriptlang/skript/bukkit/tags/elements/ExprTag.java
Outdated
Show resolved
Hide resolved
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.
quick glance
src/main/java/org/skriptlang/skript/bukkit/tags/elements/CondIsTagged.java
Outdated
Show resolved
Hide resolved
return "tag \"" + tag.getKey() + "\""; | ||
} | ||
|
||
@Override | ||
public String toVariableNameString(Tag<?> tag) { | ||
return "tag: " + tag.getKey(); |
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.
Why can't the variable name and the string printed to string be the same output? Users will end up using a string for comparison by setting a variable to a string to be displayed in a way, and then use that same string for comparison.
Same issue was seen with itemtypes back in the day.
#4930
#1554
#913
Blueeyescat would find these alot https://github.com/SkriptLang/Skript/issues?q=is%3Aissue+author%3ABlueyescat
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.
I didn't think having quotes in an index would be very nice. Do you think that's a concern?
* Gets all the tags of a specific origin that are of a specific type. | ||
* @param origin The origin to filter by. | ||
* @param type The type of tags to get. | ||
* @return Tags from the given origin that are of the given type. |
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.
* @return Tags from the given origin that are of the given type. | |
* @return Iterable<Tag<T>> tags from the given origin that are of the given type. |
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.
What's the point of this? The return type is already part of the method signature, and this doesn't do anything special for javadocs.
src/main/java/org/skriptlang/skript/bukkit/tags/elements/ExprTagKey.java
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/bukkit/tags/elements/ExprTagsOf.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/bukkit/tags/elements/ExprTag.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/bukkit/tags/elements/ExprTagsOfType.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/bukkit/tags/elements/ExprTagsOfType.java
Outdated
Show resolved
Hide resolved
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.
It looks ok
Description
Adds support for minecraft's tag system.
Currently supports block, item, and entity type tags. Fluid and GameEvent are simple to add, but Fluid is useless and GameEvent is not in Skript just yet.
paper:name_settag
naturally. This converts them so the user sees and usespaper:name
.paper tag "wooden_doors"
to resolve topaper:wooden_doors
.Target Minecraft Versions: any
Requirements: none
Related Issues: #4924