generated from anatawa12/ForgeGradle-example
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logo; make an interface to change tileEntity's property;sort codes
- Loading branch information
Showing
17 changed files
with
115 additions
and
86 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
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
5 changes: 5 additions & 0 deletions
5
src/main/java/cn/kuzuanpa/thinker/client/render/dummyWorld/anime/IDummyWorldAnimes.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,5 @@ | ||
package cn.kuzuanpa.thinker.client.render.dummyWorld.anime; | ||
|
||
public interface IDummyWorldAnimes { | ||
String jsonName(); | ||
} |
4 changes: 1 addition & 3 deletions
4
...er/dummyWorld/anime/IDummyBlockAnime.java → ...yWorld/anime/IDummyWorldGraphicAnime.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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
package cn.kuzuanpa.thinker.client.render.dummyWorld.anime; | ||
|
||
public interface IDummyBlockAnime { | ||
public interface IDummyWorldGraphicAnime extends IDummyWorldAnimes { | ||
void animeDraw(long initTime); | ||
/**Some Anime changed Position or Scale of buttons. update them in there to make things perform correctly when clicked on these button**/ | ||
void updateButton(long initTime); | ||
|
||
String jsonName(); | ||
} |
8 changes: 8 additions & 0 deletions
8
...va/cn/kuzuanpa/thinker/client/render/dummyWorld/anime/IDummyWorldTilePropertiesAnime.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,8 @@ | ||
package cn.kuzuanpa.thinker.client.render.dummyWorld.anime; | ||
|
||
import net.minecraft.nbt.NBTTagCompound; | ||
import net.minecraft.tileentity.TileEntity; | ||
|
||
public interface IDummyWorldTilePropertiesAnime extends IDummyWorldAnimes{ | ||
void doAnime(TileEntity tileEntity); | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/cn/kuzuanpa/thinker/client/render/dummyWorld/anime/SetTileNBT.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 cn.kuzuanpa.thinker.client.render.dummyWorld.anime; | ||
|
||
import cn.kuzuanpa.thinker.Thinker; | ||
import net.minecraft.nbt.NBTTagCompound; | ||
import net.minecraft.tileentity.TileEntity; | ||
|
||
public class SetTileNBT implements IDummyWorldTilePropertiesAnime { | ||
public NBTTagCompound tag=new NBTTagCompound(); | ||
public SetTileNBT(NBTTagCompound tag){ | ||
this.tag=tag; | ||
} | ||
public void doAnime(TileEntity tileEntity){ | ||
tileEntity.readFromNBT( tag); | ||
} | ||
|
||
@Override | ||
public String jsonName() { | ||
return "Prop.SetTileNBT"; | ||
} | ||
} |
Oops, something went wrong.