9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-27 02:49:15 +00:00

添加支撑形状

This commit is contained in:
XiaoMoMi
2025-05-26 01:44:57 +08:00
parent 0b80a6b592
commit d4086101cf
10 changed files with 80 additions and 9 deletions

View File

@@ -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]);
}
}

View File

@@ -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]);
}
}

View File

@@ -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]);
}
}