Class TagBuilder
java.lang.Object
net.minecraft.tags.TagBuilder
- All Implemented Interfaces:
ITagBuilderExtension
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddElement(Identifier id) addTag(Identifier id) build()static TagBuildercreate()Neo: Returns the entries to be removed from this tag.Neo: Add an entry to be removed from this tag in datagen.replace()Neo: Shorthand forsetReplace(true).setReplace(boolean replace) booleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ITagBuilderExtension
removeElement, removeTag
-
Field Details
-
entries
-
replace
private boolean replace -
removeEntries
-
-
Constructor Details
-
TagBuilder
public TagBuilder()
-
-
Method Details
-
create
-
build
-
shouldReplace
public boolean shouldReplace() -
setReplace
-
add
-
addElement
-
addOptionalElement
-
addTag
-
addOptionalTag
-
remove
Neo: Add an entry to be removed from this tag in datagen.- Parameters:
entry- The entry to be removed
-
replace
Neo: Shorthand forsetReplace(true). -
getRemoveEntries
-