Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
TechLord22 committed Dec 26, 2023
1 parent 7de21de commit 6a83b85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public void onModelsBake(ModelBakeEvent event) {
@Override
public void renderItem(ItemStack rawStack, ItemCameraTransforms.TransformType transformType) {
ItemStack stack = ItemRenderCompat.getRepresentedStack(rawStack);
if (stack.getItem() instanceof ItemBlock itemBlock && itemBlock.getBlock() instanceof ICCLBlockRenderer renderer) {
if (stack.getItem() instanceof ItemBlock itemBlock &&
itemBlock.getBlock() instanceof ICCLBlockRenderer renderer) {
renderer.renderItem(stack, transformType);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public abstract void buildRenderer(PipeRenderContext renderContext, BlockPipe<?,
@Override
public void renderItem(ItemStack rawItemStack, TransformType transformType) {
ItemStack stack = ItemRenderCompat.getRepresentedStack(rawItemStack);
if (!(stack.getItem() instanceof ItemBlockPipe<?, ?> itemBlockPipe)) {
if (!(stack.getItem() instanceof ItemBlockPipe<?, ?>itemBlockPipe)) {
return;
}
CCRenderState renderState = CCRenderState.instance();
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/gregtech/client/utils/ItemRenderCompat.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public interface RepresentativeStackExtractor {
* @param stack the stack to retrieve from
* @return the represented stack
*/
@NotNull ItemStack getActualStack(@NotNull ItemStack stack);
@NotNull
ItemStack getActualStack(@NotNull ItemStack stack);
}

/**
Expand Down

0 comments on commit 6a83b85

Please sign in to comment.