CMObject, Tickable, CMLibrary, MaterialLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>public class RawCMaterial extends StdLibrary implements MaterialLibrary
MaterialLibrary.DeadResourceRecordidConverterisDebugging, name, serviceClient, tickStatusSTATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET| Constructor | Description |
|---|---|
RawCMaterial() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addEffectsToResource(Item I) |
Given a raw material resource, this method will query for the
natural effects/properties of that resource type, and add
them to the given item.
|
void |
adjustResourceName(Item I) |
Given a raw material resource item with particular resource and
subType and weight/amount, this method will set its name and
display text as appropriate.
|
MaterialLibrary.DeadResourceRecord |
destroyResources(Room R,
int howMuch,
int finalMaterial,
int finalSubHash,
int otherMaterial,
int otherSubHash) |
Searches the given room for an amount of specified qualifying resource items in the
given list and in the given container, destroys that many pounds of the resource,
and then returns all kinds of statistics about what was destroyed in the form of
a DeadResourceRecord
|
protected MaterialLibrary.DeadResourceRecord |
destroyResources(java.util.List<Item> V,
int howMuch,
int finalMaterial,
int otherMaterial,
Item never,
Container C,
RawMaterial firstMaterialI,
RawMaterial otherMaterialI) |
|
int |
destroyResourcesAmt(Room E,
int howMuch,
int finalMaterial,
java.lang.String subType,
Container C) |
Searches the given room for an amount of specified qualifying resource items in the
given list and in the given container, destroys that many pounds of the resource,
and then returns the amount destroyed.
|
int |
destroyResourcesAmt(MOB E,
int howMuch,
int finalMaterial,
java.lang.String subType,
Container C) |
Searches the given mob for an amount of specified qualifying resource items in the
given list and in the given container, destroys that many pounds of the resource,
and then returns the amount destroyed.
|
int |
destroyResourcesAmt(java.util.List<Item> V,
int howMuch,
int resourceCode,
java.lang.String subType,
Container C) |
Searches the given mob for an amount of specified qualifying resource items in the
given list and in the given container, destroys that many pounds of the resource,
and then returns the amount destroyed.
|
int |
destroyResourcesValue(Room E,
int howMuch,
int finalMaterial,
int finalSubHash,
int otherMaterial,
int otherSubHash) |
Searches the given room for an amount of specified qualifying resource items in the
given list and in NO container, destroys that many pounds of the resource,
and then returns the value of what was destroyed.
|
int |
destroyResourcesValue(MOB E,
int howMuch,
int finalMaterial,
int finalSubHash,
int otherMaterial,
int otherSubHash) |
Searches the given mob for an amount of specified qualifying resource items in the
given list and in NO container, destroys that many pounds of the resource,
and then returns the value of what was destroyed.
|
int |
destroyResourcesValue(java.util.List<Item> V,
int howMuch,
int finalMaterial,
int otherMaterial,
Item never,
Container C) |
Searches the given list for an amount of specified qualifying resource items in the
given list and in the given container, destroys that many pounds of the resource,
and then returns the value of what was destroyed.
|
protected java.util.List<Item> |
disBundle(Item I,
int number,
int bundleSize,
Container C) |
|
RawMaterial |
fetchFoundOtherEncoded(Room E,
java.lang.String otherRequired) |
Searches the given room for specified qualifying resource items.
|
RawMaterial |
fetchFoundOtherEncoded(MOB E,
java.lang.String otherRequired) |
Searches the given mob for specified qualifying resource items.
|
protected RawMaterial |
fetchFoundOtherEncoded(java.util.List<Item> V,
java.lang.String otherRequired) |
|
RawMaterial |
findFirstResource(Room E,
int resource) |
Searches the given Room for the first qualifying raw
material resource item that matches the given resource
code number.
|
RawMaterial |
findFirstResource(Room E,
java.lang.String other) |
Searches the given Room for the first qualifying raw
material resource item that matches the given resource
name, with optional subtype in parenthesis.
|
RawMaterial |
findFirstResource(MOB E,
int resource) |
Searches the given MOB for the first qualifying raw
material resource item that matches the given resource
code number.
|
RawMaterial |
findFirstResource(MOB E,
java.lang.String other) |
Searches the given MOB for the first qualifying raw
material resource item that matches the given resource
name, with optional subtype in parenthesis.
|
protected RawMaterial |
findFirstResource(java.util.List<Item> V,
int resource,
Container C,
java.lang.String subType) |
|
RawMaterial |
findFirstResource(java.util.List<Item> V,
java.lang.String other) |
|
int |
findMaterialCode(java.lang.String s,
boolean exact) |
Searches for the given material type, and, if
found, returns the material code.
|
int |
findMaterialRelativeInt(java.lang.String s) |
Searches for the given material type, and, if
found, returns the ordinal value of the material
code.
|
RawMaterial |
findMostOfMaterial(Room E,
int material) |
Searches the given Room for the largest pile of qualifying raw
material resource item that matches the given material type
code number.
|
RawMaterial |
findMostOfMaterial(Room E,
java.lang.String other) |
Searches the given Room for the largest pile of qualifying raw
material resource item that matches the given material type
name, with optional subtype in parenthesis.
|
RawMaterial |
findMostOfMaterial(MOB E,
int material) |
Searches the given MOB for the largest pile of qualifying raw
material resource item that matches the given material type
code number.
|
RawMaterial |
findMostOfMaterial(MOB E,
java.lang.String other) |
Searches the given MOB for the largest pile of qualifying raw
material resource item that matches the given material type
name, with optional subtype in parenthesis.
|
protected RawMaterial |
findMostOfMaterial(java.util.List<Item> V,
int material,
java.lang.String subType) |
|
protected RawMaterial |
findMostOfMaterial(java.util.List<Item> V,
java.lang.String other) |
|
protected RawMaterial |
findMostResource(java.util.List<Item> V,
int resource,
Container C) |
|
protected int |
findNumberOfResource(java.util.List<Item> V,
int startAt,
RawMaterial resource) |
|
int |
findNumberOfResourceLike(Room E,
RawMaterial resource) |
Searches the given room for all raw material resource items that
have the same material type and subtype as the given raw
material resource item, and returns the total amount of similar
resources.
|
int |
findNumberOfResourceLike(MOB E,
RawMaterial resource) |
Searches the given mob for all raw material resource items that
have the same material type and subtype as the given raw
material resource item, and returns the total amount of similar
resources.
|
int |
findResourceCode(java.lang.String s,
boolean exact) |
Searches for the given resource code by name, and, if
found, returns the resource code.
|
protected java.util.List<Item> |
getAllItems(ItemPossessor P) |
|
protected java.util.List<Item> |
getAllRawMaterial(Room R,
int material1,
int material2) |
|
protected java.util.List<Item> |
getAllRawMaterial(MOB M,
int material1,
int material2) |
|
int |
getBurnDuration(Environmental E) |
Returns the number of ticks that the given item, whatever
will burn, or 0 if it won't burn.
|
java.lang.String |
getGeneralItemType(Item I) |
Returns a plural for the type of item given.
|
java.lang.String |
getMaterialDesc(int materialCode) |
Returns the name of the given material type code
|
int |
getRandomResourceOfMaterial(int material) |
Returns a random resource code of the given material type
|
java.lang.String |
getResourceDesc(int resourceCode) |
Returns the name of the given resource type code
|
protected java.util.List<Item> |
getSomeRawMaterial(Room R,
int material1,
int subTypeHash1,
int material2,
int subTypeHash2) |
|
protected java.util.List<Item> |
getSomeRawMaterial(MOB M,
int material1,
int subTypeHash1,
int material2,
int subTypeHash2) |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
boolean |
isResourceCodeRoomMapped(int resourceCode) |
Searches through all the locale/room classes to discover whether the given
resource code appears in any of them as a possible resource.
|
Item |
makeItemResource(int type) |
Creates a resource item of one pound.
|
Item |
makeItemResource(int type,
java.lang.String subType) |
Creates a resource item of one pound.
|
protected Item |
makeItemResource(int myResource,
java.lang.String localeCode,
boolean noAnimals,
java.lang.String fullName,
java.lang.String subType) |
|
protected MOB |
makeMOBResource(int myResource) |
|
PhysicalAgent |
makeResource(int myResource,
java.lang.String localeCode,
boolean noAnimals,
java.lang.String fullName,
java.lang.String subType) |
Creates a resource item, or possibly a mob that represents the resource.
|
java.lang.String |
makeResourceBetterName(int rscCode,
java.lang.String subType,
boolean plural) |
Returns an appropriate name for an raw material item of the given
resource and subtype.
|
java.lang.String |
makeResourceSimpleName(int rscCode,
java.lang.String subType) |
Returns a simplistic name for a raw material item of the given
resource and subtype.
|
boolean |
quickDestroy(Item I) |
Removes the given item from its possessor, and then calls
destroy on the item.
|
boolean |
rebundle(Item item) |
This great workhorse takes a given raw resource item and
finds any pairings in its new possessor, and, if found,
re-bundles with the existing item, and renames it.
|
Item |
splitBundle(Item I,
int size,
Container C) |
Given a bundle (more than weight 1) raw resource item, this
method will split the item into two parts, one part of the given
size, which is returned, and the other being what remains of I.
|
Item |
unbundle(Item I,
int number,
Container C) |
Given a bundle (more than weight 1) raw resource item, this
method will split the item into the given number of parts,
each being 1 pound.
|
activate, getServiceClient, L, propertiesLoaded, shutdowncopyOf, initializeClass, name, newInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivate, checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, propertiesLoaded, setThreadStatus, shutdown, tickpublic java.lang.String ID()
CMObjectID in interface CMObjectID in class StdLibrarypublic int getRandomResourceOfMaterial(int material)
MaterialLibrarygetRandomResourceOfMaterial in interface MaterialLibrarymaterial - the material type codepublic boolean quickDestroy(Item I)
MaterialLibraryquickDestroy in interface MaterialLibraryI - null, or an item to destroypublic boolean rebundle(Item item)
MaterialLibraryrebundle in interface MaterialLibraryitem - the raw material item to rebundleMaterialLibrary.unbundle(Item, int, Container),
MaterialLibrary.rebundle(Item),
MaterialLibrary.splitBundle(Item, int, Container)public Item splitBundle(Item I, int size, Container C)
MaterialLibrarysplitBundle in interface MaterialLibraryI - the bundled itemsize - the amount of the bundle to split outC - the container I is in, and which the split goes intoMaterialLibrary.unbundle(Item, int, Container)public Item unbundle(Item I, int number, Container C)
MaterialLibraryunbundle in interface MaterialLibraryI - the resource bundle to split upnumber - the number of 1 pounders to removeC - the container of the bundle and the 1 poundersMaterialLibrary.splitBundle(Item, int, Container)protected java.util.List<Item> disBundle(Item I, int number, int bundleSize, Container C)
public java.lang.String getMaterialDesc(int materialCode)
MaterialLibrarygetMaterialDesc in interface MaterialLibrarymaterialCode - the material type codeMaterialLibrary.getResourceDesc(int)public java.lang.String getResourceDesc(int resourceCode)
MaterialLibrarygetResourceDesc in interface MaterialLibraryresourceCode - the given resource type codeMaterialLibrary.getMaterialDesc(int)public int findMaterialRelativeInt(java.lang.String s)
MaterialLibraryfindMaterialRelativeInt in interface MaterialLibrarys - the possible material typeMaterialLibrary.findMaterialCode(String, boolean),
MaterialLibrary.findResourceCode(String, boolean)public int findMaterialCode(java.lang.String s,
boolean exact)
MaterialLibraryfindMaterialCode in interface MaterialLibrarys - the possible material typeexact - true for exact match only, false for startswithMaterialLibrary.findResourceCode(String, boolean),
MaterialLibrary.findMaterialRelativeInt(String)public int findResourceCode(java.lang.String s,
boolean exact)
MaterialLibraryfindResourceCode in interface MaterialLibrarys - the possible resource codes nameexact - true for exact match only, false for startswithMaterialLibrary.findMaterialCode(String, boolean),
MaterialLibrary.findMaterialRelativeInt(String)public void addEffectsToResource(Item I)
MaterialLibraryaddEffectsToResource in interface MaterialLibraryI - the raw material itemprotected MOB makeMOBResource(int myResource)
protected Item makeItemResource(int myResource, java.lang.String localeCode, boolean noAnimals, java.lang.String fullName, java.lang.String subType)
public PhysicalAgent makeResource(int myResource, java.lang.String localeCode, boolean noAnimals, java.lang.String fullName, java.lang.String subType)
MaterialLibrarymakeResource in interface MaterialLibrarymyResource - the full resource codelocaleCode - null, the string representation of the rooms domain type sourcenoAnimals - true to only return items, false to possibly return a mobfullName - null, or the secret identity namesubType - null, "", or the resource subTypeMaterialLibrary.makeItemResource(int),
MaterialLibrary.makeItemResource(int, String)public java.lang.String getGeneralItemType(Item I)
MaterialLibrarygetGeneralItemType in interface MaterialLibraryI - the item to get the general type ofpublic java.lang.String makeResourceBetterName(int rscCode,
java.lang.String subType,
boolean plural)
MaterialLibrarymakeResourceBetterName in interface MaterialLibraryrscCode - the resource codesubType - null, "" or the subTypeplural - true to make the name plural (more than 1), or false singularMaterialLibrary.makeResourceSimpleName(int, String),
MaterialLibrary.adjustResourceName(Item)public java.lang.String makeResourceSimpleName(int rscCode,
java.lang.String subType)
MaterialLibrarymakeResourceSimpleName in interface MaterialLibraryrscCode - the resource codesubType - "", null, or a subTypeMaterialLibrary.makeResourceBetterName(int, String, boolean),
MaterialLibrary.adjustResourceName(Item)public void adjustResourceName(Item I)
MaterialLibraryadjustResourceName in interface MaterialLibraryI - the raw material item to nameMaterialLibrary.makeResourceBetterName(int, String, boolean),
MaterialLibrary.makeResourceSimpleName(int, String)public Item makeItemResource(int type)
MaterialLibrarymakeItemResource in interface MaterialLibrarytype - the resource codeMaterialLibrary.makeItemResource(int, String),
MaterialLibrary.makeResource(int, String, boolean, String, String)public Item makeItemResource(int type, java.lang.String subType)
MaterialLibrarymakeItemResource in interface MaterialLibrarytype - the resource codesubType - "" or the subType of the resourceMaterialLibrary.makeItemResource(int),
MaterialLibrary.makeResource(int, String, boolean, String, String)public int destroyResourcesAmt(MOB E, int howMuch, int finalMaterial, java.lang.String subType, Container C)
MaterialLibrarydestroyResourcesAmt in interface MaterialLibraryE - the possessor of raw material resource itemshowMuch - the amount to destroy, in weightfinalMaterial - the resource code of the material to destroysubType - null, "", or the sub type of the resourceC - the container in which the items must be foundMaterialLibrary.destroyResourcesAmt(List, int, int, String, Container),
MaterialLibrary.destroyResourcesAmt(Room, int, int, String, Container),
MaterialLibrary.destroyResourcesValue(List, int, int, int, Item, Container),
MaterialLibrary.destroyResources(Room, int, int, int, int, int)public int destroyResourcesAmt(Room E, int howMuch, int finalMaterial, java.lang.String subType, Container C)
MaterialLibrarydestroyResourcesAmt in interface MaterialLibraryE - the possessor of raw material resource itemshowMuch - the amount to destroy, in weightfinalMaterial - the resource code of the material to destroysubType - null, "", or the sub type of the resourceC - the container in which the items must be foundMaterialLibrary.destroyResourcesAmt(List, int, int, String, Container),
MaterialLibrary.destroyResourcesAmt(MOB, int, int, String, Container),
MaterialLibrary.destroyResourcesValue(List, int, int, int, Item, Container),
MaterialLibrary.destroyResources(Room, int, int, int, int, int)public int destroyResourcesAmt(java.util.List<Item> V, int howMuch, int resourceCode, java.lang.String subType, Container C)
MaterialLibrarydestroyResourcesAmt in interface MaterialLibraryV - the list of raw material resource itemshowMuch - the amount to destroy, in weightresourceCode - the resource code of the material to destroysubType - null, "", or the sub type of the resourceC - the container in which the items must be foundMaterialLibrary.destroyResourcesAmt(MOB, int, int, String, Container),
MaterialLibrary.destroyResourcesAmt(Room, int, int, String, Container),
MaterialLibrary.destroyResourcesValue(List, int, int, int, Item, Container),
MaterialLibrary.destroyResources(Room, int, int, int, int, int)public int destroyResourcesValue(Room E, int howMuch, int finalMaterial, int finalSubHash, int otherMaterial, int otherSubHash)
MaterialLibrarydestroyResourcesValue in interface MaterialLibraryE - the possessor of raw material resource itemshowMuch - the amount to destroy, in weightfinalMaterial - the resource code of the material to destroyfinalSubHash - 0 or the hash of the subtypeotherMaterial - -1, 0, or the OTHER resource code of the material to destroyotherSubHash - 0 or the hash of the subtypeMaterialLibrary.destroyResourcesValue(Room, int, int, int, int, int),
MaterialLibrary.destroyResourcesValue(MOB, int, int, int, int, int),
MaterialLibrary.destroyResourcesValue(List, int, int, int, Item, Container),
MaterialLibrary.destroyResourcesAmt(List, int, int, String, Container),
MaterialLibrary.destroyResources(Room, int, int, int, int, int)public int destroyResourcesValue(MOB E, int howMuch, int finalMaterial, int finalSubHash, int otherMaterial, int otherSubHash)
MaterialLibrarydestroyResourcesValue in interface MaterialLibraryE - the possessor of raw material resource itemshowMuch - the amount to destroy, in weightfinalMaterial - the resource code of the material to destroyfinalSubHash - 0 or the hash of the subtypeotherMaterial - -1, 0, or the OTHER resource code of the material to destroyotherSubHash - 0 or the hash of the subtypeMaterialLibrary.destroyResourcesValue(Room, int, int, int, int, int),
MaterialLibrary.destroyResourcesValue(MOB, int, int, int, int, int),
MaterialLibrary.destroyResourcesValue(List, int, int, int, Item, Container),
MaterialLibrary.destroyResourcesAmt(List, int, int, String, Container),
MaterialLibrary.destroyResources(Room, int, int, int, int, int)public int destroyResourcesValue(java.util.List<Item> V, int howMuch, int finalMaterial, int otherMaterial, Item never, Container C)
MaterialLibrarydestroyResourcesValue in interface MaterialLibraryV - the list of raw material resource itemshowMuch - the amount to destroy, in weightfinalMaterial - the resource code of the material to destroyotherMaterial - -1, 0, or the OTHER resource code of the material to destroynever - null, or a specific item to never destroy no matter whatC - the container in which the items must be foundMaterialLibrary.destroyResourcesValue(Room, int, int, int, int, int),
MaterialLibrary.destroyResourcesValue(MOB, int, int, int, int, int),
MaterialLibrary.destroyResourcesValue(List, int, int, int, Item, Container),
MaterialLibrary.destroyResourcesAmt(List, int, int, String, Container),
MaterialLibrary.destroyResources(Room, int, int, int, int, int)public MaterialLibrary.DeadResourceRecord destroyResources(Room R, int howMuch, int finalMaterial, int finalSubHash, int otherMaterial, int otherSubHash)
MaterialLibrarydestroyResources in interface MaterialLibraryR - the possessor of raw material resource itemshowMuch - the amount to destroy, in weightfinalMaterial - the resource code of the material to destroyfinalSubHash - 0 or the hash of the subtypeotherMaterial - -1, 0, or the OTHER resource code of the material to destroyotherSubHash - 0 or the hash of the subtypeMaterialLibrary.DeadResourceRecord,
MaterialLibrary.destroyResourcesValue(List, int, int, int, Item, Container),
MaterialLibrary.destroyResourcesAmt(List, int, int, String, Container),
MaterialLibrary.destroyResources(Room, int, int, int, int, int)protected MaterialLibrary.DeadResourceRecord destroyResources(java.util.List<Item> V, int howMuch, int finalMaterial, int otherMaterial, Item never, Container C, RawMaterial firstMaterialI, RawMaterial otherMaterialI)
public RawMaterial findFirstResource(Room E, java.lang.String other)
MaterialLibraryfindFirstResource in interface MaterialLibraryE - the possessor of possible raw material itemsother - the resource name, with optional subtype in parenthesisMaterialLibrary.findFirstResource(MOB, int),
MaterialLibrary.findFirstResource(MOB, String),
MaterialLibrary.findFirstResource(Room, int)public RawMaterial findFirstResource(MOB E, java.lang.String other)
MaterialLibraryfindFirstResource in interface MaterialLibraryE - the possessor of possible raw material itemsother - the resource name, with optional subtype in parenthesisMaterialLibrary.findFirstResource(MOB, int),
MaterialLibrary.findFirstResource(Room, int),
MaterialLibrary.findFirstResource(Room, String)public RawMaterial findFirstResource(java.util.List<Item> V, java.lang.String other)
public RawMaterial findFirstResource(Room E, int resource)
MaterialLibraryfindFirstResource in interface MaterialLibraryE - the possessor of possible raw material itemsresource - the resource code numberMaterialLibrary.findFirstResource(MOB, int),
MaterialLibrary.findFirstResource(MOB, String),
MaterialLibrary.findFirstResource(Room, String)public RawMaterial findFirstResource(MOB E, int resource)
MaterialLibraryfindFirstResource in interface MaterialLibraryE - the possessor of possible raw material itemsresource - the resource code numberMaterialLibrary.findFirstResource(MOB, String),
MaterialLibrary.findFirstResource(Room, int),
MaterialLibrary.findFirstResource(Room, String)protected RawMaterial findFirstResource(java.util.List<Item> V, int resource, Container C, java.lang.String subType)
protected RawMaterial findMostResource(java.util.List<Item> V, int resource, Container C)
public RawMaterial findMostOfMaterial(Room E, java.lang.String other)
MaterialLibraryfindMostOfMaterial in interface MaterialLibraryE - the possessor of possible raw material itemsother - the material type name, with optional subtype in parenthesisMaterialLibrary.findMostOfMaterial(MOB, int),
MaterialLibrary.findMostOfMaterial(MOB, String),
MaterialLibrary.findMostOfMaterial(Room, int)public RawMaterial findMostOfMaterial(MOB E, java.lang.String other)
MaterialLibraryfindMostOfMaterial in interface MaterialLibraryE - the possessor of possible raw material itemsother - the material type name, with optional subtype in parenthesisMaterialLibrary.findMostOfMaterial(MOB, int),
MaterialLibrary.findMostOfMaterial(Room, int),
MaterialLibrary.findMostOfMaterial(Room, String)protected RawMaterial findMostOfMaterial(java.util.List<Item> V, java.lang.String other)
public int findNumberOfResourceLike(Room E, RawMaterial resource)
MaterialLibraryfindNumberOfResourceLike in interface MaterialLibraryE - the possessor of possible raw material itemsresource - the resource item to match others againstMaterialLibrary.findNumberOfResourceLike(MOB, RawMaterial)public int findNumberOfResourceLike(MOB E, RawMaterial resource)
MaterialLibraryfindNumberOfResourceLike in interface MaterialLibraryE - the possessor of possible raw material itemsresource - the resource item to match others againstMaterialLibrary.findNumberOfResourceLike(Room, RawMaterial)protected int findNumberOfResource(java.util.List<Item> V, int startAt, RawMaterial resource)
public RawMaterial findMostOfMaterial(Room E, int material)
MaterialLibraryfindMostOfMaterial in interface MaterialLibraryE - the possessor of possible raw material itemsmaterial - the material type code numberMaterialLibrary.findMostOfMaterial(MOB, int),
MaterialLibrary.findMostOfMaterial(MOB, String),
MaterialLibrary.findMostOfMaterial(Room, String)public RawMaterial findMostOfMaterial(MOB E, int material)
MaterialLibraryfindMostOfMaterial in interface MaterialLibraryE - the possessor of possible raw material itemsmaterial - the material type code numberMaterialLibrary.findMostOfMaterial(MOB, String),
MaterialLibrary.findMostOfMaterial(Room, int),
MaterialLibrary.findMostOfMaterial(Room, String)protected RawMaterial findMostOfMaterial(java.util.List<Item> V, int material, java.lang.String subType)
public boolean isResourceCodeRoomMapped(int resourceCode)
MaterialLibraryisResourceCodeRoomMapped in interface MaterialLibraryresourceCode - the resource codeprotected java.util.List<Item> getSomeRawMaterial(Room R, int material1, int subTypeHash1, int material2, int subTypeHash2)
protected java.util.List<Item> getAllRawMaterial(Room R, int material1, int material2)
protected java.util.List<Item> getAllItems(ItemPossessor P)
protected java.util.List<Item> getSomeRawMaterial(MOB M, int material1, int subTypeHash1, int material2, int subTypeHash2)
protected java.util.List<Item> getAllRawMaterial(MOB M, int material1, int material2)
public RawMaterial fetchFoundOtherEncoded(Room E, java.lang.String otherRequired)
MaterialLibraryfetchFoundOtherEncoded in interface MaterialLibraryE - the possessor of possible raw material itemsotherRequired - the resource name, or !material typeMaterialLibrary.fetchFoundOtherEncoded(MOB, String)public RawMaterial fetchFoundOtherEncoded(MOB E, java.lang.String otherRequired)
MaterialLibraryfetchFoundOtherEncoded in interface MaterialLibraryE - the possessor of possible raw material itemsotherRequired - the resource name, or !material typeMaterialLibrary.fetchFoundOtherEncoded(Room, String)protected RawMaterial fetchFoundOtherEncoded(java.util.List<Item> V, java.lang.String otherRequired)
public int getBurnDuration(Environmental E)
MaterialLibrarygetBurnDuration in interface MaterialLibraryE - the item to check