mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-27 13:28:00 +01:00
Track API maybe?
Fix build - broken generic Not yet tested, but it is progress
This commit is contained in:
parent
2a59fd7e8a
commit
f7c56b867a
1 changed files with 3 additions and 1 deletions
|
@ -204,6 +204,8 @@ import com.simibubi.create.foundation.tileEntity.renderer.SmartTileEntityRendere
|
||||||
import com.tterrag.registrate.util.entry.BlockEntityEntry;
|
import com.tterrag.registrate.util.entry.BlockEntityEntry;
|
||||||
import com.tterrag.registrate.util.entry.BlockEntry;
|
import com.tterrag.registrate.util.entry.BlockEntry;
|
||||||
|
|
||||||
|
import net.minecraft.world.level.block.Block;
|
||||||
|
|
||||||
public class AllTileEntities {
|
public class AllTileEntities {
|
||||||
|
|
||||||
// Schematics
|
// Schematics
|
||||||
|
@ -783,7 +785,7 @@ public class AllTileEntities {
|
||||||
.tileEntity("track", TrackTileEntity::new)
|
.tileEntity("track", TrackTileEntity::new)
|
||||||
.instance(() -> TrackInstance::new)
|
.instance(() -> TrackInstance::new)
|
||||||
.renderer(() -> TrackRenderer::new)
|
.renderer(() -> TrackRenderer::new)
|
||||||
.validBlocks(TrackMaterial.allBlocks().toArray(new BlockEntry<?>[0]))
|
.validBlocks(((BlockEntry<? extends Block>[]) TrackMaterial.allBlocks().toArray(new BlockEntry[0])))
|
||||||
.register();
|
.register();
|
||||||
|
|
||||||
public static final BlockEntityEntry<FakeTrackTileEntity> FAKE_TRACK = REGISTRATE
|
public static final BlockEntityEntry<FakeTrackTileEntity> FAKE_TRACK = REGISTRATE
|
||||||
|
|
Loading…
Reference in a new issue