This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
-
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.
Merge pull request #10 from RenEvo/1.9
Updated to minecraft 1.9
- Loading branch information
Showing
9 changed files
with
38 additions
and
58 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,6 +1,6 @@ | ||
mod_version=1.5.0 | ||
minecraft_version=1.8.9 | ||
forge_version=11.15.1.1722 | ||
mappings=snapshot_20151212 | ||
minecraft_version=1.9 | ||
forge_version=12.16.1.1896 | ||
mappings=snapshot_20160312 | ||
|
||
jei_version=2.26.0.154 | ||
jei_version=3.3.+ |
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,6 +1,6 @@ | ||
#Mon Feb 15 11:56:05 PST 2016 | ||
#Mon May 09 14:58:23 PDT 2016 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.7-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.7-all.zip |
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
22 changes: 12 additions & 10 deletions
22
src/main/java/com/renevo/pcb/PortableCraftBenchGuiHandler.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,30 +1,32 @@ | ||
package com.renevo.pcb; | ||
|
||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.util.BlockPos; | ||
|
||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.World; | ||
import net.minecraftforge.fml.common.FMLLog; | ||
import net.minecraftforge.fml.common.network.IGuiHandler; | ||
|
||
public class PortableCraftBenchGuiHandler implements IGuiHandler { | ||
|
||
@Override | ||
public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) { | ||
if (id == PortableCraftBenchMod.GUI_PORTABLE_CRAFT_BENCH_ID && player.getCurrentEquippedItem() != null && player.getCurrentEquippedItem().getItem() == ItemPortableCraftBench.portableCraftBench) | ||
if (id == PortableCraftBenchMod.GUI_PORTABLE_CRAFT_BENCH_ID && player.getHeldItemMainhand() != null && player.getHeldItemMainhand().getItem() == ItemPortableCraftBench.portableCraftBench) | ||
return new GuiPortableCraftBench(player.inventory, world, new BlockPos(x, y, z)); | ||
|
||
if (id == PortableCraftBenchMod.GUI_PORTABLE_CRAFT_BENCH_ID && player.getHeldItemOffhand() != null && player.getHeldItemOffhand().getItem() == ItemPortableCraftBench.portableCraftBench) | ||
return new GuiPortableCraftBench(player.inventory, world, new BlockPos(x, y, z)); | ||
|
||
FMLLog.info("No GUI to show"); | ||
|
||
return null; | ||
} | ||
|
||
@Override | ||
public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) { | ||
if (id == PortableCraftBenchMod.GUI_PORTABLE_CRAFT_BENCH_ID && player.getCurrentEquippedItem() != null && player.getCurrentEquippedItem().getItem() == ItemPortableCraftBench.portableCraftBench) | ||
if (id == PortableCraftBenchMod.GUI_PORTABLE_CRAFT_BENCH_ID && player.getHeldItemMainhand() != null && player.getHeldItemMainhand().getItem() == ItemPortableCraftBench.portableCraftBench) | ||
return new ContainerPortableCraftBench(player.inventory, world, new BlockPos(x, y, z)); | ||
|
||
FMLLog.info("No GUI to show"); | ||
|
||
|
||
if (id == PortableCraftBenchMod.GUI_PORTABLE_CRAFT_BENCH_ID && player.getHeldItemOffhand() != null && player.getHeldItemOffhand().getItem() == ItemPortableCraftBench.portableCraftBench) | ||
return new ContainerPortableCraftBench(player.inventory, world, new BlockPos(x, y, z)); | ||
|
||
return null; | ||
} | ||
|
||
} |
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
14 changes: 1 addition & 13 deletions
14
src/main/resources/assets/pcb/models/item/portableCraftBench.json
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,18 +1,6 @@ | ||
{ | ||
"parent": "builtin/generated", | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "pcb:items/portableCraftBench" | ||
}, | ||
"display": { | ||
"thirdperson": { | ||
"rotation": [ -90, 0, 0 ], | ||
"translation": [ 0, 1, -3 ], | ||
"scale": [ 0.55, 0.55, 0.55 ] | ||
}, | ||
"firstperson": { | ||
"rotation": [ 0, -135, 25 ], | ||
"translation": [ 0, 4, 2 ], | ||
"scale": [ 1.7, 1.7, 1.7 ] | ||
} | ||
} | ||
} |