Skip to content

Commit f390b51

Browse files
committed
Widen access to fields and methods in CasingComponent
1 parent 95d09ec commit f390b51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/aztech/modern_industrialization/machines/components/CasingComponent.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545

4646
public class CasingComponent implements IComponent, DropableComponent, CableTierHolder {
4747

48-
private ItemStack casingStack = ItemStack.EMPTY;
49-
private CableTier currentTier = CableTier.LV;
48+
protected ItemStack casingStack = ItemStack.EMPTY;
49+
protected CableTier currentTier = CableTier.LV;
5050

5151
/**
5252
* Sets the current casing stack and update {@link #currentTier} accordingly.
5353
*/
54-
private void setCasingStack(ItemStack stack) {
54+
protected void setCasingStack(ItemStack stack) {
5555
casingStack = stack;
5656

5757
// Compute tier
@@ -110,7 +110,7 @@ public ItemInteractionResult onUse(MachineBlockEntity be, Player player, Interac
110110
return ItemInteractionResult.PASS_TO_DEFAULT_BLOCK_INTERACTION;
111111
}
112112

113-
private void playCasingPlaceSound(MachineBlockEntity be) {
113+
protected void playCasingPlaceSound(MachineBlockEntity be) {
114114
var blockKey = currentTier.itemKey;
115115
if (blockKey == null) {
116116
return; // no sound for LV

0 commit comments

Comments
 (0)