mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-06 00:53:43 +01:00
Minor fix-ups
- Fix some contraption transforms (fix Fabricators-of-Create/Create#591) - Remove AllStitchedTextures - Organize imports - Swap jarjar versions and ranges to ensure more reliable version matching - Add the jarJarRelease task to the jarjar group
This commit is contained in:
parent
0588dd5124
commit
1b2ca00c44
9 changed files with 15 additions and 30 deletions
|
@ -140,12 +140,12 @@ repositories {
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
||||||
|
|
||||||
jarJar(group: 'com.tterrag.registrate', name: 'Registrate', version: '[MC1.18.2-1.1.3,)') {
|
jarJar("com.tterrag.registrate:Registrate:${registrate_version}") {
|
||||||
jarJar.pin(it, project.registrate_version)
|
jarJar.ranged(it, '[MC1.18.2-1.1.3,)')
|
||||||
}
|
}
|
||||||
// Uncomment once Forge fixes mixins for included jars
|
// Uncomment once Forge fixes mixins for included jars
|
||||||
//jarJar(group: 'com.jozufozu.flywheel', name: "flywheel-forge-${flywheel_minecraft_version}", version: '[0.6.8,0.6.9)') {
|
//jarJar("com.jozufozu.flywheel:flywheel-forge-${flywheel_minecraft_version}:${flywheel_version}") {
|
||||||
// jarJar.pin(it, project.flywheel_version)
|
// jarJar.ranged(it, '[0.6.8,0.6.9)')
|
||||||
//}
|
//}
|
||||||
|
|
||||||
implementation fg.deobf("com.tterrag.registrate:Registrate:${registrate_version}")
|
implementation fg.deobf("com.tterrag.registrate:Registrate:${registrate_version}")
|
||||||
|
@ -218,6 +218,7 @@ jar {
|
||||||
}
|
}
|
||||||
|
|
||||||
task jarJarRelease {
|
task jarJarRelease {
|
||||||
|
group = 'jarjar'
|
||||||
doLast {
|
doLast {
|
||||||
tasks.jarJar {
|
tasks.jarJar {
|
||||||
classifier = ''
|
classifier = ''
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
package com.simibubi.create;
|
|
||||||
|
|
||||||
import com.jozufozu.flywheel.core.StitchedSprite;
|
|
||||||
|
|
||||||
public class AllStitchedTextures {
|
|
||||||
|
|
||||||
public static final StitchedSprite SUPER_GLUE = new StitchedSprite(Create.asResource("entity/super_glue/slime"));
|
|
||||||
|
|
||||||
public static void init() {
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -85,7 +85,6 @@ public class CreateClient {
|
||||||
|
|
||||||
AllKeys.register();
|
AllKeys.register();
|
||||||
AllBlockPartials.init();
|
AllBlockPartials.init();
|
||||||
AllStitchedTextures.init();
|
|
||||||
|
|
||||||
PonderIndex.register();
|
PonderIndex.register();
|
||||||
PonderIndex.registerTags();
|
PonderIndex.registerTags();
|
||||||
|
|
|
@ -10,8 +10,6 @@ import java.util.UUID;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
import com.simibubi.create.foundation.utility.ContraptionData;
|
|
||||||
|
|
||||||
import org.apache.commons.lang3.mutable.MutableInt;
|
import org.apache.commons.lang3.mutable.MutableInt;
|
||||||
import org.apache.commons.lang3.tuple.MutablePair;
|
import org.apache.commons.lang3.tuple.MutablePair;
|
||||||
|
|
||||||
|
@ -37,6 +35,7 @@ import com.simibubi.create.foundation.collision.Matrix3d;
|
||||||
import com.simibubi.create.foundation.mixin.accessor.ServerLevelAccessor;
|
import com.simibubi.create.foundation.mixin.accessor.ServerLevelAccessor;
|
||||||
import com.simibubi.create.foundation.networking.AllPackets;
|
import com.simibubi.create.foundation.networking.AllPackets;
|
||||||
import com.simibubi.create.foundation.utility.AngleHelper;
|
import com.simibubi.create.foundation.utility.AngleHelper;
|
||||||
|
import com.simibubi.create.foundation.utility.ContraptionData;
|
||||||
import com.simibubi.create.foundation.utility.VecHelper;
|
import com.simibubi.create.foundation.utility.VecHelper;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
|
|
|
@ -130,7 +130,7 @@ public class StructureTransform {
|
||||||
|
|
||||||
if (rotationAxis == Axis.Y) {
|
if (rotationAxis == Axis.Y) {
|
||||||
if (block instanceof BellBlock) {
|
if (block instanceof BellBlock) {
|
||||||
if (state.getValue(BlockStateProperties.BELL_ATTACHMENT) == BellAttachType.DOUBLE_WALL)
|
if (state.getValue(BlockStateProperties.BELL_ATTACHMENT) == BellAttachType.DOUBLE_WALL)
|
||||||
state = state.setValue(BlockStateProperties.BELL_ATTACHMENT, BellAttachType.SINGLE_WALL);
|
state = state.setValue(BlockStateProperties.BELL_ATTACHMENT, BellAttachType.SINGLE_WALL);
|
||||||
return state.setValue(BellBlock.FACING,
|
return state.setValue(BellBlock.FACING,
|
||||||
rotation.rotate(state.getValue(BellBlock.FACING)));
|
rotation.rotate(state.getValue(BellBlock.FACING)));
|
||||||
|
@ -144,7 +144,8 @@ public class StructureTransform {
|
||||||
EnumProperty<AttachFace> faceProperty = FaceAttachedHorizontalDirectionalBlock.FACE;
|
EnumProperty<AttachFace> faceProperty = FaceAttachedHorizontalDirectionalBlock.FACE;
|
||||||
Direction stateFacing = state.getValue(facingProperty);
|
Direction stateFacing = state.getValue(facingProperty);
|
||||||
AttachFace stateFace = state.getValue(faceProperty);
|
AttachFace stateFace = state.getValue(faceProperty);
|
||||||
Direction forcedAxis = rotationAxis == Axis.Z ? Direction.EAST : Direction.SOUTH;
|
boolean z = rotationAxis == Axis.Z;
|
||||||
|
Direction forcedAxis = z ? Direction.WEST : Direction.SOUTH;
|
||||||
|
|
||||||
if (stateFacing.getAxis() == rotationAxis && stateFace == AttachFace.WALL)
|
if (stateFacing.getAxis() == rotationAxis && stateFace == AttachFace.WALL)
|
||||||
return state;
|
return state;
|
||||||
|
@ -161,7 +162,7 @@ public class StructureTransform {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stateFacing.getAxisDirection() == AxisDirection.POSITIVE) {
|
if (stateFacing.getAxisDirection() == (z ? AxisDirection.NEGATIVE : AxisDirection.POSITIVE)) {
|
||||||
state = state.setValue(faceProperty, AttachFace.FLOOR);
|
state = state.setValue(faceProperty, AttachFace.FLOOR);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,6 @@ import java.util.List;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
import com.simibubi.create.foundation.utility.ContraptionData;
|
|
||||||
|
|
||||||
import net.minecraft.network.chat.MutableComponent;
|
|
||||||
|
|
||||||
import org.apache.commons.lang3.tuple.MutablePair;
|
import org.apache.commons.lang3.tuple.MutablePair;
|
||||||
|
|
||||||
import com.simibubi.create.AllItems;
|
import com.simibubi.create.AllItems;
|
||||||
|
@ -21,6 +17,7 @@ import com.simibubi.create.content.contraptions.components.structureMovement.Ori
|
||||||
import com.simibubi.create.foundation.advancement.AllAdvancements;
|
import com.simibubi.create.foundation.advancement.AllAdvancements;
|
||||||
import com.simibubi.create.foundation.config.AllConfigs;
|
import com.simibubi.create.foundation.config.AllConfigs;
|
||||||
import com.simibubi.create.foundation.config.ContraptionMovementSetting;
|
import com.simibubi.create.foundation.config.ContraptionMovementSetting;
|
||||||
|
import com.simibubi.create.foundation.utility.ContraptionData;
|
||||||
import com.simibubi.create.foundation.utility.Lang;
|
import com.simibubi.create.foundation.utility.Lang;
|
||||||
import com.simibubi.create.foundation.utility.NBTHelper;
|
import com.simibubi.create.foundation.utility.NBTHelper;
|
||||||
|
|
||||||
|
@ -32,6 +29,7 @@ import net.minecraft.core.NonNullList;
|
||||||
import net.minecraft.core.dispenser.DefaultDispenseItemBehavior;
|
import net.minecraft.core.dispenser.DefaultDispenseItemBehavior;
|
||||||
import net.minecraft.core.dispenser.DispenseItemBehavior;
|
import net.minecraft.core.dispenser.DispenseItemBehavior;
|
||||||
import net.minecraft.nbt.CompoundTag;
|
import net.minecraft.nbt.CompoundTag;
|
||||||
|
import net.minecraft.network.chat.MutableComponent;
|
||||||
import net.minecraft.tags.BlockTags;
|
import net.minecraft.tags.BlockTags;
|
||||||
import net.minecraft.world.InteractionResult;
|
import net.minecraft.world.InteractionResult;
|
||||||
import net.minecraft.world.entity.Entity;
|
import net.minecraft.world.entity.Entity;
|
||||||
|
|
|
@ -16,8 +16,6 @@ import java.util.function.Function;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
import net.minecraft.server.MinecraftServer;
|
|
||||||
|
|
||||||
import org.apache.commons.lang3.mutable.MutableDouble;
|
import org.apache.commons.lang3.mutable.MutableDouble;
|
||||||
|
|
||||||
import com.simibubi.create.content.contraptions.components.structureMovement.Contraption;
|
import com.simibubi.create.content.contraptions.components.structureMovement.Contraption;
|
||||||
|
@ -37,6 +35,7 @@ import net.minecraft.core.BlockPos;
|
||||||
import net.minecraft.nbt.CompoundTag;
|
import net.minecraft.nbt.CompoundTag;
|
||||||
import net.minecraft.nbt.Tag;
|
import net.minecraft.nbt.Tag;
|
||||||
import net.minecraft.resources.ResourceKey;
|
import net.minecraft.resources.ResourceKey;
|
||||||
|
import net.minecraft.server.MinecraftServer;
|
||||||
import net.minecraft.server.level.ServerLevel;
|
import net.minecraft.server.level.ServerLevel;
|
||||||
import net.minecraft.server.level.ServerPlayer;
|
import net.minecraft.server.level.ServerPlayer;
|
||||||
import net.minecraft.util.Mth;
|
import net.minecraft.util.Mth;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package com.simibubi.create.foundation.mixin.accessor;
|
package com.simibubi.create.foundation.mixin.accessor;
|
||||||
|
|
||||||
import net.minecraft.nbt.NbtAccounter;
|
|
||||||
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.gen.Accessor;
|
import org.spongepowered.asm.mixin.gen.Accessor;
|
||||||
|
|
||||||
|
import net.minecraft.nbt.NbtAccounter;
|
||||||
|
|
||||||
@Mixin(NbtAccounter.class)
|
@Mixin(NbtAccounter.class)
|
||||||
public interface NbtAccounterAccessor {
|
public interface NbtAccounterAccessor {
|
||||||
@Accessor("usage")
|
@Accessor("usage")
|
||||||
|
|
|
@ -9,7 +9,6 @@ import net.minecraft.nbt.CompoundTag;
|
||||||
import net.minecraft.nbt.NbtAccounter;
|
import net.minecraft.nbt.NbtAccounter;
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
import net.minecraft.network.FriendlyByteBuf;
|
||||||
import net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket;
|
import net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket;
|
||||||
import net.minecraftforge.fml.ModList;
|
|
||||||
|
|
||||||
public class ContraptionData {
|
public class ContraptionData {
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue