-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
166 additions
and
332 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
61 changes: 0 additions & 61 deletions
61
src/main/java/net/gensokyoreimagined/nitori/mixin/needs_testing/MixinLevel.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...et/gensokyoreimagined/nitori/mixin/needs_testing/chunk/palette/PaletteResizeAccessor.java
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
...net/gensokyoreimagined/nitori/mixin/needs_testing/collections/mob_spawning/PoolMixin.java
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...kyoreimagined/nitori/mixin/needs_testing/living_entity/enum_values/LivingEntityMixin.java
This file was deleted.
Oops, something went wrong.
124 changes: 0 additions & 124 deletions
124
src/main/java/net/gensokyoreimagined/nitori/mixin/redirector/RedirectorTransformer.java
This file was deleted.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
src/main/java/net/gensokyoreimagined/nitori/mixin/removed/MixinLevel.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// Nitori Copyright (C) 2024 Gensokyo Reimagined | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
package net.gensokyoreimagined.nitori.mixin.removed; | ||
|
||
//import com.google.common.collect.Lists; | ||
//import net.gensokyoreimagined.nitori.common.util.collections.HashedReferenceList; | ||
//import net.gensokyoreimagined.nitori.common.world.ChunkRandomSource; | ||
//import net.minecraft.core.BlockPos; | ||
//import net.minecraft.world.level.Level; | ||
//import net.minecraft.world.level.block.entity.TickingBlockEntity; | ||
//import org.spongepowered.asm.mixin.Final; | ||
//import org.spongepowered.asm.mixin.Mixin; | ||
//import org.spongepowered.asm.mixin.Mutable; | ||
//import org.spongepowered.asm.mixin.Shadow; | ||
//import org.spongepowered.asm.mixin.injection.At; | ||
//import org.spongepowered.asm.mixin.injection.Inject; | ||
//import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
// | ||
//import java.util.List; | ||
// | ||
//@Mixin(Level.class) | ||
//public class MixinLevel implements ChunkRandomSource { | ||
// // Implementation of 0006-lithium-HashedReferenceList.patch | ||
// @Mutable | ||
// @Final @Shadow | ||
// public List<TickingBlockEntity> blockEntityTickers; | ||
// | ||
// // Implementation of 0006-lithium-HashedReferenceList.patch | ||
// @Mutable | ||
// @Final @Shadow | ||
// private List<TickingBlockEntity> pendingBlockEntityTickers; | ||
// | ||
// @Shadow | ||
// protected int randValue; | ||
// | ||
// // Implementation of 0006-lithium-HashedReferenceList.patch | ||
// @Inject(method = "<init>", at = @At("RETURN")) | ||
// private void onInit(CallbackInfo ci) { | ||
// this.blockEntityTickers = new HashedReferenceList<>(Lists.newArrayList()); | ||
// this.pendingBlockEntityTickers = new HashedReferenceList<>(Lists.newArrayList()); | ||
// } | ||
// | ||
// @Override | ||
// public void nitori$getRandomPosInChunk(int x, int y, int z, int mask, BlockPos.MutableBlockPos out) { | ||
// this.randValue = this.randValue * 3 + 1013904223; | ||
// int rand = this.randValue >> 2; | ||
// out.set(x + (rand & 15), y + (rand >> 16 & mask), z + (rand >> 8 & 15)); | ||
// } | ||
//} |
This file contains 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
10 changes: 10 additions & 0 deletions
10
...java/net/gensokyoreimagined/nitori/mixin/removed/chunk/palette/PaletteResizeAccessor.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package net.gensokyoreimagined.nitori.mixin.removed.chunk.palette; | ||
|
||
//import org.spongepowered.asm.mixin.Mixin; | ||
//import org.spongepowered.asm.mixin.gen.Invoker; | ||
// | ||
//@Mixin(targets = "net.minecraft.world.level.chunk.PaletteResize") | ||
//public abstract class PaletteResizeAccessor<T> { | ||
// @Invoker | ||
// public abstract int callOnResize(int newBits, T object); | ||
//} |
2 changes: 1 addition & 1 deletion
2
.../PalettedContainerConfigurationMixin.java → .../PalettedContainerConfigurationMixin.java
This file contains 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
2 changes: 1 addition & 1 deletion
2
...chunk/palette/PalettedContainerMixin.java → ...chunk/palette/PalettedContainerMixin.java
This file contains 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
2 changes: 1 addition & 1 deletion
2
...s/attributes/AttributeContainerMixin.java → ...s/attributes/AttributeContainerMixin.java
This file contains 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
Oops, something went wrong.