-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start Implementation of Texture System
- Loading branch information
Showing
18 changed files
with
325 additions
and
34 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 |
---|---|---|
@@ -1,5 +1,14 @@ | ||
package com.blueweabo.mutecore; | ||
|
||
import com.blueweabo.mutecore.client.MultiTileBlockRenderer; | ||
|
||
import cpw.mods.fml.common.event.FMLInitializationEvent; | ||
|
||
public class ClientProxy extends CommonProxy { | ||
|
||
@Override | ||
public void init(FMLInitializationEvent event) { | ||
super.init(event); | ||
new MultiTileBlockRenderer(); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
src/main/java/com/blueweabo/mutecore/SystemRegistrator.java
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,37 @@ | ||
package com.blueweabo.mutecore; | ||
|
||
import cpw.mods.fml.common.eventhandler.SubscribeEvent; | ||
import cpw.mods.fml.common.gameevent.TickEvent; | ||
import dev.dominion.ecs.api.Scheduler; | ||
|
||
public class SystemRegistrator { | ||
|
||
private static final Scheduler SYSTEMS = MuTECore.ENGINE.createScheduler(); | ||
|
||
/** | ||
* Registers a processing system, which run in parallel with all other processing systems. | ||
*/ | ||
public static void registerProcessingSystem() { | ||
SYSTEMS.schedule(() -> {}); | ||
} | ||
|
||
/** | ||
* Registers a GUI system, which will run in parallel with all other GUI systems | ||
*/ | ||
public static void registerGUISystem() { | ||
|
||
} | ||
|
||
/** | ||
* Registers a system, which will be running after processing systems have ran. | ||
* Useful if one needs to generate their own system | ||
*/ | ||
public static void registerOtherSystem() { | ||
|
||
} | ||
|
||
@SubscribeEvent | ||
public void onServerTick(TickEvent.ServerTickEvent event) { | ||
SYSTEMS.tick(); | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/blueweabo/mutecore/api/data/BaseTexture.java
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,21 @@ | ||
package com.blueweabo.mutecore.api.data; | ||
|
||
import net.minecraft.util.IIcon; | ||
|
||
public class BaseTexture { | ||
|
||
private IIcon texture; | ||
|
||
public BaseTexture(IIcon texture) { | ||
this.texture = texture; | ||
} | ||
|
||
public IIcon getTexture() { | ||
return texture; | ||
} | ||
|
||
public void setTexture(IIcon texture) { | ||
this.texture = texture; | ||
} | ||
|
||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/com/blueweabo/mutecore/api/data/Coordinates.java
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,38 @@ | ||
package com.blueweabo.mutecore.api.data; | ||
|
||
public class Coordinates { | ||
|
||
private int x; | ||
private int y; | ||
private int z; | ||
|
||
public Coordinates(int x, int y, int z) { | ||
this.x = x; | ||
this.y = y; | ||
this.z = z; | ||
} | ||
|
||
public int getX() { | ||
return x; | ||
} | ||
|
||
public void setX(int x) { | ||
this.x = x; | ||
} | ||
|
||
public int getY() { | ||
return y; | ||
} | ||
|
||
public void setY(int y) { | ||
this.y = y; | ||
} | ||
|
||
public int getZ() { | ||
return z; | ||
} | ||
|
||
public void setZ(int z) { | ||
this.z = z; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/blueweabo/mutecore/api/data/Direction.java
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,20 @@ | ||
package com.blueweabo.mutecore.api.data; | ||
|
||
import net.minecraftforge.common.util.ForgeDirection; | ||
|
||
public class Direction { | ||
|
||
private ForgeDirection direction; | ||
|
||
public ForgeDirection getDirection() { | ||
return direction; | ||
} | ||
|
||
public void setDirection(ForgeDirection direction) { | ||
this.direction = direction; | ||
} | ||
|
||
public Direction(ForgeDirection direction) { | ||
this.direction = direction; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/main/java/com/blueweabo/mutecore/api/data/OverlayTextures.java
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,33 @@ | ||
package com.blueweabo.mutecore.api.data; | ||
|
||
import com.blueweabo.mutecore.api.enums.TexturePosition; | ||
|
||
import net.minecraft.util.IIcon; | ||
|
||
public class OverlayTextures { | ||
|
||
TexturePosition position; | ||
IIcon[] textures; | ||
|
||
public OverlayTextures(TexturePosition position, IIcon... textures) { | ||
this.position = position; | ||
this.textures = textures; | ||
} | ||
|
||
public TexturePosition getPosition() { | ||
return position; | ||
} | ||
|
||
public void setPosition(TexturePosition position) { | ||
this.position = position; | ||
} | ||
|
||
public IIcon[] getTextures() { | ||
return textures; | ||
} | ||
|
||
public void setTextures(IIcon[] textures) { | ||
this.textures = textures; | ||
} | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/blueweabo/mutecore/api/enums/TexturePosition.java
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 com.blueweabo.mutecore.api.enums; | ||
|
||
public enum TexturePosition { | ||
BOTTOM, | ||
TOP, | ||
BACK, | ||
FRONT, | ||
RIGHT, | ||
LEFT, | ||
} |
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/blueweabo/mutecore/api/registry/TextureRegistry.java
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,21 @@ | ||
package com.blueweabo.mutecore.api.registry; | ||
|
||
import java.util.List; | ||
|
||
import cpw.mods.fml.common.eventhandler.SubscribeEvent; | ||
import net.minecraft.client.renderer.texture.TextureMap; | ||
import net.minecraftforge.client.event.TextureStitchEvent; | ||
|
||
public class TextureRegistry { | ||
|
||
private static List<?> thing; | ||
|
||
@SubscribeEvent | ||
public void registerIcon(TextureStitchEvent.Pre event) { | ||
TextureMap map = event.map; | ||
|
||
if (map.getTextureType() == 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
Oops, something went wrong.