net.minecraft.server.RegistryMaterials Maven / Gradle / Ivy
package net.minecraft.server;
import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
import java.util.Iterator;
import java.util.Map;
public class RegistryMaterials extends RegistrySimple implements Registry {
protected final RegistryID a = new RegistryID<>();
protected final Map b;
public RegistryMaterials() {
this.b = ((BiMap) this.c).inverse();
}
public void a(int i, K k0, V v0) {
this.a.a(v0, i);
this.a(k0, v0);
}
protected Map b() {
return HashBiMap.create();
}
public V get(K k0) {
return super.get(k0);
}
public K c(V v0) {
return this.b.get(v0);
}
public boolean d(K k0) {
return super.d(k0);
}
public int b(V v0) {
return this.a.b(v0);
}
public V a(int i) {
return this.a.a(i);
}
public Iterator iterator() {
return this.a.iterator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy