Class ItemFactory
java.lang.Object
com.csse3200.game.entities.factories.ItemFactory
Factory to create an item
-
Method Summary
Modifier and TypeMethodDescriptionstatic Entity
Creates an 'Aloe Vera Leaf' item.static Entity
Creates an 'aloe vera seed' itemstatic Entity
Creates an 'atomic algae seed' itemstatic Entity
Create a base item entity with physics, a hitbox, and ItemActions.static Entity
Creates a beef itemstatic Entity
Creates a fish itemstatic Entity
Creates a fish itemstatic Entity
Creates a chest item that allows the player to place chestsstatic Entity
Creates a chicken itemstatic Entity
Creates a fish itemstatic Entity
Creates a Map Clue itemstatic Entity
Creates an 'Ear of Cosmic Cob' item.static Entity
Creates a 'cosmic cob seed' itemstatic Entity
Creates a 'Nightshade Berry' item.static Entity
Creates a 'deadly nightshade seed' itemstatic Entity
Creates an egg itemstatic Entity
Creates a fence item that allows the player to place fencesstatic Entity
Creates a fertiliser itemstatic Entity
Creates a tool that one use can get fish from the ocean or lavastatic Entity
Creates a gate item that allows the player to place gatesstatic Entity
Creates a golden egg itemstatic Entity
Creates a fish itemstatic Entity
Creates a gun itemstatic Entity
Creates a 'Hammer Flower' item.static Entity
Creates a 'hammer plant seed' itemstatic Entity
Creates a fish itemstatic Entity
Creates a hoe itemstatic Entity
Creates a fish itemstatic Entity
Creates a fish itemstatic Entity
Makes a item that when used places a itemstatic Entity
Creates a fish itemstatic Entity
Creates a milk itemstatic Entity
Creates a fish itemstatic Entity
Creates a fish itemstatic Entity
Creates a fish itemstatic Entity
Creates a Pump item that allows the player to power sprinklersstatic Entity
Creates a fish itemstatic Entity
Creates a fish itemstatic Entity
Creates a scythe itemstatic Entity
Creates a ship part item that can be used to repair the shipstatic Entity
Creates a shovel itemstatic Entity
Creates a 'space snapper seed' itemstatic Entity
Creates a sprinkler item that allows the player to place sprinklersstatic Entity
Creates a sword itemstatic Entity
Creates a teleportation device.static Entity
Creates a watering-can itemstatic Entity
Creates a fish itemgetItemSupplier
(String itemName) Returns the supplier function for the item with the given unique name.
-
Method Details
-
getItemSupplier
Returns the supplier function for the item with the given unique name.- Parameters:
itemName
- Name of the item to get the supplier of- Returns:
- Supplier for the item
- Throws:
NoSuchElementException
- If an item with the given name does not exist
-
createBaseItem
Create a base item entity with physics, a hitbox, and ItemActions.- Returns:
- a base item entity
-
createShovel
Creates a shovel item- Returns:
- shovel
-
createHoe
Creates a hoe item- Returns:
- hoe
-
createWateringcan
Creates a watering-can item- Returns:
- watering can
-
createScythe
Creates a scythe item- Returns:
- scythe
-
createSword
Creates a sword item- Returns:
- sword
-
createGun
Creates a gun item- Returns:
- gun
-
createMilk
Creates a milk item- Returns:
- milk item
-
createEgg
Creates an egg item- Returns:
- egg item
-
createGoldenEgg
Creates a golden egg item- Returns:
- golden egg item
-
createClueItem
Creates a Map Clue item- Returns:
- Map Item
-
createFertiliser
Creates a fertiliser item- Returns:
- fertiliser
-
createAloeVeraSeed
Creates an 'aloe vera seed' item- Returns:
- aloe vera seed
-
createAloeVeraLeaf
Creates an 'Aloe Vera Leaf' item.- Returns:
- Aloe Vera Leaf
-
createAtomicAlgaeSeed
Creates an 'atomic algae seed' item- Returns:
- atomic algae seed
-
createCosmicCobSeed
Creates a 'cosmic cob seed' item- Returns:
- cosmic cob seed
-
createCosmicCobEar
Creates an 'Ear of Cosmic Cob' item.- Returns:
- Ear of Cosmic Cob
-
createDeadlyNightshadeSeed
Creates a 'deadly nightshade seed' item- Returns:
- deadly nightshade seed
-
createDeadlyNightshadeBerry
Creates a 'Nightshade Berry' item.- Returns:
- Nightshade Berry
-
createHammerPlantSeed
Creates a 'hammer plant seed' item- Returns:
- hammer plant seed
-
createHammerFlower
Creates a 'Hammer Flower' item.- Returns:
- Hammer Flower
-
createSpaceSnapperSeed
Creates a 'space snapper seed' item- Returns:
- space snapper seed
-
createBeef
Creates a beef item- Returns:
- beef item
-
createChickenMeat
Creates a chicken item- Returns:
- chicken item
-
createFenceItem
Creates a fence item that allows the player to place fences- Returns:
- the fence item
-
createGateItem
Creates a gate item that allows the player to place gates- Returns:
- the gate item
-
createSprinklerItem
Creates a sprinkler item that allows the player to place sprinklers- Returns:
- the sprinkler item
-
createPumpItem
Creates a Pump item that allows the player to power sprinklers- Returns:
- the sprinkler item
-
createChestItem
Creates a chest item that allows the player to place chests- Returns:
- the chest item
-
createLightItem
Makes a item that when used places a item- Returns:
-
createShipPart
Creates a ship part item that can be used to repair the ship- Returns:
- ship part
-
createFishingRod
Creates a tool that one use can get fish from the ocean or lava- Returns:
- a fishing rod
-
createLavaEel
Creates a fish item- Returns:
- a lava eel (food item)
-
createSalmon
Creates a fish item- Returns:
- a salmon (food item)
-
createYak3
Creates a fish item- Returns:
- a yak3 (food item)
-
createNetty
Creates a fish item- Returns:
- a netty (food item)
-
createLola
Creates a fish item- Returns:
- a lola (food item)
-
createLarry
Creates a fish item- Returns:
- a larry (food item)
-
createBraydan
Creates a fish item- Returns:
- a Braydan (food item)
-
createHarry
Creates a fish item- Returns:
- a Harry (food item)
-
createMrKrabs
Creates a fish item- Returns:
- a mr Krabs fish (food item)
-
createPharLap
Creates a fish item- Returns:
- a Phar Lap (food item)
-
createBryton
Creates a fish item- Returns:
- a Bryton fish (food item)
-
createSanders
Creates a fish item- Returns:
- a Sanders (food item)
-
createChurchill
Creates a fish item- Returns:
- a Winston Churchill (food item)
-
createGoldenFish
Creates a fish item- Returns:
- a yellow fish
-
createTeleportDevice
Creates a teleportation device.- Returns:
- a device that will teleport you to the ship
-