Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from PimvanderLoos/feat/1.19.4
Add support for 1.19.4
- Loading branch information
Showing
15 changed files
with
549 additions
and
9 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,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<packaging>jar</packaging> | ||
<artifactId>v1_19_R3</artifactId> | ||
|
||
<parent> | ||
<groupId>nl.pim16aap2.BigDoors</groupId> | ||
<artifactId>nms</artifactId> | ||
<version>0.1.8.44-ALPHA</version> | ||
</parent> | ||
|
||
<properties> | ||
<maven.compiler.source>8</maven.compiler.source> | ||
<maven.compiler.target>8</maven.compiler.target> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.spigotmc</groupId> | ||
<artifactId>spigot</artifactId> | ||
<version>1.19.4-R0.1-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>nl.pim16aap2.BigDoors</groupId> | ||
<artifactId>nms-api</artifactId> | ||
<version>0.1.8.44-ALPHA</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
110 changes: 110 additions & 0 deletions
110
nms/v1_19_R3/src/main/java/nl/pim16aap2/bigDoors/NMS/CustomCraftFallingBlock_V1_19_R3.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,110 @@ | ||
package nl.pim16aap2.bigDoors.NMS; | ||
|
||
import org.bukkit.Material; | ||
import org.bukkit.Server; | ||
import org.bukkit.block.data.BlockData; | ||
import org.bukkit.craftbukkit.v1_19_R3.block.data.CraftBlockData; | ||
import org.bukkit.craftbukkit.v1_19_R3.entity.CraftEntity; | ||
import org.bukkit.craftbukkit.v1_19_R3.util.CraftMagicNumbers; | ||
import org.bukkit.entity.EntityType; | ||
import org.bukkit.entity.FallingBlock; | ||
import org.bukkit.util.EulerAngle; | ||
import org.bukkit.util.Vector; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class CustomCraftFallingBlock_V1_19_R3 extends CraftEntity implements FallingBlock, CustomCraftFallingBlock | ||
{ | ||
CustomCraftFallingBlock_V1_19_R3(final Server server, final CustomEntityFallingBlock_V1_19_R3 entity) | ||
{ | ||
super((org.bukkit.craftbukkit.v1_19_R3.CraftServer) server, entity); | ||
setVelocity(new Vector(0, 0, 0)); | ||
setDropItem(false); | ||
} | ||
|
||
@Override | ||
public CustomEntityFallingBlock_V1_19_R3 getHandle() | ||
{ | ||
return (CustomEntityFallingBlock_V1_19_R3) entity; | ||
} | ||
|
||
@Override | ||
public boolean isOnGround() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public String toString() | ||
{ | ||
return "CraftFallingBlock"; | ||
} | ||
|
||
@Override | ||
public @NotNull EntityType getType() | ||
{ | ||
return EntityType.FALLING_BLOCK; | ||
} | ||
|
||
@Override | ||
public void setVisibleByDefault(boolean flag) | ||
{ | ||
} | ||
|
||
@Override | ||
public boolean isVisibleByDefault() | ||
{ | ||
return true; | ||
} | ||
|
||
@Override | ||
@Deprecated | ||
public @NotNull Material getMaterial() | ||
{ | ||
return CraftMagicNumbers.getMaterial(getHandle().k()).getItemType(); | ||
} | ||
|
||
@Override | ||
public @NotNull BlockData getBlockData() | ||
{ | ||
return CraftBlockData.fromData(this.getHandle().k()); | ||
} | ||
|
||
@Override | ||
public boolean getDropItem() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public void setDropItem(final boolean drop) | ||
{ | ||
} | ||
|
||
@Override | ||
public boolean canHurtEntities() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public void setHurtEntities(final boolean hurtEntities) | ||
{ | ||
} | ||
|
||
@Override | ||
public void setTicksLived(final int value) | ||
{ | ||
super.setTicksLived(value); | ||
getHandle().b = value; | ||
} | ||
|
||
@Override | ||
public void setHeadPose(EulerAngle pose) | ||
{ | ||
} | ||
|
||
@Override | ||
public void setBodyPose(EulerAngle eulerAngle) | ||
{ | ||
} | ||
} |
Oops, something went wrong.