mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 04:06:43 -04:00
allow waypoints to face UP or DOWN
the block faces up or down, depending on the pitch of your cross-hair when you place the block down, just like screens closes #2364
This commit is contained in:
parent
904db35be2
commit
6182fde957
@ -11,6 +11,7 @@ import li.cil.oc.api.network.Visibility
|
|||||||
import li.cil.oc.common.EventHandler
|
import li.cil.oc.common.EventHandler
|
||||||
import li.cil.oc.server.network.Waypoints
|
import li.cil.oc.server.network.Waypoints
|
||||||
import net.minecraft.nbt.NBTTagCompound
|
import net.minecraft.nbt.NBTTagCompound
|
||||||
|
import net.minecraftforge.common.util.ForgeDirection
|
||||||
|
|
||||||
class Waypoint extends traits.Environment with traits.Rotatable with traits.RedstoneAware {
|
class Waypoint extends traits.Environment with traits.Rotatable with traits.RedstoneAware {
|
||||||
val node = api.Network.newNode(this, Visibility.Network).
|
val node = api.Network.newNode(this, Visibility.Network).
|
||||||
@ -19,6 +20,8 @@ class Waypoint extends traits.Environment with traits.Rotatable with traits.Reds
|
|||||||
|
|
||||||
var label = ""
|
var label = ""
|
||||||
|
|
||||||
|
override def validFacings: Array[ForgeDirection] = ForgeDirection.VALID_DIRECTIONS
|
||||||
|
|
||||||
// ----------------------------------------------------------------------- //
|
// ----------------------------------------------------------------------- //
|
||||||
|
|
||||||
@Callback(doc = """function(): string -- Get the current label of this waypoint.""")
|
@Callback(doc = """function(): string -- Get the current label of this waypoint.""")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user