Initial framework for Anointments
None added yet, but the registration is working now.
This commit is contained in:
parent
b3af1b8e77
commit
b86595beaa
13 changed files with 506 additions and 5 deletions
|
@ -0,0 +1,19 @@
|
|||
package wayoftime.bloodmagic.common.registration.impl;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import wayoftime.bloodmagic.anointment.Anointment;
|
||||
import wayoftime.bloodmagic.common.registration.WrappedDeferredRegister;
|
||||
|
||||
public class AnointmentDeferredRegister extends WrappedDeferredRegister<Anointment>
|
||||
{
|
||||
public AnointmentDeferredRegister(String modid)
|
||||
{
|
||||
super(modid, Anointment.class);
|
||||
}
|
||||
|
||||
public <AN extends Anointment> AnointmentRegistryObject<AN> register(String name, Supplier<? extends AN> sup)
|
||||
{
|
||||
return register(name, sup, AnointmentRegistryObject::new);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package wayoftime.bloodmagic.common.registration.impl;
|
||||
|
||||
import net.minecraftforge.fml.RegistryObject;
|
||||
import wayoftime.bloodmagic.anointment.Anointment;
|
||||
import wayoftime.bloodmagic.common.registration.WrappedRegistryObject;
|
||||
|
||||
public class AnointmentRegistryObject<AN extends Anointment> extends WrappedRegistryObject<AN>
|
||||
{
|
||||
public AnointmentRegistryObject(RegistryObject<AN> registryObject)
|
||||
{
|
||||
super(registryObject);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue