Added BogeyStyleBuilder To Registrate

This commit is contained in:
Rabbitminers 2023-03-24 23:43:23 +00:00
parent 3dfb9e3b3b
commit 6d862290d7

View file

@ -16,8 +16,10 @@ import com.simibubi.create.CreateClient;
import com.simibubi.create.content.AllSections;
import com.simibubi.create.content.contraptions.fluids.VirtualFluid;
import com.simibubi.create.content.contraptions.relays.encased.CasingConnectivity;
import com.simibubi.create.content.logistics.trains.entity.BogeyStyle;
import com.simibubi.create.foundation.block.connected.CTModel;
import com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour;
import com.simibubi.create.foundation.utility.CreateRegistry;
import com.simibubi.create.foundation.utility.RegisteredObjects;
import com.tterrag.registrate.AbstractRegistrate;
import com.tterrag.registrate.builders.BlockBuilder;
@ -133,6 +135,14 @@ public class CreateRegistrate extends AbstractRegistrate<CreateRegistrate> {
(callback) -> CreateTileEntityBuilder.create(this, parent, name, callback, factory));
}
public <T extends BogeyStyle> BogeyStyleBuilder<T, CreateRegistrate> bogeyStyle(String name, T style) {
return this.bogeyStyle(self(), name, style);
}
public <T extends BogeyStyle, P> BogeyStyleBuilder<T, P> bogeyStyle(P parent, String name, T style) {
return this.entry(name, (callback) -> BogeyStyleBuilder.create(this, parent, name, callback, style));
}
@Override
public <T extends Entity> CreateEntityBuilder<T, CreateRegistrate> entity(String name,
EntityType.EntityFactory<T> factory, MobCategory classification) {