mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-24 09:24:29 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59862bb5ad | ||
|
|
c052edf912 | ||
|
|
79f0c06fa5 | ||
|
|
53f3cffb59 |
No files matched your search
@@ -0,0 +1,2 @@
|
||||
patreon: falsepattern
|
||||
ko_fi: falsepattern
|
||||
+4
-2
@@ -21,9 +21,11 @@ dependencies {
|
||||
}
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.28")
|
||||
|
||||
implementation("com.falsepattern:falsepatternlib-mc1.7.10:0.12.1:dev")
|
||||
implementation("com.falsepattern:falsepatternlib-mc1.7.10:0.12.5:dev")
|
||||
|
||||
implementation("com.falsepattern:chunkapi-mc1.7.10:0.3.2:dev")
|
||||
implementation("com.falsepattern:chunkapi-mc1.7.10:0.4.0:dev")
|
||||
|
||||
compileOnly("org.jetbrains:annotations:24.0.1")
|
||||
|
||||
////////////////Patched mods////////////////
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
version = Tags.VERSION,
|
||||
name = Tags.MODNAME,
|
||||
acceptedMinecraftVersions = "[1.7.10]",
|
||||
dependencies = "required-after:chunkapi@[0.3.2,);required-after:falsepatternlib@[0.12.1,);required-after:gasstation@[0.5.0,);after:antiidconflict")
|
||||
dependencies = "required-after:chunkapi@[0.4.0,0.5.0);required-after:falsepatternlib@[0.12.5,);required-after:gasstation@[0.5.0,);after:antiidconflict")
|
||||
public class EndlessIDs {
|
||||
public static final byte[] ZERO_LENGTH_BIOME_ARRAY_PLACEHOLDER = new byte[0];
|
||||
public static final byte[] FAKE_BIOME_ARRAY_PLACEHOLDER = new byte[256];
|
||||
|
||||
@@ -5,6 +5,8 @@ import com.falsepattern.endlessids.Hooks;
|
||||
import com.falsepattern.endlessids.Tags;
|
||||
import com.falsepattern.endlessids.mixin.helpers.IChunkMixin;
|
||||
import lombok.var;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
@@ -72,4 +74,25 @@ public class BiomeManager implements ChunkDataManager, ChunkDataManager.PacketDa
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull String version() {
|
||||
return Tags.MODID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable String newInstallDescription() {
|
||||
return "EndlessIDs extended biome data. Vanilla biome data is limited to 256 biomes. This allows for 65536 biomes.";
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull String uninstallMessage() {
|
||||
return "EndlessIDs extended biome data has been uninstalled. Biomes are limited to 256,\n" +
|
||||
"and any biomes with IDs above 255 in the save will be corrupted.";
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable String versionChangeMessage(String priorVersion) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,8 @@ import com.falsepattern.endlessids.Tags;
|
||||
import com.falsepattern.endlessids.mixin.helpers.IExtendedBlockStorageMixin;
|
||||
import lombok.val;
|
||||
import lombok.var;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
@@ -183,4 +185,24 @@ public class BlockIDManager implements ChunkDataManager, ChunkDataManager.Packet
|
||||
}
|
||||
ebs.setB3(b3);
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull String version() {
|
||||
return Tags.VERSION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable String newInstallDescription() {
|
||||
return "EndlessIDs extended block IDs. Vanilla worlds can be converted to EndlessIDs worlds safely.";
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull String uninstallMessage() {
|
||||
return "EndlessIDs extended block IDs removed. Any blocks with IDs above 4095 will get corrupted.";
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable String versionChangeMessage(String priorVersion) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,8 @@ import com.falsepattern.endlessids.Tags;
|
||||
import com.falsepattern.endlessids.mixin.helpers.IExtendedBlockStorageMixin;
|
||||
import lombok.val;
|
||||
import lombok.var;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
@@ -131,4 +133,24 @@ public class BlockMetaManager implements ChunkDataManager, ChunkDataManager.Pack
|
||||
}
|
||||
ebs.setM2(m2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull String version() {
|
||||
return Tags.VERSION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable String newInstallDescription() {
|
||||
return "EndlessIDs extended block metadata. Vanilla worlds can be converted to EndlessIDs worlds safely.";
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull String uninstallMessage() {
|
||||
return "EndlessIDs extended block metadata removed. Any blocks with metadata above 15 will get corrupted.";
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable String versionChangeMessage(String priorVersion) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
-25
@@ -14,14 +14,6 @@ import net.minecraft.entity.EntityList;
|
||||
|
||||
@Mixin(EntityList.class)
|
||||
public abstract class EntityListMixin {
|
||||
@Shadow
|
||||
public static void addMapping(Class p_75618_0_, String p_75618_1_, int p_75618_2_) {
|
||||
}
|
||||
|
||||
@Shadow
|
||||
public static void addMapping(Class p_75614_0_, String p_75614_1_, int p_75614_2_, int p_75614_3_, int p_75614_4_) {
|
||||
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "addMapping(Ljava/lang/Class;Ljava/lang/String;I)V",
|
||||
constant = @Constant(intValue = VanillaConstants.maxEntityID),
|
||||
@@ -29,21 +21,4 @@ public abstract class EntityListMixin {
|
||||
private static int extendRange(int constant) {
|
||||
return ExtendedConstants.maxEntityID;
|
||||
}
|
||||
|
||||
@Redirect(method = "<clinit>",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/entity/EntityList;addMapping(Ljava/lang/Class;Ljava/lang/String;I)V"),
|
||||
require = 1)
|
||||
private static void messUpMappings1(Class p_75618_0_, String p_75618_1_, int p_75618_2_) {
|
||||
addMapping(p_75618_0_, p_75618_1_, p_75618_2_ * 100);
|
||||
}
|
||||
|
||||
|
||||
@Redirect(method = "<clinit>",
|
||||
at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/entity/EntityList;addMapping(Ljava/lang/Class;Ljava/lang/String;III)V"),
|
||||
require = 1)
|
||||
private static void messUpMappings2(Class p_75614_0_, String p_75614_1_, int p_75614_2_, int p_75614_3_, int p_75614_4_) {
|
||||
addMapping(p_75614_0_, p_75614_1_, p_75614_2_ * 100, p_75614_3_, p_75614_4_);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user