Skip to content

Commit

Permalink
Make some getters public
Browse files Browse the repository at this point in the history
  • Loading branch information
Desoroxxx committed Jul 16, 2023
1 parent 8924a65 commit 0539c28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/paneedah/weaponlib/ItemMagazine.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void onCreated(ItemStack stack, World world, EntityPlayer player) {
initializeTag(stack, 0);
}

List<ItemBullet> getCompatibleBullets() {
public List<ItemBullet> getCompatibleBullets() {
return compatibleBullets;
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/paneedah/weaponlib/Weapon.java
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ boolean ejectSpentRoundRequired() {
return builder.ejectSpentRoundRequired;
}

List<ItemMagazine> getCompatibleMagazines() {
public List<ItemMagazine> getCompatibleMagazines() {
return builder.compatibleAttachments.keySet().stream()
.filter(a -> a instanceof ItemMagazine)
.map(a -> (ItemMagazine)a)
Expand All @@ -1320,7 +1320,7 @@ public WeaponRenderer getRenderer() {
return builder.renderer;
}

List<ItemAttachment<Weapon>> getCompatibleAttachments(Class<? extends ItemAttachment<Weapon>> target) {
public List<ItemAttachment<Weapon>> getCompatibleAttachments(Class<? extends ItemAttachment<Weapon>> target) {
return builder.compatibleAttachments.entrySet().stream()
.filter(e -> target.isInstance(e.getKey()))
.map(e -> e.getKey())
Expand Down

0 comments on commit 0539c28

Please sign in to comment.