Skip to content

Commit

Permalink
Port to 1.16.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
iChun committed Sep 21, 2020
1 parent c047c37 commit 76b52be
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 16 deletions.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ build
.gradle
libs
src/api
logs

# other
eclipse
Expand All @@ -26,7 +27,4 @@ run
# java
*.class
*.war
*.ear

# Temp
src/main/java/me/ichun/mods/ichunutil/old
*.ear
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = '9.0.1'
version = '10.0.0'
group = 'tabula'
archivesBaseName = 'Tabula-1.16.1'
archivesBaseName = 'Tabula-1.16.3'

sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.

Expand All @@ -25,7 +25,7 @@ minecraft {
// stable_# Stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// Simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: 'snapshot', version: '20200723-1.16.1'
mappings channel: 'snapshot', version: '20200916-1.16.2'
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.

accessTransformer = file('src/api/resources/META-INF/accesstransformer.cfg')
Expand Down Expand Up @@ -61,8 +61,8 @@ dependencies {
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
minecraft 'net.minecraftforge:forge:1.16.1-32.0.75'
implementation fg.deobf("ichunutil:iChunUtil:9.0.0")
minecraft 'net.minecraftforge:forge:1.16.3-34.0.9'
implementation fg.deobf("ichunutil:iChunUtil:10.0.0")

// You may put jars on which you depend on in ./libs or you may define them like so..
// compile "some.group:artifact:version:classifier"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void onInitGuiPost(GuiScreenEvent.InitGuiEvent.Post event)
Widget button = event.getWidgetList().get(i);
if(!intersects)
{
intersects = btn.intersects(new Rectangle(button.x, button.y, button.getWidth(), button.getHeight()));
intersects = btn.intersects(new Rectangle(button.x, button.y, button.getWidth(), button.getHeightRealms()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@
import net.minecraft.profiler.EmptyProfiler;
import net.minecraft.resources.IResource;
import net.minecraft.scoreboard.Scoreboard;
import net.minecraft.tags.ITagCollectionSupplier;
import net.minecraft.tags.NetworkTagManager;
import net.minecraft.tileentity.TileEntityType;
import net.minecraft.util.Direction;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.SoundEvent;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.registry.DynamicRegistries;
import net.minecraft.util.registry.Registry;
import net.minecraft.world.*;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.Biomes;
Expand Down Expand Up @@ -141,6 +144,12 @@ public int getSpawnZ()
return 0;
}

@Override
public float getSpawnAngle()
{
return 0;
}

@Override
public long getGameTime()
{
Expand Down Expand Up @@ -212,7 +221,19 @@ public void setSpawnZ(int z)
{

}
}, World.field_234918_g_, DimensionType.OVERWORLD, DimensionType.func_236019_a_(), () -> EmptyProfiler.INSTANCE, false, false, 0L) {

@Override
public void setSpawnAngle(float angle)
{

}
}, World.OVERWORLD, DimensionType.OVERWORLD_TYPE, () -> EmptyProfiler.INSTANCE, false, false, 0L) {
@Override
public DynamicRegistries func_241828_r()
{
return DynamicRegistries.func_239770_b_();
}

@Override
public float func_230487_a_(Direction p_230487_1_, boolean p_230487_2_)
{
Expand Down Expand Up @@ -252,7 +273,7 @@ public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress){}
public RecipeManager getRecipeManager() { return new RecipeManager();}

@Override
public NetworkTagManager getTags() { return new NetworkTagManager();}
public ITagCollectionSupplier getTags() { return ITagCollectionSupplier.TAG_COLLECTION_SUPPLIER;}

@Override
public ITickList<Block> getPendingBlockTicks() { return EmptyTickList.get();}
Expand All @@ -275,7 +296,7 @@ public List<? extends PlayerEntity> getPlayers()
@Override
public Biome getNoiseBiomeRaw(int x, int y, int z)
{
return Biomes.OCEAN;
return this.func_241828_r().getRegistry(Registry.BIOME_KEY).getOrThrow(Biomes.PLAINS);
}
};

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modLoader="javafml"
loaderVersion="[32,)" #forge version dep
loaderVersion="[34,)" #forge version dep
license="GNU Lesser General Public License v3.0"
issueTrackerURL="https://github.com/iChun/Tabula/issues"

Expand All @@ -16,6 +16,6 @@ issueTrackerURL="https://github.com/iChun/Tabula/issues"
[[dependencies.tabula]]
modId="ichunutil"
mandatory=true
versionRange="[9.0.0,10)"
versionRange="[10.0.0,11)"
ordering="NONE"
side="BOTH"
2 changes: 1 addition & 1 deletion src/main/resources/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pack":{
"pack_format":5,
"pack_format":6,
"description":"Tabula"
}
}

0 comments on commit 76b52be

Please sign in to comment.