Skip to content

Commit

Permalink
remove Witchskall to be compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Derican committed Apr 22, 2022
1 parent 74cafe0 commit 9761fbc
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 379 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ dependencies {
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
minecraft 'net.minecraftforge:forge:1.16.5-36.2.20'
minecraft 'net.minecraftforge:forge:1.16.5-36.2.34'
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'

// You may put jars on which you depend on in ./libs or you may define them like so..
Expand Down
130 changes: 0 additions & 130 deletions src/main/java/iskallia/vault/easteregg/Witchskall.java

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/java/iskallia/vault/init/ModSounds.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public class ModSounds {
public static SoundEvent VAULT_CHEST_EPIC_OPEN;
public static SoundEvent VAULT_CHEST_OMEGA_OPEN;
public static SoundEvent VAULT_CHEST_RARE_OPEN;
public static SoundEvent WITCHSKALL_IDLE;
public static SoundEvent FAVOUR_UP;
public static LazySoundType VAULT_GEM;

Expand Down Expand Up @@ -104,7 +103,6 @@ public static void registerSounds(final RegistryEvent.Register<SoundEvent> event
ModSounds.VAULT_CHEST_EPIC_OPEN = registerSound(event, "vault_chest_epic_open");
ModSounds.VAULT_CHEST_OMEGA_OPEN = registerSound(event, "vault_chest_omega_open");
ModSounds.VAULT_CHEST_RARE_OPEN = registerSound(event, "vault_chest_rare_open");
ModSounds.WITCHSKALL_IDLE = registerSound(event, "witchskall_idle");
ModSounds.FAVOUR_UP = registerSound(event, "favour_up");
}

Expand Down
38 changes: 0 additions & 38 deletions src/main/java/iskallia/vault/mixin/MixinWitchEntity.java

This file was deleted.

27 changes: 0 additions & 27 deletions src/main/java/iskallia/vault/mixin/MixinWitchRenderer.java

This file was deleted.

14 changes: 14 additions & 0 deletions src/main/java/iskallia/vault/util/data/WeightedList.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import javax.annotation.Nullable;
import java.util.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.BiConsumer;
import java.util.function.Predicate;

Expand All @@ -25,6 +26,19 @@ public WeightedList<T> add(final T value, final int weight) {
return this;
}

public WeightedList<T> addOne(T value){
AtomicBoolean flag= new AtomicBoolean(false);
this.entries.forEach(tEntry -> {
if(tEntry.value==value) {
tEntry.weight += 1;
flag.set(true);
}
});
if(!flag.get())
this.add(new Entry<>(value,1));
return this;
}

@Override
public int size() {
return this.entries.size();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ private static WeightedList<JigsawPiece> getRoomList(final ResourceLocation key)
final JigsawPattern roomPool = getPool(key);
final WeightedList<JigsawPiece> pool = new WeightedList<JigsawPiece>();
// roomPool.rawTemplates.forEach(weightedPiece -> pool.add(weightedPiece.getFirst(), (int) weightedPiece.getSecond()));
// TODO: check if the following overwrite is runnable
roomPool.getShuffledTemplates(rand).forEach(pool::addOne);
return pool;
}

Expand Down
17 changes: 0 additions & 17 deletions src/main/resources/assets/the_vault/sounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,6 @@
"the_vault:treasure_goblin/idle_3"
]
},
"witchskall_idle": {
"category": "neutral",
"sounds": [
{
"name": "the_vault:witchskall/idle",
"pitch": 1.00
},
{
"name": "the_vault:witchskall/idle",
"pitch": 0.95
},
{
"name": "the_vault:witchskall/idle",
"pitch": 1.05
}
]
},
"puzzle_completion_major": {
"category": "master",
"sounds": [
Expand Down
6 changes: 2 additions & 4 deletions src/main/resources/assets/the_vault/the_vault.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
"MixinSingleJigsawPiece",
"MixinSlot",
"MixinStructureBlockTileEntity",
"MixinStructureProcessor",
"MixinWitchEntity"
"MixinStructureProcessor"
],
"client": [
"MixinAnvilScreen",
Expand All @@ -47,8 +46,7 @@
"MixinEnchantedBookItem",
"MixinItem",
"MixinItemStackClient",
"MixinLivingRenderer",
"MixinWitchRenderer"
"MixinLivingRenderer"
],
"server": [],
"injectors": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@
"processors": [
{
"rules": [
{
"output_state": {
"Name": "minecraft:dead_bush"
},
"input_predicate": {
"predicate_type": "minecraft:random_block_match",
"block": "byg:firecracker_flower_bush",
"probability": 0.5
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
}
},
{
"output_state": {
"Name": "minecraft:light_gray_terracotta"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,22 +277,6 @@
"location_predicate": {
"predicate_type": "minecraft:always_true"
}
},
{
"output_state": {
"Name": "byg:stripped_palm_wood",
"Properties": {
"axis": "y"
}
},
"input_predicate": {
"predicate_type": "minecraft:random_block_match",
"block": "minecraft:stripped_oak_wood",
"probability": 1.0
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
}
}
],
"processor_type": "minecraft:rule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,27 +150,6 @@
"predicate_type": "minecraft:always_true"
}
},
{
"output_state": {
"Name": "byg:polished_soapstone_wall",
"Properties": {
"east": "none",
"north": "none",
"south": "none",
"up": "true",
"waterlogged": "false",
"west": "none"
}
},
"input_predicate": {
"predicate_type": "minecraft:random_block_match",
"block": "minecraft:cobblestone_wall",
"probability": 1.0
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
}
},
{
"output_state": {
"Name": "minecraft:damaged_anvil",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,6 @@
"predicate_type": "minecraft:always_true"
}
},
{
"output_state": {
"Name": "byg:black_chiseled_sandstone"
},
"input_predicate": {
"predicate_type": "minecraft:random_block_match",
"block": "minecraft:chiseled_stone_bricks",
"probability": 1.0
},
"location_predicate": {
"predicate_type": "minecraft:always_true"
}
},
{
"output_state": {
"Name": "minecraft:polished_diorite"
Expand Down
Loading

0 comments on commit 9761fbc

Please sign in to comment.