Update forge

This commit is contained in:
Vincent Lee committed 2016-04-03 18:47:31 -05:00
1 parent 5f3172bd5d
commit 69db133091
197 files changed
+524 -830

No files matched your search

@@ -45,9 +45,7 @@ public class BlockLightRelay extends BlockMod implements IWandable, ILexiconable
private static final AxisAlignedBB AABB = new AxisAlignedBB(5.0/16, 5.0/16, 5.0/16, 11.0/16, 11.0/16, 11.0/16);
protected BlockLightRelay() {
super(Material.glass);
float f = 5F / 16F;
setUnlocalizedName(LibBlockNames.LIGHT_RELAY);
super(Material.glass, LibBlockNames.LIGHT_RELAY);
setDefaultState(blockState.getBaseState().withProperty(BotaniaStateProps.LUMINIZER_VARIANT, LuminizerVariant.DEFAULT).withProperty(BotaniaStateProps.POWERED, false));
}
@@ -80,13 +78,8 @@ public class BlockLightRelay extends BlockMod implements IWandable, ILexiconable
}
@Override
public Block setUnlocalizedName(String par1Str) {
register(par1Str);
return super.setUnlocalizedName(par1Str);
}
void register(String name) {
GameRegistry.registerBlock(this, ItemBlockWithMetadataAndName.class, name);
public void registerItemForm() {
GameRegistry.register(new ItemBlockWithMetadataAndName(this), getRegistryName());
}
@Override
@@ -100,11 +93,6 @@ public class BlockLightRelay extends BlockMod implements IWandable, ILexiconable
return state.getValue(BotaniaStateProps.LUMINIZER_VARIANT) == LuminizerVariant.DEFAULT ? 0 : 1;
}
@Override
protected boolean shouldRegisterInNameSet() {
return false;
}
@Override
public boolean isPassable(IBlockAccess p_149655_1_, BlockPos pos) {
return false;