public class TagContainer<T> extends Object
Modifier and Type | Field and Description |
---|---|
private String |
dataType |
private BiMap<Identifier,Tag<T>> |
entries |
private String |
entryType |
private Tag<T> |
field_23691 |
private Function<Identifier,Optional<T>> |
getter |
private static Gson |
GSON |
private static int |
JSON_EXTENSION_LENGTH |
private static Logger |
LOGGER |
Constructor and Description |
---|
TagContainer(Function<Identifier,Optional<T>> getter,
String dataType,
String string) |
Modifier and Type | Method and Description |
---|---|
void |
applyReload(Map<Identifier,Tag.Builder> map) |
Tag<T> |
get(Identifier id) |
Map<Identifier,Tag<T>> |
getEntries() |
Collection<Identifier> |
getKeys() |
Tag<T> |
getOrCreate(Identifier id) |
Collection<Identifier> |
getTagsFor(T object) |
Identifier |
method_26796(Tag<T> tag) |
Identifier |
method_26798(Tag<T> tag) |
Tag<T> |
method_27068() |
CompletableFuture<Map<Identifier,Tag.Builder>> |
prepareReload(ResourceManager manager,
Executor executor) |
protected void |
setEntries(Map<Identifier,Tag<T>> entries) |
private static final Logger LOGGER
private static final Gson GSON
private static final int JSON_EXTENSION_LENGTH
private BiMap<Identifier,Tag<T>> entries
private final Function<Identifier,Optional<T>> getter
private final String dataType
private final String entryType
@Nullable public Tag<T> get(Identifier id)
public Tag<T> getOrCreate(Identifier id)
@Nullable public Identifier method_26796(Tag<T> tag)
public Identifier method_26798(Tag<T> tag)
public Collection<Identifier> getKeys()
@Environment(value=CLIENT) public Collection<Identifier> getTagsFor(T object)
public CompletableFuture<Map<Identifier,Tag.Builder>> prepareReload(ResourceManager manager, Executor executor)
public void applyReload(Map<Identifier,Tag.Builder> map)
protected void setEntries(Map<Identifier,Tag<T>> entries)
public Map<Identifier,Tag<T>> getEntries()