This file contains hidden or 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
package io.github.daomephsta.mixin; | |
import org.spongepowered.asm.mixin.Debug; | |
import org.spongepowered.asm.mixin.Mixin; | |
import org.spongepowered.asm.mixin.gen.Accessor; | |
import org.spongepowered.asm.mixin.injection.At; | |
import org.spongepowered.asm.mixin.injection.Inject; | |
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | |
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; |
This file contains hidden or 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
package io.github.daomephsta; | |
import java.lang.StackWalker.StackFrame; | |
import java.util.List; | |
public interface OriginAware | |
{ | |
public List<StackFrame> silverfish_getOrigin(); | |
} |
This file contains hidden or 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
package io.github.daomephsta; | |
import java.util.ArrayDeque; | |
import java.util.Deque; | |
import java.util.Iterator; | |
import com.google.gson.JsonArray; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonObject; | |
import com.google.gson.JsonPrimitive; |
This file contains hidden or 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
// For those who want the bleeding edge | |
plugins { | |
id 'eclipse' | |
id 'maven-publish' | |
id 'net.minecraftforge.gradle' version '5.1.+' | |
id 'wtf.gofancy.fancygradle' version '1.1.+' | |
} | |
version = "${project.modVersion}+MC${project.minecraftVersion}" | |
group = "leviathan143.loottweaker" // http://maven.apache.org/guides/mini/guide-naming-conventions.html |
This file contains hidden or 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
@Mixin({FallingBlockDestroyerItem.class, FallingBlockStabiliserItem.class}) | |
public abstract class ChargeBarTrait extends Item implements IPolarisedItem | |
{ | |
// Make the compiler happy | |
// Ignored by Mixin | |
public ChargeBarTrait(Settings settings) | |
{ | |
super(settings); | |
} |
This file contains hidden or 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
package net.fabricmc.fabric.api.client.rendering.v1; | |
import net.fabricmc.fabric.impl.client.rendering.RenderLayerAccessors; | |
import net.minecraft.client.render.RenderLayer; | |
import net.minecraft.client.render.VertexFormat; | |
/** | |
* Extend this to get access to protected members of RenderLayer, e.g. MultiPhaseParameters | |
*/ | |
public abstract class FabricRenderLayers extends RenderLayer { |
This file contains hidden or 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
/** Subinterface of BlockEntityProvider that reduces type checking and conversion boilerplate related to tickers.<br> | |
* This interface should be implemented by the {@code Block}.<br> | |
* The {@code BlockEntity} must implement {@link BlockEntityHost.Hosted}. | |
* @param <T> class of the block entity hosted by this block | |
* @author Daomephsta | |
*/ | |
public interface BlockEntityHost<T extends BlockEntity & BlockEntityHost.Hosted> extends BlockEntityProvider | |
{ | |
@Override | |
public default <U extends BlockEntity> BlockEntityTicker<U> getTicker( |
This file contains hidden or 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
package io.github.daomephsta; | |
import org.spongepowered.asm.mixin.injection.struct.InjectionInfo; | |
import io.github.daomephsta.injector.WithValueInjectionInfo; | |
import net.fabricmc.loader.api.entrypoint.PreLaunchEntrypoint; | |
public class ScratchPrelaunch implements PreLaunchEntrypoint | |
{ | |
@Override |
This file contains hidden or 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
package io.github.daomephsta; | |
import static java.util.stream.Collectors.toMap; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.function.BiConsumer; | |
import java.util.function.Consumer; | |
import java.util.function.Function; |
This file contains hidden or 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
public class RemovalSafeLootEntryIterator implements Iterator<RemovalSafeLootEntryIterator>, LootEntryRepresentation | |
{ | |
private final Iterator<? extends LootEntryRepresentation> delegate; | |
private LootEntryRepresentation currentEntry; | |
public RemovalSafeLootEntryIterator(Iterator<? extends LootEntryRepresentation> delegate) | |
{ | |
this.delegate = delegate; | |
} |
NewerOlder