-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
1,418 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package co.q64.stars.block | ||
|
||
import net.minecraft.state.BooleanProperty | ||
|
||
object DarknessBlock : BaseBlock("darkness", hard) { | ||
val active: BooleanProperty = BooleanProperty.create("active") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package co.q64.stars.block | ||
|
||
import co.q64.stars.type.Level | ||
import net.minecraft.block.Block | ||
import net.minecraft.block.BlockState | ||
import net.minecraft.state.BooleanProperty | ||
import net.minecraft.state.EnumProperty | ||
import net.minecraft.state.StateContainer | ||
|
||
object GatewayBlock : BaseBlock("gateway", hard) { | ||
val type = EnumProperty.create("type", Level::class.java) | ||
val complete = BooleanProperty.create("complete") | ||
|
||
override fun fillStateContainer(builder: StateContainer.Builder<Block, BlockState>) = | ||
super.fillStateContainer(builder.add(type).add(complete)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package co.q64.stars.capability | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class Hub(var next: Int = 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package co.q64.stars.client | ||
|
||
fun startClient() { | ||
import co.q64.stars.client.render.initializeRendering | ||
|
||
fun startClient() { | ||
initializeRendering() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package co.q64.stars.client.render | ||
|
||
import co.q64.stars.client.render.tile.tesrs | ||
import net.minecraftforge.fml.client.registry.ClientRegistry | ||
|
||
fun initializeRendering() { | ||
tesrs.forEach { (type, render) -> | ||
ClientRegistry.bindTileEntitySpecialRenderer(type.java, render) | ||
} | ||
} |
Oops, something went wrong.