-
Notifications
You must be signed in to change notification settings - Fork 14
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
60 changed files
with
3,685 additions
and
688 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
plugins { | ||
id 'com.diffplug.blowdryerSetup' version '1.6.0' | ||
} | ||
|
||
apply plugin: 'com.diffplug.blowdryerSetup' | ||
|
||
blowdryerSetup { | ||
github('GTNewHorizons/ExampleMod1.7.10', 'tag', '0.1.4') | ||
//devLocal '.' // Use this when testing config updates locally | ||
} |
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
51 changes: 51 additions & 0 deletions
51
src/main/java/com/gtnewhorizon/structurelib/CommonProxy.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,51 @@ | ||
package com.gtnewhorizon.structurelib; | ||
|
||
import com.gtnewhorizon.structurelib.net.UpdateHintParticleMessage; | ||
import cpw.mods.fml.common.event.FMLPreInitializationEvent; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.entity.player.EntityPlayerMP; | ||
import net.minecraft.server.MinecraftServer; | ||
import net.minecraft.util.IIcon; | ||
import net.minecraft.world.World; | ||
|
||
public class CommonProxy { | ||
public void hintParticleTinted(World w, int x, int y, int z, IIcon[] icons, short[] RGBa) {} | ||
|
||
public void hintParticleTinted(World w, int x, int y, int z, Block block, int meta, short[] RGBa) {} | ||
|
||
public void hintParticle(World w, int x, int y, int z, IIcon[] icons) {} | ||
|
||
public void hintParticle(World w, int x, int y, int z, Block block, int meta) {} | ||
|
||
public boolean updateHintParticleTint(EntityPlayer player, World w, int x, int y, int z, short[] rgBa) { | ||
if (player instanceof EntityPlayerMP) { // just in case | ||
StructureLib.net.sendTo( | ||
new UpdateHintParticleMessage(x, (short) y, z, rgBa[0], rgBa[1], rgBa[2], rgBa[3]), | ||
(EntityPlayerMP) player); | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
} | ||
|
||
public EntityPlayer getCurrentPlayer() { | ||
return null; | ||
} | ||
|
||
public boolean isCurrentPlayer(EntityPlayer player) { | ||
return false; | ||
} | ||
|
||
public void addClientSideChatMessages(String... messages) {} | ||
|
||
public void startHinting(World w) {} | ||
|
||
public void endHinting(World w) {} | ||
|
||
public void preInit(FMLPreInitializationEvent e) {} | ||
|
||
public long getOverworldTime() { | ||
return MinecraftServer.getServer().getEntityWorld().getTotalWorldTime(); | ||
} | ||
} |
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
Oops, something went wrong.