Fix mixin warnings
This commit is contained in:
parent
1814d96d6c
commit
3a8bc41dd4
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user