[SPIGOT-946] Begin making use of access transforms to simplify patching.
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/EntityHanging.java
|
||||
+++ b/net/minecraft/server/EntityHanging.java
|
||||
@@ -4,10 +4,17 @@
|
||||
@@ -4,6 +4,13 @@
|
||||
import java.util.List;
|
||||
import org.apache.commons.lang3.Validate;
|
||||
|
||||
@@ -14,20 +14,6 @@
|
||||
public abstract class EntityHanging extends Entity {
|
||||
|
||||
private int c;
|
||||
- protected BlockPosition blockPosition;
|
||||
+ public BlockPosition blockPosition; // CraftBukkit - public
|
||||
public EnumDirection direction;
|
||||
|
||||
public EntityHanging(World world) {
|
||||
@@ -22,7 +29,7 @@
|
||||
|
||||
protected void h() {}
|
||||
|
||||
- protected void setDirection(EnumDirection enumdirection) {
|
||||
+ public void setDirection(EnumDirection enumdirection) { // CraftBukkit - public
|
||||
Validate.notNull(enumdirection);
|
||||
Validate.isTrue(enumdirection.k().c());
|
||||
this.direction = enumdirection;
|
||||
@@ -30,30 +37,34 @@
|
||||
this.updateBoundingBox();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user