mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 12:33:57 +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
@ -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 New Issue
Block a user