-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'bitbucket/master'
- Loading branch information
Showing
19 changed files
with
389 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
src/main/java/carpetclient/mixinInterface/AMixinRegistryNamespaced.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package carpetclient.mixinInterface; | ||
|
||
public interface AMixinRegistryNamespaced { | ||
public void clear(); | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/carpetclient/mixins/IMixinCraftingManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package carpetclient.mixins; | ||
|
||
import net.minecraft.item.crafting.CraftingManager; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
@Mixin(CraftingManager.class) | ||
public interface IMixinCraftingManager { | ||
|
||
@Accessor("nextAvailableId") | ||
static void setNextAvailableId(int i) { | ||
throw new AssertionError("Mixin didn't patch me!"); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/carpetclient/mixins/IMixinRecipeBookClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package carpetclient.mixins; | ||
|
||
import net.minecraft.client.gui.recipebook.RecipeList; | ||
import net.minecraft.client.util.RecipeBookClient; | ||
import net.minecraft.creativetab.CreativeTabs; | ||
import net.minecraft.item.ItemStack; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
|
||
@Mixin(RecipeBookClient.class) | ||
public interface IMixinRecipeBookClient { | ||
|
||
@Invoker | ||
static RecipeList callNewRecipeList(CreativeTabs srcTab) { | ||
return null; | ||
} | ||
|
||
@Invoker | ||
static CreativeTabs callGetItemStackTab(ItemStack stackIn) { | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/carpetclient/mixins/MixinNettyCompressionDecoder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package carpetclient.mixins; | ||
|
||
import net.minecraft.network.NettyCompressionDecoder; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(NettyCompressionDecoder.class) | ||
public class MixinNettyCompressionDecoder { | ||
@ModifyConstant(method = "decode", constant = @Constant(intValue = 2097152), remap = false) | ||
private static int limitExpander(int timeoutSeconds) { | ||
return Integer.MAX_VALUE; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/carpetclient/mixins/MixinNettyVarint21FrameDecoder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package carpetclient.mixins; | ||
|
||
import net.minecraft.network.NettyVarint21FrameDecoder; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(NettyVarint21FrameDecoder.class) | ||
public class MixinNettyVarint21FrameDecoder { | ||
@ModifyConstant(method = "decode", constant = @Constant(intValue = 3), remap = false) | ||
private static int limitExpander(int timeoutSeconds) { | ||
return 5; | ||
} | ||
} |
Oops, something went wrong.