Package net.minecraft.tags
Class Tag.Builder
java.lang.Object
net.minecraft.tags.Tag.Builder
- All Implemented Interfaces:
IForgeRawTagBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<Tag.BuilderEntry>
private final List<Tag.BuilderEntry>
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(Tag.BuilderEntry p_13306_) addElement
(ResourceLocation p_13328_, String p_13329_) addFromJson
(com.google.gson.JsonObject p_13313_, String p_13314_) addOptionalElement
(ResourceLocation p_144380_, String p_144381_) addOptionalTag
(ResourceLocation p_144383_, String p_144384_) addTag
(ResourceLocation p_13336_, String p_13337_) <T> com.mojang.datafixers.util.Either<Collection<Tag.BuilderEntry>,
Tag<T>> build
(Function<ResourceLocation, Tag<T>> p_144372_, Function<ResourceLocation, T> p_144373_) FORGE: Gets a view of this builder's "remove" entries (only used during datagen)private static Tag.Entry
parseEntry
(com.google.gson.JsonElement p_13311_) remove
(Tag.BuilderEntry proxy) replace()
replace
(boolean value) com.google.gson.JsonObject
static Tag.Builder
tag()
void
visitOptionalDependencies
(Consumer<ResourceLocation> p_144375_) void
visitRequiredDependencies
(Consumer<ResourceLocation> p_144367_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeRawTagBuilder
getRawBuilder, remove, removeElement, removeTag, serializeTagAdditions
-
Field Details
-
removeEntries
-
entries
-
replace
private boolean replace
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getRemoveEntries
FORGE: Gets a view of this builder's "remove" entries (only used during datagen) -
remove
-
tag
-
add
-
add
-
addElement
-
addOptionalElement
-
addTag
-
addOptionalTag
-
replace
-
replace
-
build
public <T> com.mojang.datafixers.util.Either<Collection<Tag.BuilderEntry>,Tag<T>> build(Function<ResourceLocation, Tag<T>> p_144372_, Function<ResourceLocation, T> p_144373_) -
getEntries
-
visitRequiredDependencies
-
visitOptionalDependencies
-
addFromJson
-
parseEntry
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()
-