Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
glowredman committed Jul 29, 2023
1 parent 966d4ff commit afd991b
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// Backup translations for server side lookups only
public class ServerTranslations {

@SuppressWarnings("deprecation")
public static String getEnglishLocalization(Fluid fluid) {
if (MinecraftServer.getServer().isSinglePlayer()) {
return fluid.getLocalizedName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class DetailedChunkAnalysis {
public final int chunkX;
public final int chunkZ;
// For each height we count how often a ore (short) has occured
@SuppressWarnings("unchecked")
private final Map<Short, Integer>[] oresPerY = new HashMap[VP.minecraftWorldHeight];

public DetailedChunkAnalysis(int dimensionId, int chunkX, int chunkZ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void draw(double draggedPixelX, double draggedPixelY, GridRenderer gridRe
borderColor,
borderAlpha);

@SuppressWarnings("deprecation")
final String label = undergroundFluidLocation.getMinProduction() + "L - "
+ maxAmountInField
+ "L "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public abstract class LayerManager {

private final ButtonManager buttonManager;

private boolean isLayerActive = false;
protected boolean forceRefresh = false;
private List<? extends ILocationProvider> visibleElements = new ArrayList<>();
protected Map<SupportedMods, LayerRenderer> layerRenderer = new EnumMap<>(SupportedMods.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public void onVeinProspected(ProspectingNotificationEvent.OreVein event) {
dim)); // dimension
}

@SuppressWarnings("deprecation")
@SubscribeEvent
public void onFluidProspected(ProspectingNotificationEvent.UndergroundFluid event) {
if (event.isCanceled()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public void draw(@Nullable GuiScreen gui, double cameraX, double cameraZ, double
// min scale that journeymap can go to
if (scale >= 1 && gui != null) {
GL11.glScaled(1 / scale, 1 / scale, 1);
@SuppressWarnings("deprecation")
final String label = undergroundFluidLocation.getMinProduction() + "L - "
+ maxAmountInField
+ "L "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public ItemStack onItemRightClick(ItemStack item, World world, EntityPlayer play
}

@Override
public void addInformation(ItemStack item, EntityPlayer player, List infoList, boolean ignored) {
public void addInformation(ItemStack item, EntityPlayer player, List<String> infoList, boolean ignored) {
if (isFilledLog(item)) {
final NBTTagCompound compound = item.getTagCompound();
infoList.add(
Expand Down

0 comments on commit afd991b

Please sign in to comment.