Cleaned up a lot of different inspections
This commit is contained in:
parent
0dd0854bd9
commit
70d98455b7
207 changed files with 603 additions and 731 deletions
|
@ -25,7 +25,7 @@ import javax.annotation.Nullable;
|
|||
|
||||
public class BlockAlchemyTable extends Block implements IBMBlock {
|
||||
public static final PropertyBool INVISIBLE = PropertyBool.create("invisible");
|
||||
public static final PropertyEnum<EnumFacing> DIRECTION = PropertyEnum.<EnumFacing>create("direction", EnumFacing.class);
|
||||
public static final PropertyEnum<EnumFacing> DIRECTION = PropertyEnum.create("direction", EnumFacing.class);
|
||||
|
||||
public BlockAlchemyTable() {
|
||||
super(Material.ROCK);
|
||||
|
|
|
@ -164,8 +164,8 @@ public class BlockAltar extends Block implements IVariantProvider, IDocumentedBl
|
|||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
||||
List<Pair<Integer, String>> ret = new ArrayList<>();
|
||||
ret.add(new ImmutablePair<>(0, "normal"));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,7 @@ public class BlockAltar extends Block implements IVariantProvider, IDocumentedBl
|
|||
|
||||
@Override
|
||||
public List<ITextComponent> getDocumentation(EntityPlayer player, World world, BlockPos pos, IBlockState state) {
|
||||
List<ITextComponent> docs = new ArrayList<ITextComponent>();
|
||||
List<ITextComponent> docs = new ArrayList<>();
|
||||
IBloodAltar altar = ((IBloodAltar) world.getTileEntity(pos));
|
||||
Pair<BlockPos, EnumAltarComponent> missingBlock = BloodAltar.getAltarMissingBlock(world, pos, altar.getTier().toInt());
|
||||
if (missingBlock != null)
|
||||
|
|
|
@ -101,8 +101,8 @@ public class BlockDemonCrucible extends Block implements IVariantProvider, IBMBl
|
|||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
||||
List<Pair<Integer, String>> ret = new ArrayList<>();
|
||||
ret.add(new ImmutablePair<>(0, "normal"));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@ import java.util.Random;
|
|||
|
||||
public class BlockDemonCrystal extends Block {
|
||||
public static final PropertyInteger AGE = PropertyInteger.create("age", 0, 6);
|
||||
public static final PropertyEnum<EnumDemonWillType> TYPE = PropertyEnum.<EnumDemonWillType>create("type", EnumDemonWillType.class);
|
||||
public static final PropertyEnum<EnumFacing> ATTACHED = PropertyEnum.<EnumFacing>create("attached", EnumFacing.class);
|
||||
public static final PropertyEnum<EnumDemonWillType> TYPE = PropertyEnum.create("type", EnumDemonWillType.class);
|
||||
public static final PropertyEnum<EnumFacing> ATTACHED = PropertyEnum.create("attached", EnumFacing.class);
|
||||
|
||||
public BlockDemonCrystal() {
|
||||
super(Material.ROCK);
|
||||
|
|
|
@ -69,8 +69,8 @@ public class BlockDemonCrystallizer extends BlockContainer implements IVariantPr
|
|||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
||||
List<Pair<Integer, String>> ret = new ArrayList<>();
|
||||
ret.add(new ImmutablePair<>(0, "normal"));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -62,8 +62,8 @@ public class BlockDemonPylon extends BlockContainer implements IVariantProvider
|
|||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
||||
List<Pair<Integer, String>> ret = new ArrayList<>();
|
||||
ret.add(new ImmutablePair<>(0, "normal"));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,8 +85,8 @@ public class BlockIncenseAltar extends Block implements IVariantProvider, IBMBlo
|
|||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
||||
List<Pair<Integer, String>> ret = new ArrayList<>();
|
||||
ret.add(new ImmutablePair<>(0, "normal"));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ public class BlockInversionPillar extends BlockEnum<EnumSubWillType> {
|
|||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
List<Pair<Integer, String>> ret = new ArrayList<>();
|
||||
for (int i = 0; i < this.getTypes().length; i++)
|
||||
ret.add(Pair.of(i, "static=false,type=" + this.getTypes()[i]));
|
||||
return ret;
|
||||
|
|
|
@ -55,9 +55,9 @@ public class BlockInversionPillarEnd extends BlockEnum<EnumInversionCap> impleme
|
|||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
List<Pair<Integer, String>> ret = new ArrayList<>();
|
||||
for (int i = 0; i < this.getTypes().length; i++)
|
||||
ret.add(new ImmutablePair<Integer, String>(i, "type=" + this.getTypes()[i]));
|
||||
ret.add(new ImmutablePair<>(i, "type=" + this.getTypes()[i]));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,8 +86,8 @@ public class BlockPhantom extends Block implements IVariantProvider {
|
|||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
||||
List<Pair<Integer, String>> ret = new ArrayList<>();
|
||||
ret.add(new ImmutablePair<>(0, "normal"));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ import WayofTime.bloodmagic.core.RegistrarBloodMagicItems;
|
|||
import WayofTime.bloodmagic.tile.TileImperfectRitualStone;
|
||||
import WayofTime.bloodmagic.tile.TileMasterRitualStone;
|
||||
import amerifrance.guideapi.api.IGuideLinked;
|
||||
import com.google.common.base.Strings;
|
||||
import net.minecraft.block.SoundType;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
|
|
|
@ -99,8 +99,8 @@ public class BlockSoulForge extends Block implements IVariantProvider, IBMBlock
|
|||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
||||
List<Pair<Integer, String>> ret = new ArrayList<>();
|
||||
ret.add(new ImmutablePair<>(0, "normal"));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -109,8 +109,8 @@ public class BlockSpectral extends Block implements IVariantProvider {
|
|||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
||||
List<Pair<Integer, String>> ret = new ArrayList<>();
|
||||
ret.add(new ImmutablePair<>(0, "normal"));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,8 +66,8 @@ public class BlockTeleposer extends BlockContainer implements IVariantProvider,
|
|||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
||||
List<Pair<Integer, String>> ret = new ArrayList<>();
|
||||
ret.add(new ImmutablePair<>(0, "normal"));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue