-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
299 additions
and
94 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 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
org.gradle.jvmargs = -Xmx1G | ||
org.gradle.parallel = true | ||
|
||
version = 11.0.0 | ||
version = 11.1.0 | ||
maven_group = net.ludocrypt | ||
archives_base_name = limlib |
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
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
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
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.
11 changes: 0 additions & 11 deletions
11
src/main/java/net/ludocrypt/limlib/impl/SaveStorageSupplier.java
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
src/main/java/net/ludocrypt/limlib/impl/access/TagGroupLoaderAccess.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,16 @@ | ||
package net.ludocrypt.limlib.impl.access; | ||
|
||
import java.util.Optional; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
import net.minecraft.registry.Registry; | ||
import net.minecraft.registry.RegistryKey; | ||
|
||
public interface TagGroupLoaderAccess { | ||
|
||
public Optional<RegistryKey<? extends Registry<?>>> getRegistryKey(); | ||
|
||
public void setRegistryKey(@Nullable RegistryKey<? extends Registry<?>> key); | ||
|
||
} |
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
20 changes: 20 additions & 0 deletions
20
src/main/java/net/ludocrypt/limlib/impl/mixin/BootstrapMixin.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,20 @@ | ||
package net.ludocrypt.limlib.impl.mixin; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.At.Shift; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
import net.ludocrypt.limlib.impl.Limlib; | ||
import net.minecraft.Bootstrap; | ||
|
||
@Mixin(Bootstrap.class) | ||
public class BootstrapMixin { | ||
|
||
@Inject(method = "initialize", at = @At(value = "INVOKE", target = "Lnet/minecraft/recipe/BrewingRecipeRegistry;registerDefaults()V", shift = Shift.AFTER)) | ||
private static void limlib$initialize(CallbackInfo ci) { | ||
Limlib.onInitialize(); | ||
} | ||
|
||
} |
39 changes: 39 additions & 0 deletions
39
src/main/java/net/ludocrypt/limlib/impl/mixin/EntityMixin.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,39 @@ | ||
package net.ludocrypt.limlib.impl.mixin; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Unique; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
|
||
import net.ludocrypt.limlib.api.LimlibTravelling.Travelling; | ||
import net.minecraft.entity.Entity; | ||
import net.minecraft.server.world.ServerWorld; | ||
import net.minecraft.world.TeleportTarget; | ||
|
||
@Mixin(Entity.class) | ||
public class EntityMixin implements Travelling { | ||
|
||
@Unique | ||
public TeleportTarget limlib$overriddenTeleportTarget = null; | ||
|
||
@Inject(method = "getTeleportTarget(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/world/TeleportTarget;", at = @At("HEAD"), cancellable = true) | ||
public void limlib$getTeleportTarget(ServerWorld destination, CallbackInfoReturnable<TeleportTarget> cir) { | ||
|
||
if (this.limlib$overriddenTeleportTarget != null) { | ||
cir.setReturnValue(this.limlib$overriddenTeleportTarget); | ||
} | ||
|
||
} | ||
|
||
@Override | ||
public TeleportTarget limlib$getTeleportTarget() { | ||
return limlib$overriddenTeleportTarget; | ||
} | ||
|
||
@Override | ||
public void limlib$setTeleportTarget(TeleportTarget teleportTarget) { | ||
this.limlib$overriddenTeleportTarget = teleportTarget; | ||
} | ||
|
||
} |
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
Oops, something went wrong.