Skip to content

Commit

Permalink
update and fully comment mixins config
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Dec 22, 2024
1 parent 370eb65 commit 8f57c35
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import net.frozenblock.trailiertales.entity.Apparition;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.tags.FluidTags;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.*;
import net.minecraft.world.level.block.state.BlockState;
Expand All @@ -19,7 +18,7 @@
public class EctoplasmBlock extends HalfTransparentBlock {
public static final float APPARITION_COLLISION_FROM_SIDE = 0.25F;
public static final int LIGHT_BLOCK = 2;
public static final double GRAVITY_SLOWDOWN = 0.4D;
public static final double GRAVITY_SLOWDOWN = 0.45D;
public static final MapCodec<EctoplasmBlock> CODEC = RecordCodecBuilder.mapCodec((instance) -> instance.group(
propertiesCodec()
).apply(instance, EctoplasmBlock::new));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,45 @@ public final class TTMixinsConfig {
)
);

@Comment("Required for Apparitions to interact with Ectoplasm Blocks properly")
public boolean apparition = true;

@Comment("Gives Armor Stands arms by default")
public boolean armor_stand = true;

@Comment("Required for Banner Boats")
public boolean boat = true;

@Comment("Makes Brush animations smoother")
public boolean brush = true;

@Comment("Required for the Rebrush enchantment and smooth animations to work")
public boolean brushable_block = true;

@Comment("Required to let the Camel spawn naturally")
public boolean camel = true;

@Comment("Required for Coffin-specific mob mechanics to work")
public boolean coffin = true;

@Comment("Required to allow Trailier Tales' content to be datafixed alongside vanilla content")
public boolean datafix = true;

@Comment("Required to let Dawntrails be sheared by Dispensers")
public boolean dawntrail = true;

@Comment("Mirror's the Decorated Pots wobble animation on each consecutive use")
public boolean decorated_pot = true;

public boolean surveyor = true;
@Comment("Required to let the player's cursor ignore Ectoplasm Blocks while inside them")
public boolean ectoplasm_block = true;

@Comment("Required for a structure gen bugfix related to rail rotation")
public boolean rail = true;

@Comment("Required to let Redstone Wire connect to Surveyors")
public boolean surveyor = true;

@Comment("Client only")
public boolean haunt = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public void onLoad(String mixinPackage) {

@Override
public boolean shouldApplyMixin(String targetClassName, @NotNull String mixinClassName) {
if (mixinClassName.contains("apparition.")) return this.mixinsConfig.apparition;
if (mixinClassName.contains("armor_stand.")) return this.mixinsConfig.armor_stand;
if (mixinClassName.contains("boat.")) return this.mixinsConfig.boat;
if (mixinClassName.contains("brush.")) return this.mixinsConfig.brush;
Expand All @@ -37,6 +38,7 @@ public boolean shouldApplyMixin(String targetClassName, @NotNull String mixinCla
if (mixinClassName.contains("datafix.")) return this.mixinsConfig.datafix;
if (mixinClassName.contains("dawntrail.")) return this.mixinsConfig.dawntrail;
if (mixinClassName.contains("decorated_pot.")) return this.mixinsConfig.decorated_pot;
if (mixinClassName.contains("ectoplasm_block.")) return this.mixinsConfig.ectoplasm_block;
if (mixinClassName.contains("haunt.")) return this.mixinsConfig.haunt;
if (mixinClassName.contains("surveyor.")) return this.mixinsConfig.surveyor;
if (mixinClassName.contains("rail.")) return this.mixinsConfig.rail;
Expand Down

0 comments on commit 8f57c35

Please sign in to comment.