    001    package net.minecraft.dispenser;
    002
    003    public 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 var2 = super.func_82594_a(par1Obj);
    018            return var2 == null ? this.defaultObject : var2;
    019        }
    020    }