Skip to content
This repository has been archived by the owner on Jan 4, 2018. It is now read-only.

Commit

Permalink
1.7.10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rmichela committed Jul 22, 2014
1 parent 8293817 commit d50042c
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 36 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<groupId>com.ryanmichela</groupId>
<artifactId>Subterranea</artifactId>
<name>Subterranea</name>
<version>1.7.8-R01</version>
<version>1.7.10-R0.1</version>
<url>http://dev.bukkit.org/server-mods/subterranea/</url>

<properties>
Expand Down Expand Up @@ -47,14 +47,14 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<version>1.7.8-R0.1-SNAPSHOT</version>
<version>1.7.10-R0.1-SNAPSHOT</version>
<scope>provided</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.ryanmichela</groupId>
<artifactId>GiantCaves</artifactId>
<version>1.7.5-R01</version>
<version>1.7.10-R01</version>
<scope>provided</scope>
<type>jar</type>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea;

import net.minecraft.server.v1_7_R3.ChunkSection;
import net.minecraft.server.v1_7_R4.ChunkSection;

/**
* Created by rmichela on 3/9/14.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import com.ryanmichela.subterranea.entity.SEntitySquid;
import com.ryanmichela.subterranea.worldgen.SWorldProvider;
import com.ryanmichela.undergroundbiomes.UndergroundBiomePopulator;
import net.minecraft.server.v1_7_R3.*;
import org.bukkit.craftbukkit.v1_7_R3.CraftWorld;
import net.minecraft.server.v1_7_R4.*;
import org.bukkit.craftbukkit.v1_7_R4.CraftWorld;
import org.bukkit.generator.BlockPopulator;
import org.bukkit.generator.ChunkGenerator;
import org.bukkit.plugin.Plugin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ryanmichela.subterranea;

import com.ryanmichela.subterranea.worldgen.SWorldGenCaves;
import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

import java.util.Arrays;
import java.util.Random;
Expand Down Expand Up @@ -72,6 +72,6 @@ public ChunkSection[] getChunkSectionsAt(int xx, int zz) {
}

Chunk localChunk = new Chunk(n, liftedWorld, blockData, xx, zz);
return localChunk.i();
return localChunk.getSections();
}
}
8 changes: 4 additions & 4 deletions src/main/java/com/ryanmichela/subterranea/SPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import com.ryanmichela.subterranea.worldgen.SWorldGenLargeFeatureStart;
import com.ryanmichela.subterranea.worldgen.SWorldGenPyramidPiece;
import com.ryanmichela.subterranea.worldgen.SWorldProvider;
import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;
import org.bukkit.ChatColor;
import org.bukkit.craftbukkit.libs.joptsimple.OptionException;
import org.bukkit.craftbukkit.libs.joptsimple.OptionParser;
import org.bukkit.craftbukkit.libs.joptsimple.OptionSet;
import org.bukkit.craftbukkit.v1_7_R3.CraftChunk;
import org.bukkit.craftbukkit.v1_7_R3.CraftWorld;
import org.bukkit.craftbukkit.v1_7_R4.CraftChunk;
import org.bukkit.craftbukkit.v1_7_R4.CraftWorld;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.world.ChunkLoadEvent;
Expand Down Expand Up @@ -71,7 +71,7 @@ public void OnChunkLoad(ChunkLoadEvent event) {
// As a solution, block data is cached until after the chunk is generated and then reapplied.
if (event.isNewChunk() && ((CraftWorld)event.getChunk().getWorld()).getHandle().worldProvider instanceof SWorldProvider) {
Chunk nmsChunk = ((CraftChunk)event.getChunk()).getHandle();
ChunkSection[] nmsSections = nmsChunk.i();
ChunkSection[] nmsSections = nmsChunk.getSections();
ChunkSection[] chunkData = chunkDataCache.claimChunkData();

for(int i = 0; i < 16; i++) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.biome;

import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

import java.util.Random;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.ryanmichela.subterranea.ReflectionUtil;
import com.ryanmichela.subterranea.worldgen.SWorldProvider;
import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

import java.util.Random;

Expand Down Expand Up @@ -43,7 +43,7 @@ public void a(World world, Random random, int i, int j) {
int k1 = i + random.nextInt(16);
int i2 = random.nextInt(64);
int k2 = j + random.nextInt(16);
((WorldGenerator) ReflectionUtil.getProtectedValue(this, "aC")).a(world, random, k1, i2, k2);
((WorldGenerator) ReflectionUtil.getProtectedValue(this, "aC")).generate(world, random, k1, i2, k2);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.ryanmichela.subterranea.GeneratorOptions;
import com.ryanmichela.subterranea.ReflectionUtil;
import com.ryanmichela.subterranea.worldgen.SWorldProvider;
import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

/**
* Copyright 2013 Ryan Michela
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.biome;

import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

import java.util.Random;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.biome;

import net.minecraft.server.v1_7_R3.BiomeTemperature;
import net.minecraft.server.v1_7_R4.BiomeTemperature;

/**
* Created by rmichela on 3/10/14.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.biome;

import net.minecraft.server.v1_7_R3.BiomeTemperature;
import net.minecraft.server.v1_7_R4.BiomeTemperature;

/**
* Created by rmichela on 3/10/14.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.ryanmichela.subterranea.worldgen.SWorldGenVines;
import com.ryanmichela.subterranea.worldgen.SWorldProvider;
import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

import java.util.Random;

Expand Down Expand Up @@ -37,7 +37,7 @@ public void a(World world, Random random, int i, int j) {
byte b0 = 64;
int i1 = j + random.nextInt(16) + 8;

worldgenvines.a(world, random, l, b0, i1);
worldgenvines.generate(world, random, l, b0, i1);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.biome;

import net.minecraft.server.v1_7_R3.BiomeTemperature;
import net.minecraft.server.v1_7_R4.BiomeTemperature;

/**
* Created by rmichela on 3/10/14.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ryanmichela.subterranea.biome;

import com.ryanmichela.subterranea.worldgen.SWorldProvider;
import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

import java.util.Arrays;
import java.util.Random;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.biome;

import net.minecraft.server.v1_7_R3.BiomeTemperature;
import net.minecraft.server.v1_7_R4.BiomeTemperature;

/**
* Created by rmichela on 3/10/14.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.entity;

import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

/**
* Copyright 2013 Ryan Michela
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ryanmichela.subterranea.entity;

import net.minecraft.server.v1_7_R3.EntitySquid;
import net.minecraft.server.v1_7_R3.World;
import net.minecraft.server.v1_7_R4.EntitySquid;
import net.minecraft.server.v1_7_R4.World;

/**
* Copyright 2013 Ryan Michela
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.worldgen;

import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

import java.util.Random;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ryanmichela.subterranea.worldgen;

import net.minecraft.server.v1_7_R3.StructureStart;
import net.minecraft.server.v1_7_R3.WorldGenLargeFeature;
import net.minecraft.server.v1_7_R4.StructureStart;
import net.minecraft.server.v1_7_R4.WorldGenLargeFeature;

/**
* Copyright 2013 Ryan Michela
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.worldgen;

import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

import java.util.Random;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.worldgen;

import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

import java.util.Random;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.worldgen;

import net.minecraft.server.v1_7_R3.*;
import net.minecraft.server.v1_7_R4.*;

import java.util.Random;

Expand All @@ -9,7 +9,7 @@
*/
public class SWorldGenVines extends WorldGenVines {
@Override
public boolean a(World world, Random random, int i, int j, int k) {
public boolean generate(World world, Random random, int i, int j, int k) {
int l = i;
int i1 = k;
label0:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ryanmichela.subterranea.worldgen;

import net.minecraft.server.v1_7_R3.WorldProviderNormal;
import net.minecraft.server.v1_7_R4.WorldProviderNormal;

/**
* Copyright 2013 Ryan Michela
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Subterranea
version: "1.7.5-R01"
version: "1.7.10-R0.1"
author: Ryan Michela
main: com.ryanmichela.subterranea.SPlugin
prefix: "Subterranea"
Expand Down

0 comments on commit d50042c

Please sign in to comment.