Removed stream usage of ItemContainer haveItemForSelfResurrection method.
This commit is contained in:
parent
2f0b8b37e5
commit
b61517956d
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,14 @@ public abstract class ItemContainer
|
||||
*/
|
||||
public boolean haveItemForSelfResurrection()
|
||||
{
|
||||
return _items.values().stream().anyMatch(item -> item.getItem().isAllowSelfResurrection());
|
||||
for (ItemInstance item : _items.values())
|
||||
{
|
||||
if (item.getItem().isAllowSelfResurrection())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user