First update pass (1/3) - ~1400 -> 82 errors
This is first update pass, which is mainly import reorganization, name fixes, etc... Although some parts of second were done where changes aren't important. Errors: ~1400 -> 82.
This commit is contained in:
@@ -42,7 +42,6 @@ import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fml.common.LoaderState;
|
||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
import net.minecraftforge.fml.common.registry.GameRegistry.UniqueIdentifier;
|
||||
|
||||
import appeng.api.AEApi;
|
||||
import appeng.api.definitions.IBlocks;
|
||||
@@ -119,6 +118,7 @@ public class RecipeHandler implements IRecipeHandler
|
||||
{
|
||||
Preconditions.checkNotNull( is );
|
||||
|
||||
//TODO 1.9.4 - UniqueIdentifier => ResourceLocation
|
||||
final UniqueIdentifier id = GameRegistry.findUniqueIdentifierFor( is.getItem() );
|
||||
String realName = id.modId + ':' + id.name;
|
||||
|
||||
|
||||
@@ -43,16 +43,16 @@ public class OreDictionaryHandler
|
||||
@SubscribeEvent
|
||||
public void onOreDictionaryRegister( final OreDictionary.OreRegisterEvent event )
|
||||
{
|
||||
if( event.Name == null || event.Ore == null )
|
||||
if( event.getName() == null || event.getOre() == null )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if( this.shouldCare( event.Name ) )
|
||||
if( this.shouldCare( event.getName() ) )
|
||||
{
|
||||
for( final IOreListener v : this.oreListeners )
|
||||
{
|
||||
v.oreRegistered( event.Name, event.Ore );
|
||||
v.oreRegistered( event.getName(), event.getOre() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user