Skip to content

Commit

Permalink
Fixed checkstyle test for the Sponge platform
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkArc committed Mar 19, 2016
1 parent 04cf831 commit a91d881
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
13 changes: 7 additions & 6 deletions config/checkstyle/import-control.xml
Expand Up @@ -41,12 +41,6 @@
<allow pkg="net.minecraft.server"/>
</subpackage>

<subpackage name="spout">
<allow pkg="org.spout"/>
<allow pkg="org.jboss.netty"/>
<allow pkg="org.apache"/>
</subpackage>

<subpackage name="forge">
<allow pkg="cpw"/>
<allow pkg="net.minecraft"/>
Expand All @@ -57,5 +51,12 @@
<allow pkg="io.netty.buffer"/>
<allow pkg="org.spongepowered.api" />
</subpackage>

<subpackage name="sponge">
<allow pkg="net.minecraft"/>
<allow pkg="com.google.inject" />
<allow pkg="com.flowpowered.math" />
<allow pkg="org.spongepowered.api" />
</subpackage>
</subpackage>
</import-control>
Expand Up @@ -42,15 +42,15 @@ public static int resolve(BiomeType type) {
return ((BiomeGenBase) type).biomeID;
}

public static ItemType resolveItem(int ID) {
return (ItemType) Item.getItemById(ID);
public static ItemType resolveItem(int intID) {
return (ItemType) Item.getItemById(intID);
}

public static BlockType resolveBlock(int ID) {
return (BlockType) Block.getBlockById(ID);
public static BlockType resolveBlock(int intID) {
return (BlockType) Block.getBlockById(intID);
}

public static BiomeType resolveBiome(int ID) {
return (BiomeType) BiomeGenBase.getBiome(ID);
public static BiomeType resolveBiome(int intID) {
return (BiomeType) BiomeGenBase.getBiome(intID);
}
}

0 comments on commit a91d881

Please sign in to comment.