Skip to content

Commit

Permalink
new helper method for golem seals
Browse files Browse the repository at this point in the history
  • Loading branch information
Azanor committed Jan 12, 2016
1 parent 6ae8d26 commit 6da18ea
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions golems/GolemHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public static void registerSeal(ISeal seal) {
public static ISeal getSeal(String key) {
return ThaumcraftApi.internalMethods.getSeal(key);
}

public static ItemStack getSealStack(String key) {
return ThaumcraftApi.internalMethods.getSealStack(key);
}

public static ISealEntity getSealEntity(int dim, SealPos pos) {
return ThaumcraftApi.internalMethods.getSealEntity(dim, pos);
Expand Down
6 changes: 6 additions & 0 deletions internal/DummyInternalMethodHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,11 @@ public boolean shouldPreserveAura(World world, EntityPlayer player,
// TODO Auto-generated method stub
return false;
}

@Override
public ItemStack getSealStack(String key) {
// TODO Auto-generated method stub
return null;
}

}
1 change: 1 addition & 0 deletions internal/IInternalMethodHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ public interface IInternalMethodHandler {
public ISealEntity getSealEntity(int dim, SealPos pos);
public void addGolemTask(int dim, Task task);
public boolean shouldPreserveAura(World world, EntityPlayer player, BlockPos pos, Aspect aspect);
public ItemStack getSealStack(String key);

}
5 changes: 4 additions & 1 deletion items/ItemsTC.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ public class ItemsTC {
//golems
public static Item golemBell;
public static Item golemPlacer;
/** "blank","pickup","fill","fill_advanced","empty","empty_advanced", "harvest", "pickup_advanced" */
/**
* damage 0 = blank seal
* use GolemHelper.getSealStack to return an itemstack of a specific seal
* **/
public static Item seals;


Expand Down

0 comments on commit 6da18ea

Please sign in to comment.