Update mappings.

This commit is contained in:
modmuss50 2022-02-19 17:05:08 +00:00
parent 0052b8d598
commit d1027f7d5e
8 changed files with 8 additions and 7 deletions
fabric-data-generation-api-v1
src
main
java/net/fabricmc/fabric/api/datagen/v1/provider
resources
testmod/java/net/fabricmc/fabric/test/datagen
template.accesswidener
fabric-dimensions-v1/src/testmod/java/net/fabricmc/fabric/test/dimension
fabric-mining-level-api-v1/src/main/java/net/fabricmc/fabric/api/mininglevel/v1
fabric-resource-conditions-api-v1/src/main/java/net/fabricmc/fabric/impl/resource/conditions
gradle.properties

View file

@ -378,7 +378,7 @@ public abstract class FabricTagProvider<T> extends AbstractTagProvider<T> {
* @return the {@link FabricTagBuilder} instance
*/
@SafeVarargs
public final FabricTagBuilder<T> add(RegistryKey<? extends T>... registryKeys) {
public final FabricTagBuilder<T> add(RegistryKey<T>... registryKeys) {
for (RegistryKey<? extends T> registryKey : registryKeys) {
add(registryKey);
}

View file

@ -25,6 +25,7 @@ transitive-accessible method net/minecraft/data/client/TextureKey of (Ljava
transitive-accessible method net/minecraft/data/client/TextureKey of (Ljava/lang/String;Lnet/minecraft/data/client/TextureKey;)Lnet/minecraft/data/client/TextureKey;
transitive-extendable method net/minecraft/data/server/AbstractTagProvider getOutput (Lnet/minecraft/util/Identifier;)Ljava/nio/file/Path;
transitive-extendable method net/minecraft/data/server/AbstractTagProvider$ObjectBuilder add ([Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/data/server/AbstractTagProvider$ObjectBuilder;
transitive-accessible method net/minecraft/data/server/RecipeProvider saveRecipe (Lnet/minecraft/data/DataCache;Lcom/google/gson/JsonObject;Ljava/nio/file/Path;)V
transitive-accessible method net/minecraft/data/server/RecipeProvider saveRecipeAdvancement (Lnet/minecraft/data/DataCache;Lcom/google/gson/JsonObject;Ljava/nio/file/Path;)V

View file

@ -169,7 +169,7 @@ public class DataGeneratorTestEntrypoint implements DataGeneratorEntrypoint {
@Override
protected void generateTags() {
FabricTagBuilder<Biome> builder = getOrCreateTagBuilder(TagKey.intern(Registry.BIOME_KEY, new Identifier(MOD_ID, "biome_tag_test")))
FabricTagBuilder<Biome> builder = getOrCreateTagBuilder(TagKey.of(Registry.BIOME_KEY, new Identifier(MOD_ID, "biome_tag_test")))
.add(BiomeKeys.BADLANDS, BiomeKeys.BAMBOO_JUNGLE)
.add(BiomeKeys.BASALT_DELTAS);

View file

@ -25,3 +25,4 @@ transitive-accessible method net/minecraft/data/client/TextureKey of (Ljava
transitive-accessible method net/minecraft/data/client/TextureKey of (Ljava/lang/String;Lnet/minecraft/data/client/TextureKey;)Lnet/minecraft/data/client/TextureKey;
transitive-extendable method net/minecraft/data/server/AbstractTagProvider getOutput (Lnet/minecraft/util/Identifier;)Ljava/nio/file/Path;
transitive-extendable method net/minecraft/data/server/AbstractTagProvider$ObjectBuilder add ([Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/data/server/AbstractTagProvider$ObjectBuilder;

View file

@ -118,6 +118,6 @@ public class VoidChunkGenerator extends ChunkGenerator {
}
@Override
public void method_40450(List<String> list, BlockPos blockPos) {
public void getDebugHudText(List<String> list, BlockPos blockPos) {
}
}

View file

@ -46,6 +46,6 @@ public final class FabricMineableTags {
}
private static TagKey<Block> register(String id) {
return TagKey.intern(Registry.BLOCK_KEY, new Identifier("fabric", id));
return TagKey.of(Registry.BLOCK_KEY, new Identifier("fabric", id));
}
}

View file

@ -130,8 +130,7 @@ public class ResourceConditionsImpl {
for (JsonElement element : array) {
if (element.isJsonPrimitive()) {
Identifier id = new Identifier(element.getAsString());
// TODO 22w06a check me later
TagKey<T> tag = TagKey.intern(registryKey, id);
TagKey<T> tag = TagKey.of(registryKey, id);
Registry<T> registry = (Registry<T>) Registry.REGISTRIES.get(registryKey.getValue());
if (!registry.containsTag(tag)) {

View file

@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx2560M
version=0.47.4
minecraft_version=1.18.2-pre1
yarn_version=+build.2
yarn_version=+build.6
loader_version=0.13.2
prerelease=true