diff options
author | glowredman <35727266+glowredman@users.noreply.github.com> | 2023-04-18 21:35:49 +0200 |
---|---|---|
committer | glowredman <35727266+glowredman@users.noreply.github.com> | 2023-04-18 21:35:49 +0200 |
commit | 516d886ab1824a568c8b56e437b5e29917926919 (patch) | |
tree | 80778685f5cb4675067c54996720b84a7c452794 /src/main | |
parent | 49ba72b9bde4f526f78b64603ff7c9452a40a460 (diff) | |
download | GT5-Unofficial-516d886ab1824a568c8b56e437b5e29917926919.tar.gz GT5-Unofficial-516d886ab1824a568c8b56e437b5e29917926919.tar.bz2 GT5-Unofficial-516d886ab1824a568c8b56e437b5e29917926919.zip |
Add serialVersionUIDs
Diffstat (limited to 'src/main')
7 files changed, 19 insertions, 1 deletions
diff --git a/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/EMException.java b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/EMException.java index 5c6b78993c..ad0b2d5d84 100644 --- a/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/EMException.java +++ b/src/main/java/com/github/technus/tectech/mechanics/elementalMatter/core/EMException.java @@ -5,6 +5,8 @@ package com.github.technus.tectech.mechanics.elementalMatter.core; */ public final class EMException extends RuntimeException { + private static final long serialVersionUID = 8030521803764577214L; + public EMException(String message) { super(message); } diff --git a/src/main/java/com/github/technus/tectech/mechanics/enderStorage/EnderLinkTag.java b/src/main/java/com/github/technus/tectech/mechanics/enderStorage/EnderLinkTag.java index 1e48250040..e700c54b17 100644 --- a/src/main/java/com/github/technus/tectech/mechanics/enderStorage/EnderLinkTag.java +++ b/src/main/java/com/github/technus/tectech/mechanics/enderStorage/EnderLinkTag.java @@ -7,6 +7,7 @@ import com.google.common.base.Objects; public class EnderLinkTag implements Serializable { + private static final long serialVersionUID = 6884008436570077863L; private final String frequency; private final UUID player; diff --git a/src/main/java/com/github/technus/tectech/mechanics/enderStorage/EnderLinkTank.java b/src/main/java/com/github/technus/tectech/mechanics/enderStorage/EnderLinkTank.java index b9e1f2a89d..7208a0a3fa 100644 --- a/src/main/java/com/github/technus/tectech/mechanics/enderStorage/EnderLinkTank.java +++ b/src/main/java/com/github/technus/tectech/mechanics/enderStorage/EnderLinkTank.java @@ -10,6 +10,7 @@ import com.google.common.base.Objects; public class EnderLinkTank implements Serializable { + private static final long serialVersionUID = 1030297456736434221L; private final int X; private final int Y; private final int Z; diff --git a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java index 770d007002..3e8e591574 100644 --- a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java +++ b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java @@ -46,6 +46,8 @@ public class EyeOfHarmonyRecipe { HashingStrategy<ItemStack> itemStackHashingStrategy = new HashingStrategy<>() { + private static final long serialVersionUID = -3966004160368229212L; + @Override public int computeHashCode(ItemStack stack) { // Not really sure how this works or if it is "unique enough". @@ -337,6 +339,8 @@ public class EyeOfHarmonyRecipe { public static class HashMapHelper extends HashMap<Materials, Double> { + private static final long serialVersionUID = 2297018142561480614L; + void add(Materials material, double value) { // If key already exists. @@ -463,6 +467,8 @@ public class EyeOfHarmonyRecipe { private static final HashMap<String, Long> plasmaEnergyMap = new HashMap<>() { + private static final long serialVersionUID = 7933945171103801933L; + { VALID_PLASMAS.forEach( (material -> put( diff --git a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipeStorage.java b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipeStorage.java index a82f8adf9d..a27892bc65 100644 --- a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipeStorage.java +++ b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipeStorage.java @@ -34,6 +34,8 @@ public class EyeOfHarmonyRecipeStorage { // Map is unique so this is fine. HashMap<Block, String> blocksMapInverted = new HashMap<>() { + private static final long serialVersionUID = -1634011860327553337L; + { ModBlocks.blocks.forEach((dimString, dimBlock) -> { put(dimBlock, dimString); }); } @@ -41,6 +43,8 @@ public class EyeOfHarmonyRecipeStorage { private final HashMap<String, EyeOfHarmonyRecipe> recipeHashMap = new HashMap<String, EyeOfHarmonyRecipe>() { + private static final long serialVersionUID = -3501819612517400500L; + { for (String dimAbbreviation : DimensionHelper.DimNameDisplayed) { BlockDimensionDisplay blockDimensionDisplay = (BlockDimensionDisplay) ModBlocks.blocks diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java index e33cd2e56a..e42346f9db 100644 --- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java +++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_EyeOfHarmony.java @@ -1023,7 +1023,9 @@ public class GT_MetaTileEntity_EM_EyeOfHarmony extends GT_MetaTileEntity_Multibl structureBuild_EM(STRUCTURE_PIECE_MAIN, 16, 16, 0, stackSize, hintsOnly); } - private final Map<FluidStack, Long> validFluidMap = new HashMap<FluidStack, Long>() { + private final Map<FluidStack, Long> validFluidMap = new HashMap<>() { + + private static final long serialVersionUID = -8452610443191188130L; { put(Materials.Hydrogen.getGas(1), 0L); diff --git a/src/main/java/com/github/technus/tectech/util/XSTR.java b/src/main/java/com/github/technus/tectech/util/XSTR.java index c2b32e4762..9379702527 100644 --- a/src/main/java/com/github/technus/tectech/util/XSTR.java +++ b/src/main/java/com/github/technus/tectech/util/XSTR.java @@ -28,6 +28,8 @@ public class XSTR extends Random { private static final AtomicLong seedUniquifier = new AtomicLong(8682522807148012L); public static final XSTR XSTR_INSTANCE = new XSTR() { + private static final long serialVersionUID = 8778284761958251721L; + @Override public synchronized void setSeed(long seed) { if (!Thread.currentThread().getStackTrace()[2].getClassName().equals(Random.class.getName())) { |