All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minecraft.server.RegistryBlocks Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package net.minecraft.server;

import org.apache.commons.lang3.Validate;

public class RegistryBlocks extends RegistryMaterials {

  private final K d;
  private V e;

  public RegistryBlocks(K k0) {
    this.d = k0;
  }

  public void a(int i, K k0, V v0) {
    if (this.d.equals(k0)) {
      this.e = v0;
    }

    super.a(i, k0, v0);
  }

  public void a() {
    Validate.notNull(this.d);
  }

  public V get(K k0) {
    V object = super.get(k0);

    return object == null ? this.e : object;
  }

  public V a(int i) {
    V object = super.a(i);

    return object == null ? this.e : object;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy