File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed
src/main/java/org/spongepowered/api Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 2525package org .spongepowered .api .registry ;
2626
2727import org .spongepowered .api .ResourceKey ;
28+ import org .spongepowered .api .tag .Tag ;
2829import org .spongepowered .api .util .annotation .DoNotStore ;
2930
3031import java .util .Objects ;
3132import java .util .Optional ;
33+ import java .util .Set ;
3234import java .util .stream .Stream ;
3335
3436/**
@@ -120,6 +122,8 @@ default <V extends T> Optional<V> findValue(final RegistryKey<T> key) {
120122 */
121123 <V extends T > V value (ResourceKey key );
122124
125+ <V extends T > Set <V > taggedValues (Tag <T > key );
126+
123127 /**
124128 * {@link Registry#value(ResourceKey)}, provided for convenience when using {@link RegistryKey}.
125129 *
Original file line number Diff line number Diff line change 4848 * {@link BlockTypeTags#LOGS_THAT_BURN}</li>
4949 * </ul>
5050 */
51- public interface Tag <T > extends DefaultedRegistryValue , ResourceKeyed {
52-
53- /**
54- * Gets all values that are associated with this tag.
55- *
56- * @return All tag values
57- */
58- Collection <T > values ();
59-
60- /**
61- * Gets whether this tag contains the supplied value.
62- *
63- * @param value Value to check
64- * @return Whether the value is contained in this tag.
65- */
66- boolean contains (T value );
51+ public interface Tag <T > extends ResourceKeyed {
6752
6853}
You can’t perform that action at this time.
0 commit comments