2021-07-09 22:24:26 +02:00
|
|
|
package com.jozufozu.flywheel.vanilla;
|
|
|
|
|
|
|
|
import com.jozufozu.flywheel.backend.instancing.InstancedRenderRegistry;
|
|
|
|
|
|
|
|
import net.minecraft.tileentity.TileEntityType;
|
|
|
|
|
|
|
|
public class VanillaInstances {
|
|
|
|
|
|
|
|
public static void init() {
|
|
|
|
InstancedRenderRegistry r = InstancedRenderRegistry.getInstance();
|
|
|
|
|
|
|
|
r.tile(TileEntityType.CHEST)
|
|
|
|
.setSkipRender(true)
|
|
|
|
.factory(ChestInstance::new)
|
2021-07-10 20:33:01 +02:00
|
|
|
.register();
|
|
|
|
r.tile(TileEntityType.ENDER_CHEST)
|
|
|
|
.setSkipRender(true)
|
|
|
|
.factory(ChestInstance::new)
|
|
|
|
.register();
|
|
|
|
r.tile(TileEntityType.TRAPPED_CHEST)
|
|
|
|
.setSkipRender(true)
|
|
|
|
.factory(ChestInstance::new)
|
|
|
|
.register();
|
2021-07-09 22:24:26 +02:00
|
|
|
}
|
|
|
|
}
|