my code in intellij has no errors, but when I try and run it I get:
Registry Object not present: nightfuel:bullet_projectile
I though I registered it in the same class as the entity register:
public class EntityList {
public static final DeferredRegister<EntityType<?>> ENTITIES =
DeferredRegister.create (ForgeRegistries.ENTITIES, NightFuel.MOD_ID);
public static final RegistryObject<EntityType<BulletEntity>>
BULLET_PROJECTILE = ENTITIES.register("bullet_projectile",
()-> EntityType.Builder.<BulletEntity>create(BulletEntity::new, EntityClassification.MISC)
.size(0.25F, 0.25F).build("bullet_projectile"));
the actual class of my entity:
public class BulletEntity extends ProjectileItemEntity {
public BulletEntity(EntityType<BulletEntity> type, World world) {
super(type, world);
}
public BulletEntity(LivingEntity entity, World world) {
super(EntityList.BULLET_PROJECTILE.get(), entity, world);
}
public BulletEntity(double x, double y, double z, World world) {
super(EntityList.BULLET_PROJECTILE.get(), x, y, z, world);
}
my code in intellij has no errors, but when I try and run it I get:
Registry Object not present: nightfuel:bullet_projectile
I though I registered it in the same class as the entity register:
does it need to be in the same class file?
that's the only thing I could think of