forked from lishid/Orebfuscator
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 1.16 support *hopefully* * feat: added config * feat: added version 1.16.1 to buildtools.sh * feat: v16 VarBitBuffer support * fix: empty ChunkSections breaking obfuscation * fix: NullPointer in Chunk class * feat: updated 1.16.1 config Co-authored-by: NgLoader <[email protected]>
- Loading branch information
Showing
29 changed files
with
822 additions
and
83 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>net.imprex</groupId> | ||
<artifactId>orebfuscator-nms</artifactId> | ||
<version>${orebfuscator.version}</version> | ||
</parent> | ||
|
||
<artifactId>orebfuscator-nms-v1_16_R1</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>net.imprex</groupId> | ||
<artifactId>orebfuscator-nms-api</artifactId> | ||
<version>${orebfuscator.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.spigotmc</groupId> | ||
<artifactId>spigot</artifactId> | ||
<version>1.16.1-R0.1-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
27 changes: 27 additions & 0 deletions
27
...bfuscator-nms-v1_16_R1/src/main/java/net/imprex/orebfuscator/nms/v1_16_R1/BlockState.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,27 @@ | ||
package net.imprex.orebfuscator.nms.v1_16_R1; | ||
|
||
import org.bukkit.World; | ||
import org.bukkit.craftbukkit.v1_16_R1.CraftWorld; | ||
|
||
import net.imprex.orebfuscator.nms.AbstractBlockState; | ||
import net.minecraft.server.v1_16_R1.BlockPosition; | ||
import net.minecraft.server.v1_16_R1.IBlockData; | ||
import net.minecraft.server.v1_16_R1.WorldServer; | ||
|
||
public class BlockState extends AbstractBlockState<IBlockData> { | ||
|
||
public BlockState(int x, int y, int z, World world, IBlockData state) { | ||
super(x, y, z, world, state); | ||
} | ||
|
||
@Override | ||
public int getBlockId() { | ||
return NmsManager.getBlockId(this.state); | ||
} | ||
|
||
@Override | ||
public void notifyBlockChange() { | ||
WorldServer worldServer = ((CraftWorld) this.world).getHandle(); | ||
worldServer.notify(new BlockPosition(this.x, this.y, this.z), this.state, this.state, 0); | ||
} | ||
} |
Oops, something went wrong.