Fix mixin warnings

This commit is contained in:
embeddedt 2023-04-07 19:03:00 -04:00
parent 1814d96d6c
commit 3a8bc41dd4
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
6 changed files with 6 additions and 6 deletions

View File

@ -15,7 +15,7 @@ public class TwilightForestModMixin {
}
@Inject(method = "lambda$init$1", at = @At(value = "INVOKE", target = "Ltwilightforest/block/TFBlocks;tfCompostables()V", ordinal = 0))
@Inject(method = "lambda$init$1", at = @At(value = "INVOKE", target = "Ltwilightforest/block/TFBlocks;tfCompostables()V", ordinal = 0), remap = false)
private static void doBiomeTypes(CallbackInfo ci) {
BiomeKeys.addBiomeTypes();
}

View File

@ -9,7 +9,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(NarratorChatListener.class)
public class NarratorMixin {
@Redirect(method = "<init>", at = @At(value = "INVOKE", target = "Lcom/mojang/text2speech/Narrator;getNarrator()Lcom/mojang/text2speech/Narrator;"))
@Redirect(method = "<init>", at = @At(value = "INVOKE", target = "Lcom/mojang/text2speech/Narrator;getNarrator()Lcom/mojang/text2speech/Narrator;", remap = false))
private Narrator useDummyNarrator() {
return new NarratorDummy();
}

View File

@ -9,7 +9,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(InputConstants.class)
public class InputConstantsMixin {
@Redirect(method = "isKeyDown", at = @At(value = "INVOKE", target = "Lorg/lwjgl/glfw/GLFW;glfwGetKey(JI)I"))
@Redirect(method = "isKeyDown", at = @At(value = "INVOKE", target = "Lorg/lwjgl/glfw/GLFW;glfwGetKey(JI)I", remap = false))
private static int offThreadKeyFetch(long win, int k) {
if(RenderSystem.isOnRenderThreadOrInit())
return GLFW.glfwGetKey(win, k);

View File

@ -22,7 +22,7 @@ import java.util.concurrent.ExecutionException;
public class ChunkGeneratorMixin {
@Shadow @Final private List<ChunkPos> strongholdPositions;
@Inject(method = "generateStrongholds", at = @At(value = "INVOKE", target = "Lcom/google/common/collect/Lists;newArrayList()Ljava/util/ArrayList;", ordinal = 0), cancellable = true)
@Inject(method = "generateStrongholds", at = @At(value = "INVOKE", target = "Lcom/google/common/collect/Lists;newArrayList()Ljava/util/ArrayList;", ordinal = 0, remap = false), cancellable = true)
private void useCachedDataIfAvailable(CallbackInfo ci) {
ServerLevel level = searchLevel();
if(level == null) {

View File

@ -14,7 +14,7 @@ import java.util.Set;
public abstract class CustomIngredientMixin implements ICachedIngredientJS {
@Shadow @Final private Ingredient ingredient;
@Shadow public abstract Set<ItemStackJS> getStacks();
@Shadow(remap = false) public abstract Set<ItemStackJS> getStacks();
@Override
public Set<ItemStackJS> getCachedStacks() {

View File

@ -19,7 +19,7 @@ import java.util.Set;
public abstract class TagIngredientJSMixin implements ICachedIngredientJS {
@Shadow public abstract Tag<Item> getActualTag();
@Shadow public abstract Set<ItemStackJS> getStacks();
@Shadow(remap = false) public abstract Set<ItemStackJS> getStacks();
/**
* @author embeddedt