Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
buildscript {
repositories {
jcenter()
maven { url = "https://files.minecraftforge.net/maven" }
maven { url = "https://repo.spongepowered.org/maven" }
mavenCentral()
maven {
name = "forge"
url = "https://maven.minecraftforge.net/"
}
maven { url = "https://repo.spongepowered.org/repository/maven-public/" }
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
classpath "com.github.asbyth:ForgeGradle:86b23926f3"
classpath "com.github.LXGaming:mixingradle:d75e32e743"
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
}
}
Expand Down Expand Up @@ -46,6 +51,7 @@ dependencies {
compile('com.fasterxml.jackson.core:jackson-core:2.10.2')
compile('info.bliki.wiki:bliki-core:3.1.0')
implementation name: 'Morus-1.0'
annotationProcessor('org.spongepowered:mixin:0.7.11-SNAPSHOT')
}

mixin {
Expand Down
5 changes: 2 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Mon Sep 14 12:28:28 PDT 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(Container.class)
public class MixinContainer {
public abstract class MixinContainer {

@Inject(method = "putStacksInSlots", at=@At("RETURN"))
public void putStacksInSlots(ItemStack[] stacks, CallbackInfo ci) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin(EffectRenderer.class)
public class MixinEffectRenderer {
public abstract class MixinEffectRenderer {

@Redirect(method="renderParticles", at=@At(
value = "INVOKE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.spongepowered.asm.mixin.injection.ModifyVariable;

@Mixin(EntityRenderer.class)
public class MixinEntityRenderer {
public abstract class MixinEntityRenderer {

//orientCamera
@ModifyVariable(method="orientCamera", at=@At(value="STORE"), ordinal = 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin({GuiChest.class})
public class MixinGuiChest {
public abstract class MixinGuiChest {

private static final String TARGET = "Lnet/minecraft/client/renderer/texture/TextureManager;" +
"bindTexture(Lnet/minecraft/util/ResourceLocation;)V";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin({GuiIngame.class})
public class MixinGuiIngame {
public abstract class MixinGuiIngame {

private static final String TARGET = "Lnet/minecraft/scoreboard/ScorePlayerTeam;" +
"formatPlayerName(Lnet/minecraft/scoreboard/Team;Ljava/lang/String;)Ljava/lang/String;";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(GuiInventory.class)
public class MixinGuiInventory {
public abstract class MixinGuiInventory {

@Inject(method="drawGuiContainerForegroundLayer", at=@At("HEAD"), cancellable = true)
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY, CallbackInfo ci) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(GuiScreen.class)
public class MixinGuiScreen {
public abstract class MixinGuiScreen {

@Inject(method = "sendChatMessage(Ljava/lang/String;Z)V", at=@At("HEAD"))
public void onSendChatMessage(String message, boolean addToChat, CallbackInfo ci) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


@Mixin({InventoryEffectRenderer.class})
public class MixinInventoryEffectRenderer {
public abstract class MixinInventoryEffectRenderer {

@ModifyVariable(method="updateActivePotionEffects", at=@At(value="STORE"))
public boolean hasVisibleEffect_updateActivePotionEffects(boolean hasVisibleEffect) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(ItemCameraTransforms.class)
public class MixinItemCameraTransforms {
public abstract class MixinItemCameraTransforms {

@Inject(method="applyTransform", at=@At("HEAD"))
public void applyTransform(ItemCameraTransforms.TransformType type, CallbackInfo ci) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin({ItemStack.class})
public class MixinItemStack {
public abstract class MixinItemStack {

@Inject(method="hasEffect", at=@At("HEAD"), cancellable = true)
public void hasEffect(CallbackInfoReturnable cir) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(NetHandlerPlayClient.class)
public class MixinNetHandlerPlayClient {
public abstract class MixinNetHandlerPlayClient {
private static final String TARGET = "Lnet/minecraft/entity/player/EntityPlayer;" +
"setPositionAndRotation(DDDFF)V";
@Redirect(method="handlePlayerPosLook", at=@At(value="INVOKE", target=TARGET))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(PlayerControllerMP.class)
public class MixinPlayerControllerMP {
public abstract class MixinPlayerControllerMP {

@Inject(method="clickBlock", at=@At("HEAD"), cancellable = true)
public void clickBlock(BlockPos loc, EnumFacing face, CallbackInfoReturnable<Boolean> cir) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(Render.class)
public class MixinRender {
public abstract class MixinRender {

@Inject(method="bindEntityTexture", at=@At("HEAD"), cancellable = true)
public void bindEntityTexture(Entity entity, CallbackInfoReturnable<Boolean> cir) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(RenderGlobal.class)
public class MixinRenderGlobal {
public abstract class MixinRenderGlobal {

//setupTerrain
@ModifyVariable(method="setupTerrain", at=@At(value="STORE"), ordinal = 4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(TileEntitySkullRenderer.class)
public class MixinTileEntitySkullRenderer {
public abstract class MixinTileEntitySkullRenderer {

@Inject(method="renderSkull", at=@At("HEAD"), cancellable = true)
public void renderSkull(float xOffset, float yOffset, float zOffset, EnumFacing placedDirection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(World.class)
public class MixinWorld {
public abstract class MixinWorld {
@Inject(method="spawnParticle(IZDDDDDD[I)V", at=@At("HEAD"), cancellable = true)
public void spawnParticle(int particleID, boolean p_175720_2_, double xCood, double yCoord, double zCoord,
double xOffset, double yOffset, double zOffset, int[] p_175720_15_, CallbackInfo ci) {
Expand Down