Skip to content

Commit

Permalink
FML is no more. FML has ceased to be. FML's expired and gone to meet …
Browse files Browse the repository at this point in the history
…its maker. FML's a stiff! Bereft of life, FML rests in peace.
  • Loading branch information
cpw committed Aug 2, 2015
1 parent 9a859f8 commit 614bbcb
Show file tree
Hide file tree
Showing 356 changed files with 2,676 additions and 235 deletions.
File renamed without changes.
File renamed without changes.
22 changes: 11 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ minecraft {
}

projects {
fml {
rootDir 'fml'
patchDir "fml/patches/minecraft"
patchAfter "clean"
genPatchesFrom "clean"

with common
}
// fml {
// rootDir 'fml'
// patchDir "fml/patches/minecraft"
// patchAfter "clean"
// genPatchesFrom "clean"
//
// with common
// }
forge {
rootDir "."
patchDir "patches/minecraft"
patchAfter "fml"
genPatchesFrom "fml"
patchAfter "clean"
genPatchesFrom "clean"

with common
}
Expand All @@ -61,7 +61,7 @@ minecraft {
group = 'net.minecraftforge'
version = getVersionFromJava(file("src/main/java/net/minecraftforge/common/ForgeVersion.java"))

extractFmlSources { exclude "**/SideOnly.java", "**/Side.java" }
extractForgeSources { exclude "**/SideOnly.java", "**/Side.java" }

genGradleProjects { addTestCompileDep "junit:junit:4.12" }

Expand Down
2 changes: 0 additions & 2 deletions fml/src/main/resources/fml.exc

This file was deleted.

74 changes: 0 additions & 74 deletions fml/src/main/resources/fml_at.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions fml/src/main/resources/fml_marker.cfg

This file was deleted.

44 changes: 33 additions & 11 deletions patches/minecraft/net/minecraft/block/Block.java.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
--- ../src-base/minecraft/net/minecraft/block/Block.java
+++ ../src-work/minecraft/net/minecraft/block/Block.java
@@ -140,7 +140,8 @@
@@ -39,8 +39,9 @@
public class Block
{
private static final ResourceLocation field_176230_a = new ResourceLocation("air");
- public static final RegistryNamespacedDefaultedByKey field_149771_c = new RegistryNamespacedDefaultedByKey(field_176230_a);
- public static final ObjectIntIdentityMap field_176229_d = new ObjectIntIdentityMap();
+ public static final RegistryNamespacedDefaultedByKey field_149771_c = net.minecraftforge.fml.common.registry.GameData.getBlockRegistry();
+ @Deprecated //Modders: DO NOT use this! Use GameRegistry
+ public static final ObjectIntIdentityMap field_176229_d = net.minecraftforge.fml.common.registry.GameData.getBlockStateIDMap();
private CreativeTabs field_149772_a;
public static final Block.SoundType field_149769_e = new Block.SoundType("stone", 1.0F, 1.0F);
public static final Block.SoundType field_149766_f = new Block.SoundType("wood", 1.0F, 1.0F);
@@ -124,6 +125,9 @@
private String field_149770_b;
private static final String __OBFID = "CL_00000199";

+ public final net.minecraftforge.fml.common.registry.RegistryDelegate<Block> delegate =
+ ((net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry)field_149771_c).getDelegate(this, Block.class);
+
public static int func_149682_b(Block p_149682_0_)
{
return field_149771_c.func_148757_b(p_149682_0_);
@@ -136,7 +140,8 @@

public static Block func_149729_e(int p_149729_0_)
{
Expand All @@ -10,7 +32,7 @@
}

public static IBlockState func_176220_d(int p_176220_0_)
@@ -304,7 +305,7 @@
@@ -300,7 +305,7 @@

public boolean func_176200_f(World p_176200_1_, BlockPos p_176200_2_)
{
Expand All @@ -19,7 +41,7 @@
}

public Block func_149711_c(float p_149711_1_)
@@ -341,9 +342,10 @@
@@ -337,9 +342,10 @@
return this.field_149789_z;
}

Expand All @@ -31,7 +53,7 @@
}

public final void func_149676_a(float p_149676_1_, float p_149676_2_, float p_149676_3_, float p_149676_4_, float p_149676_5_, float p_149676_6_)
@@ -360,13 +362,13 @@
@@ -356,13 +362,13 @@
public int func_176207_c(IBlockAccess p_176207_1_, BlockPos p_176207_2_)
{
Block block = p_176207_1_.func_180495_p(p_176207_2_).func_177230_c();
Expand All @@ -47,7 +69,7 @@
}
else
{
@@ -442,7 +444,13 @@
@@ -438,7 +444,13 @@

public void func_176213_c(World p_176213_1_, BlockPos p_176213_2_, IBlockState p_176213_3_) {}

Expand All @@ -62,7 +84,7 @@

public int func_149745_a(Random p_149745_1_)
{
@@ -456,8 +464,7 @@
@@ -452,8 +464,7 @@

public float func_180647_a(EntityPlayer p_180647_1_, World p_180647_2_, BlockPos p_180647_3_)
{
Expand All @@ -72,7 +94,7 @@
}

public final void func_176226_b(World p_176226_1_, BlockPos p_176226_2_, IBlockState p_176226_3_, int p_176226_4_)
@@ -467,20 +474,16 @@
@@ -463,20 +474,16 @@

public void func_180653_a(World p_180653_1_, BlockPos p_180653_2_, IBlockState p_180653_3_, float p_180653_4_, int p_180653_5_)
{
Expand All @@ -98,7 +120,7 @@
}
}
}
@@ -488,8 +491,13 @@
@@ -484,8 +491,13 @@

public static void func_180635_a(World p_180635_0_, BlockPos p_180635_1_, ItemStack p_180635_2_)
{
Expand All @@ -113,7 +135,7 @@
float f = 0.5F;
double d0 = (double)(p_180635_0_.field_73012_v.nextFloat() * f) + (double)(1.0F - f) * 0.5D;
double d1 = (double)(p_180635_0_.field_73012_v.nextFloat() * f) + (double)(1.0F - f) * 0.5D;
@@ -674,7 +682,7 @@
@@ -670,7 +682,7 @@

public boolean func_176196_c(World p_176196_1_, BlockPos p_176196_2_)
{
Expand All @@ -122,7 +144,7 @@
}

public boolean func_180639_a(World p_180639_1_, BlockPos p_180639_2_, IBlockState p_180639_3_, EntityPlayer p_180639_4_, EnumFacing p_180639_5_, float p_180639_6_, float p_180639_7_, float p_180639_8_)
@@ -776,25 +784,35 @@
@@ -772,25 +784,35 @@
p_180657_2_.func_71029_a(StatList.field_75934_C[func_149682_b(this)]);
p_180657_2_.func_71020_j(0.025F);

Expand Down Expand Up @@ -161,7 +183,7 @@
}

protected ItemStack func_180643_i(IBlockState p_180643_1_)
@@ -971,6 +989,1033 @@
@@ -967,6 +989,1033 @@
return Block.EnumOffsetType.NONE;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- ../src-base/minecraft/net/minecraft/client/ClientBrandRetriever.java
+++ ../src-work/minecraft/net/minecraft/client/ClientBrandRetriever.java
@@ -10,6 +10,6 @@

public static String getClientModName()
{
- return "vanilla";
+ return net.minecraftforge.fml.common.FMLCommonHandler.instance().getModName();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--- ../src-base/minecraft/net/minecraft/client/LoadingScreenRenderer.java
+++ ../src-work/minecraft/net/minecraft/client/LoadingScreenRenderer.java
@@ -139,6 +139,10 @@
GlStateManager.func_179086_m(16640);
}

+ try
+ {
+ if (!net.minecraftforge.fml.client.FMLClientHandler.instance().handleLoadingScreen(scaledresolution)) //FML Don't render while FML's pre-screen is rendering
+ {
Tessellator tessellator = Tessellator.func_178181_a();
WorldRenderer worldrenderer = tessellator.func_178180_c();
this.field_73725_b.func_110434_K().func_110577_a(Gui.field_110325_k);
@@ -177,6 +181,12 @@
GlStateManager.func_179120_a(770, 771, 1, 0);
this.field_73725_b.field_71466_p.func_175063_a(this.field_73726_c, (float)((l - this.field_73725_b.field_71466_p.func_78256_a(this.field_73726_c)) / 2), (float)(i1 / 2 - 4 - 16), 16777215);
this.field_73725_b.field_71466_p.func_175063_a(this.field_73727_a, (float)((l - this.field_73725_b.field_71466_p.func_78256_a(this.field_73727_a)) / 2), (float)(i1 / 2 - 4 + 8), 16777215);
+ }
+ }
+ catch (java.io.IOException e)
+ {
+ com.google.common.base.Throwables.propagate(e);
+ } //FML End
this.field_146588_g.func_147609_e();

if (OpenGlHelper.func_148822_b())
Loading

0 comments on commit 614bbcb

Please sign in to comment.