mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-27 02:49:15 +00:00
添加支撑形状
This commit is contained in:
@@ -22,4 +22,9 @@ public class StoneBlockShape implements BlockShape {
|
||||
public Object getCollisionShape(Object thisObj, Object[] args) {
|
||||
return rawBlockState.getCollisionShape((BlockGetter) args[1], (BlockPos) args[2], (CollisionContext) args[3]);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getSupportShape(Object thisObj, Object[] args) {
|
||||
return rawBlockState.getBlockSupportShape((BlockGetter) args[1], (BlockPos) args[2]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,4 +22,9 @@ public class StoneBlockShape implements BlockShape {
|
||||
public Object getCollisionShape(Object thisObj, Object[] args) {
|
||||
return rawBlockState.getCollisionShape((BlockGetter) args[1], (BlockPos) args[2], (CollisionContext) args[3]);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getSupportShape(Object thisObj, Object[] args) {
|
||||
return rawBlockState.getBlockSupportShape((BlockGetter) args[1], (BlockPos) args[2]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,4 +22,9 @@ public class StoneBlockShape implements BlockShape {
|
||||
public Object getCollisionShape(Object thisObj, Object[] args) {
|
||||
return rawBlockState.getCollisionShape((BlockGetter) args[1], (BlockPos) args[2], (CollisionContext) args[3]);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getSupportShape(Object thisObj, Object[] args) {
|
||||
return rawBlockState.getBlockSupportShape((BlockGetter) args[1], (BlockPos) args[2]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user