    001package net.minecraft.dispenser;
    002
    003public class RegistryDefaulted extends RegistrySimple
    004{
    005    /**
    006     * Default object for this registry, returned when an object is not found.
    007     */
    008    private final Object defaultObject;
    009
    010    public RegistryDefaulted(Object par1Obj)
    011    {
    012        this.defaultObject = par1Obj;
    013    }
    014
    015    public Object func_82594_a(Object par1Obj)
    016    {
    017        Object object1 = super.func_82594_a(par1Obj);
    018        return object1 == null ? this.defaultObject : object1;
    019    }
    020}