Remove unused method
This commit is contained in:
parent
3fa9b5c1ee
commit
d0d4d8f257
|
@ -81,21 +81,6 @@ public abstract class Multipart {
|
||||||
return getDefaultState();
|
return getDefaultState();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Can be used to provide additional information to custom {@link net.shadowfacts.simplemultipart.client.MultipartBakedModel}.
|
|
||||||
* The returned state will be passed to {@link net.shadowfacts.simplemultipart.client.MultipartBakedModel#getMultipartQuads(MultipartView, Direction, Random)}.
|
|
||||||
*
|
|
||||||
* Can be overridden, should only be called via {@link MultipartState#getStateForRendering}
|
|
||||||
*
|
|
||||||
* @param state The normal state of this multipart.
|
|
||||||
* @param view The view of this multipart.
|
|
||||||
* @return The state that will be used for rendering.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public MultipartState getStateForRendering(MultipartState state, MultipartView view) {
|
|
||||||
return state;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the bounding shape this multipart should have.
|
* Retrieves the bounding shape this multipart should have.
|
||||||
*
|
*
|
||||||
|
|
|
@ -32,14 +32,6 @@ public class MultipartState extends AbstractPropertyContainer<Multipart, Multipa
|
||||||
return owner;
|
return owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @see Multipart#getStateForRendering(MultipartState, MultipartView)
|
|
||||||
*/
|
|
||||||
public MultipartState getStateForRendering(MultipartView view) {
|
|
||||||
//noinspection deprecation
|
|
||||||
return owner.getStateForRendering(this, view);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see Multipart#getBoundingShape(MultipartState, MultipartView)
|
* @see Multipart#getBoundingShape(MultipartState, MultipartView)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -44,26 +44,11 @@ public class SlabMultipart extends Multipart {
|
||||||
half = context.getHitY() >= 0.5f ? BlockHalf.UPPER : BlockHalf.LOWER;
|
half = context.getHitY() >= 0.5f ? BlockHalf.UPPER : BlockHalf.LOWER;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (hitSide == Direction.DOWN || (0.5f < context.getHitY() && context.getHitY() < 1)) {
|
|
||||||
// half = BlockHalf.UPPER;
|
|
||||||
// } else {
|
|
||||||
// half = BlockHalf.LOWER;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// switch (hitSide) {
|
|
||||||
// case UP:
|
|
||||||
// half = BlockHalf.LOWER;
|
|
||||||
// break;
|
|
||||||
// case DOWN:
|
|
||||||
// half = BlockHalf.UPPER;
|
|
||||||
// break;
|
|
||||||
// default:
|
|
||||||
// half = context.getHitY() > 0.5f ? BlockHalf.UPPER : BlockHalf.LOWER;
|
|
||||||
// }
|
|
||||||
return getDefaultState().with(HALF, half);
|
return getDefaultState().with(HALF, half);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Deprecated
|
||||||
public VoxelShape getBoundingShape(MultipartState state, MultipartView view) {
|
public VoxelShape getBoundingShape(MultipartState state, MultipartView view) {
|
||||||
return state.get(HALF) == BlockHalf.UPPER ? UPPER_BOX : LOWER_BOX;
|
return state.get(HALF) == BlockHalf.UPPER ? UPPER_BOX : LOWER_BOX;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue