/* * Decompiled with CFR 0.152. */ package net.minecraft.server.packs; import java.util.Map; import net.minecraft.server.packs.metadata.MetadataSectionType; public class BuiltInMetadata { private static final BuiltInMetadata EMPTY = new BuiltInMetadata(Map.of()); private final Map, ?> values; private BuiltInMetadata(Map, ?> values) { this.values = values; } public T get(MetadataSectionType section) { return (T)this.values.get(section); } public static BuiltInMetadata of() { return EMPTY; } public static BuiltInMetadata of(MetadataSectionType k, T v) { return new BuiltInMetadata(Map.of(k, v)); } public static BuiltInMetadata of(MetadataSectionType k1, T1 v1, MetadataSectionType k2, T2 v2) { return new BuiltInMetadata(Map.of(k1, v1, k2, v2)); } }