Search in sources :

Example 1 with ConnectedTextureBehaviour

use of com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour in project Create by Creators-of-Create.

the class CreateRegistrate method registerCTBehviour.

@OnlyIn(Dist.CLIENT)
private static void registerCTBehviour(Block entry, Supplier<ConnectedTextureBehaviour> behaviorSupplier) {
    ConnectedTextureBehaviour behavior = behaviorSupplier.get();
    CreateClient.MODEL_SWAPPER.getCustomBlockModels().register(entry.delegate, model -> new CTModel(model, behavior));
}
Also used : CTModel(com.simibubi.create.foundation.block.connected.CTModel) ConnectedTextureBehaviour(com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour) OnlyIn(net.minecraftforge.api.distmarker.OnlyIn)

Aggregations

CTModel (com.simibubi.create.foundation.block.connected.CTModel)1 ConnectedTextureBehaviour (com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour)1 OnlyIn (net.minecraftforge.api.distmarker.OnlyIn)1