mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-25 06:27:41 +01:00
Added BogeyStyleBuilder To Registrate
This commit is contained in:
parent
3dfb9e3b3b
commit
6d862290d7
1 changed files with 10 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue