Lyqyd, on 13 January 2013 - 08:39 AM, said:
Let's see, that brings the total cost of a mk4 sensor card to:
3 sugarcane
28 redstone dust
6 sticks
36 stone blocks
10 iron ingots
8 gold ingots
1 diamond
If I counted correctly! What do you all think?
Posted 13 January 2013 - 12:15 PM
Lyqyd, on 13 January 2013 - 08:39 AM, said:
Posted 13 January 2013 - 12:35 PM
TheGeek, on 13 January 2013 - 12:15 PM, said:
Lyqyd, on 13 January 2013 - 08:39 AM, said:
Posted 13 January 2013 - 06:40 PM
Posted 13 January 2013 - 11:42 PM
NeoRavencroft, on 13 January 2013 - 06:40 PM, said:
Posted 14 January 2013 - 03:55 AM
Posted 14 January 2013 - 12:23 PM
Posted 14 January 2013 - 01:07 PM
public class SignSensorInterface implements ISensorInterface {
/* SignPosts have TileEntities associated with them, so we'll use the TileEntity retriever */
private TileEntityRetriever retriever = new TileEntityRetriever();
public SignSensorInterface() {
/* when we construct this class, we'll register a callback on the retriever
* All TileEntities in the area checked by the retriever will pass through this callback
* If it's a valid sign, we'll return a new SignPostTarget object, if not, it'll return null
*/
retriever.registerCallback(new ITileEntityValidatorCallback() {
@Override
public ISensorTarget getTargetIfValid(TileEntity entity, int relativeX, int relativeY, int relativeZ) {
if (entity instanceof TileEntitySign)
{
return new SignPostTarget(entity, relativeX, relativeY, relativeZ);
}
return null;
}
});
}
@Override
public Map getBasicTarget(ISensorAccess sensor, World world, int x, int y, int z)
throws Exception {
/* TargetHelper helps us extract information about the valid targets
* So, getCube will return all of the SignPostTargets, and that'll then get passed through
* getBasicInformationForTargets which sorts out our return data for us
*/
return TargetHelper.getBasicInformationForTargets(
retriever.getCube(world, x, y, z), world);
}
@Override
public Map getTargetDetails(ISensorAccess sensor, World world, int x, int y, int z, String target)
throws Exception {
/* this is pretty much the same as getBasicTarget(), however, this time we tell it to get
* more detailed information about a specific target
*/
return TargetHelper.getDetailedInformationForTarget(target,
retriever.getCube(world, x, y, z), world);
}
@Override
public void initRecipes(SensorCard card) {
GameRegistry.addRecipe(
new ItemStack(card, 1, this.getId()),
"rsr",
"rrr",
"aaa",
'r', new ItemStack(Item.redstone),
'a', new ItemStack(Item.paper),
's',new ItemStack(Item.sign));
}
}
Posted 14 January 2013 - 03:29 PM
Posted 14 January 2013 - 03:47 PM
CoolisTheName007, on 14 January 2013 - 03:29 PM, said:
Posted 14 January 2013 - 04:13 PM
Posted 14 January 2013 - 05:21 PM
Lyqyd, on 14 January 2013 - 03:47 PM, said:
Posted 14 January 2013 - 07:35 PM
Posted 14 January 2013 - 08:55 PM
NeverCast, on 14 January 2013 - 04:13 PM, said:
Posted 14 January 2013 - 09:01 PM
CoolisTheName007, on 14 January 2013 - 03:29 PM, said:
CoolisTheName007, on 14 January 2013 - 05:21 PM, said:
Lyqyd, on 14 January 2013 - 03:47 PM, said:
Posted 14 January 2013 - 10:13 PM
Posted 15 January 2013 - 01:55 AM

Posted 15 January 2013 - 02:31 AM
Posted 15 January 2013 - 11:20 AM

Posted 15 January 2013 - 11:58 AM
Posted 16 January 2013 - 02:45 AM
0 members, 3 guests, 0 anonymous users