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
26 changed files
with
348 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,3 +66,5 @@ white-list.txt.converted | |
whitelist.json | ||
world-20140811-075700.zip | ||
.cache | ||
|
||
gradle.properties |
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
Binary file added
BIN
+19 KB
resources/assets/projectred/textures/blocks/machines/actuator/bottom.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.3 KB
resources/assets/projectred/textures/blocks/machines/actuator/sidea.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.3 KB
resources/assets/projectred/textures/blocks/machines/actuator/sideb.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.4 KB
resources/assets/projectred/textures/blocks/machines/actuator/sidec.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.3 KB
resources/assets/projectred/textures/blocks/machines/actuator/top.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.9 KB
resources/assets/projectred/textures/blocks/machines/motor/bottom.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.2 KB
resources/assets/projectred/textures/blocks/machines/motor/side2a.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.3 KB
resources/assets/projectred/textures/blocks/machines/motor/side2b.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.3 KB
resources/assets/projectred/textures/blocks/machines/motor/side2c.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
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,12 @@ | ||
[{ | ||
"repo": "http://projectredwiki.com/maven/mrtjp/ForgeRelocation/@MC_VERSION@-@FR_VERSION@/", | ||
"file": "ForgeRelocation-@MC_VERSION@-@FR_VERSION@-universal.jar", | ||
"dev": "ForgeRelocation-@MC_VERSION@-@FR_VERSION@-dev.jar", | ||
"class": "mrtjp.relocation.handler.RelocationMod" | ||
}, | ||
{ | ||
"repo": "http://projectredwiki.com/maven/mrtjp/ForgeRelocationFMP/@MC_VERSION@-@FRFMP_VERSION@/", | ||
"file": "ForgeRelocationFMP-@MC_VERSION@-@FRFMP_VERSION@-universal.jar", | ||
"dev": "ForgeRelocationFMP-@MC_VERSION@-@FRFMP_VERSION@-dev.jar", | ||
"class": "mrtjp.relocation.handler.RelocationMod" | ||
}] |
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,73 @@ | ||
/* | ||
* Copyright (c) 2015. | ||
* Created by MrTJP. | ||
* All rights reserved. | ||
*/ | ||
package mrtjp.projectred.expansion | ||
|
||
import codechicken.lib.render.uv.{MultiIconTransformation, UVTransformation} | ||
import mrtjp.core.render.TCubeMapRender | ||
import mrtjp.core.world.WorldLib | ||
import mrtjp.projectred.ProjectRedExpansion | ||
import net.minecraft.client.renderer.texture.IIconRegister | ||
import net.minecraft.util.IIcon | ||
import net.minecraft.world.{IBlockAccess, World} | ||
|
||
class TileFrameActuator extends TileMachine with TMotorTile | ||
{ | ||
override def getBlock = ProjectRedExpansion.machine2 | ||
override def doesRotate = false | ||
override def doesOrient = true | ||
|
||
override def stickOut(w:World, x:Int, y:Int, z:Int, side:Int) = side == (this.side^1) | ||
override def stickIn(w:World, x:Int, y:Int, z:Int, side:Int) = side != (this.side^1) | ||
|
||
override def getMoveDir = side^1 | ||
|
||
override def drawPower(size:Int) = cond.drawPower(200+10*size) | ||
} | ||
|
||
object RenderFrameActuator extends TCubeMapRender | ||
{ | ||
var bottom:IIcon = _ | ||
var top:IIcon = _ | ||
var sidea:IIcon = _ | ||
var sideb:IIcon = _ | ||
var sidec:IIcon = _ | ||
|
||
var iconT1:UVTransformation = null | ||
var iconT2:UVTransformation = null | ||
var iconT3:UVTransformation = null | ||
|
||
override def getData(w:IBlockAccess, x:Int, y:Int, z:Int) = | ||
{ | ||
val te = WorldLib.getTileEntity(w, x, y, z, classOf[TileFrameActuator]) | ||
if (te != null) (te.side, te.rotation, | ||
if (te.isCharged && te.isPowered) iconT3 | ||
else if (te.isCharged) iconT2 | ||
else iconT1) | ||
else getInvData | ||
} | ||
|
||
override def getInvData = (0, 0, iconT1) | ||
|
||
override def getIcon(s:Int, meta:Int) = s match | ||
{ | ||
case 0 => bottom | ||
case 1 => top | ||
case _ => sidea | ||
} | ||
|
||
override def registerIcons(reg:IIconRegister) | ||
{ | ||
bottom = reg.registerIcon("projectred:machines/actuator/bottom") | ||
top = reg.registerIcon("projectred:machines/actuator/top") | ||
sidea = reg.registerIcon("projectred:machines/actuator/sidea") | ||
sideb = reg.registerIcon("projectred:machines/actuator/sideb") | ||
sidec = reg.registerIcon("projectred:machines/actuator/sidec") | ||
|
||
iconT1 = new MultiIconTransformation(bottom, top, sidea, sidea, sidea, sidea) | ||
iconT2 = new MultiIconTransformation(bottom, top, sideb, sideb, sideb, sideb) | ||
iconT3 = new MultiIconTransformation(bottom, top, sidec, sidec, sidec, sidec) | ||
} | ||
} |
Oops, something went wrong.