Skip to content

Update method af adding sequenced gearshift modes #248

@Daniel99j2

Description

@Daniel99j2

SequencerInstructionsMixin is pretty messy and is hard to read.

Since this was added, I recommend updating to use this code instead as it is much cleaner and easier for others to follow.

EXAMPLE:

package com.daniel99j.createpatched.mixin;

import com.simibubi.create.content.kinetics.transmission.sequencer.SequencerInstructions;
import com.simibubi.create.foundation.gui.AllGuiTextures;
import org.spongepowered.asm.mixin.*;

@Mixin(value = SequencerInstructions.class, remap = false)
public enum CustomSequenceConditions2 {
	CREATE_PATCHED_AWAIT_BRASS_HAND("CREATE_PATCHED_AWAIT_BRASS_HAND", AllGuiTextures.SEQUENCER_AWAIT);

	@Shadow
	CustomSequenceConditions2(String parameterName, AllGuiTextures background) {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions