@@ -43,7 +43,7 @@ public OreGinListener(OreGinManager oreGinMan)
4343 * Checks to see if an OreGin can be created
4444 */
4545 @ EventHandler
46- public void OreGinInteraction (PlayerInteractEvent event )
46+ public void oreGinInteraction (PlayerInteractEvent event )
4747 {
4848 Block clicked = event .getClickedBlock ();
4949 Player creator = event .getPlayer ();
@@ -56,29 +56,29 @@ public void OreGinInteraction(PlayerInteractEvent event)
5656 if (creator .getItemInHand ().getType ().equals (OreGinPlugin .OREGIN_UPGRADE_WAND ))
5757 {
5858
59- if (oreGinMan .OreGinExistsAt (clicked .getLocation ()))
59+ if (oreGinMan .oreGinExistsAt (clicked .getLocation ()))
6060 {
61- OreGin oreGin = oreGinMan .GetOreGin (clicked .getLocation ());
61+ OreGin oreGin = oreGinMan .getOreGin (clicked .getLocation ());
6262 creator .sendMessage (oreGin .upgrade ());
6363 }
6464 else
6565 {
66- creator .sendMessage (oreGinMan .CreateOreGin (clicked .getLocation ()));
66+ creator .sendMessage (oreGinMan .createOreGin (clicked .getLocation ()));
6767 }
6868 } //Activate or de-activate OreGin
6969 else if (creator .getItemInHand ().getType ().equals (OreGinPlugin .OREGIN_ACTIVATION_WAND ))
7070 {
71- if (oreGinMan .OreGinExistsAt (clicked .getLocation ()))
71+ if (oreGinMan .oreGinExistsAt (clicked .getLocation ()))
7272 {
73- OreGin oreGin = oreGinMan .GetOreGin (clicked .getLocation ());
73+ OreGin oreGin = oreGinMan .getOreGin (clicked .getLocation ());
7474 creator .sendMessage (oreGin .togglePower ());
7575 }
7676 } //Repair OreGin
7777 else if (creator .getItemInHand ().getType ().equals (OreGinPlugin .OREGIN_REPAIR_WAND ))
7878 {
79- if (oreGinMan .OreGinExistsAt (clicked .getLocation ()))
79+ if (oreGinMan .oreGinExistsAt (clicked .getLocation ()))
8080 {
81- OreGin oreGin = oreGinMan .GetOreGin (clicked .getLocation ());
81+ OreGin oreGin = oreGinMan .getOreGin (clicked .getLocation ());
8282 creator .sendMessage (oreGin .repair ());
8383 }
8484 }
@@ -92,18 +92,18 @@ else if (creator.getItemInHand().getType().equals(OreGinPlugin.OREGIN_REPAIR_WAN
9292 * Checks to see if an OreGin (dispenser or light) is being destroyed (block broken)
9393 */
9494 @ EventHandler
95- public void OreGinBroken (BlockBreakEvent event )
95+ public void oreGinBroken (BlockBreakEvent event )
9696 {
9797 Block destroyed = event .getBlock ();
9898
9999 if ((destroyed .getState () instanceof Dispenser ) || destroyed .getType ().equals (OreGinPlugin .LIGHT_ON )
100100 || destroyed .getType ().equals (OreGinPlugin .LIGHT_OFF ))
101101 {
102- if (oreGinMan .OreGinExistsAt (destroyed .getLocation ()) || oreGinMan .OreGinLightExistsAt (destroyed .getLocation ()))
102+ if (oreGinMan .oreGinExistsAt (destroyed .getLocation ()) || oreGinMan .oreGinLightExistsAt (destroyed .getLocation ()))
103103 {
104- OreGin oreGin = oreGinMan .GetOreGin (destroyed .getLocation ());
105- if (oreGinMan .OreGinLightExistsAt (destroyed .getLocation ()))
106- oreGin = oreGinMan .GetOreGin (destroyed .getRelative (BlockFace .DOWN ).getLocation ());
104+ OreGin oreGin = oreGinMan .getOreGin (destroyed .getLocation ());
105+ if (oreGinMan .oreGinLightExistsAt (destroyed .getLocation ()))
106+ oreGin = oreGinMan .getOreGin (destroyed .getRelative (BlockFace .DOWN ).getLocation ());
107107
108108 if (!isReinforced (oreGin .getLocation ().getBlock ()) &&
109109 !isReinforced (oreGin .getLocation ().getBlock ().getRelative (BlockFace .UP )))
@@ -126,22 +126,22 @@ else if (isReinforced(oreGin.getLocation().getBlock()) ||
126126 * Checks to see if an OreGin has been placed
127127 */
128128 @ EventHandler
129- public void OreGinPlaced (BlockPlaceEvent event )
129+ public void oreGinPlaced (BlockPlaceEvent event )
130130 {
131131 Block placed = event .getBlock ();
132132
133- if (oreGinMan .IsOreGin (event .getItemInHand ()))
133+ if (oreGinMan .isOreGin (event .getItemInHand ()))
134134 {
135- if (OreGin .validOreGinCreationLocation (placed .getLocation ()))
135+ if (OreGin .isValidOreGinCreationLocation (placed .getLocation ()))
136136 {
137137 OreGin oreGin = new OreGin (placed .getLocation (), OreGin .getTierLevel (event .getItemInHand ().getItemMeta ().getDisplayName ()),
138138 OreGin .getBlockBreaksFromLore (event .getItemInHand ().getItemMeta ().getLore ()), oreGinMan );
139- oreGinMan .AddOreGin (oreGin );
139+ oreGinMan .addOreGin (oreGin );
140140 event .getPlayer ().sendMessage (ChatColor .GREEN + "An OreGin of tier level " + oreGin .getTierLevel () + " was placed!" );
141141 }
142142 else
143143 {
144- OreGinSoundCollection .ErrorSound ().playSound (placed .getLocation ());
144+ OreGinSoundCollection .getErrorSound ().playSound (placed .getLocation ());
145145 event .getPlayer ().sendMessage (ChatColor .RED + "Space above OreGin must be empty!" );
146146 event .setCancelled (true );
147147 }
@@ -153,7 +153,7 @@ public void OreGinPlaced(BlockPlaceEvent event)
153153 * Helps with organizing inventory
154154 */
155155 @ EventHandler
156- public void MovedOreGin (InventoryClickEvent event )
156+ public void movedOreGin (InventoryClickEvent event )
157157 {
158158 ItemStack cursorItem = event .getCursor ();
159159 ItemStack slotItem = event .getCurrentItem ();
@@ -162,7 +162,7 @@ public void MovedOreGin(InventoryClickEvent event)
162162 {
163163 if (slotItem .getType () == Material .DISPENSER )
164164 {
165- if (oreGinMan .IsOreGin (cursorItem ) || oreGinMan .IsOreGin (slotItem ))
165+ if (oreGinMan .isOreGin (cursorItem ) || oreGinMan .isOreGin (slotItem ))
166166 {
167167 if ((cursorItem .getItemMeta ().getDisplayName () != slotItem .getItemMeta ().getDisplayName ())
168168 || cursorItem .getItemMeta ().getLore () != slotItem .getItemMeta ().getLore ())
@@ -180,17 +180,17 @@ public void MovedOreGin(InventoryClickEvent event)
180180 * Maintains the OreGin lights stable
181181 */
182182 @ EventHandler
183- public void KeepLightsStable (BlockRedstoneEvent event )
183+ public void keepLightsStable (BlockRedstoneEvent event )
184184 {
185185 if (event .getBlock ().getType ().equals (OreGinPlugin .LIGHT_ON ) || event .getBlock ().getType ().equals (OreGinPlugin .LIGHT_OFF ))
186186 {
187- if (oreGinMan .OreGinLightExistsAt (event .getBlock ().getLocation ()))
187+ if (oreGinMan .oreGinLightExistsAt (event .getBlock ().getLocation ()))
188188 {
189- if (oreGinMan .GetOreGin (event .getBlock ().getRelative (BlockFace .DOWN ).getLocation ()).getMining ())
189+ if (oreGinMan .getOreGin (event .getBlock ().getRelative (BlockFace .DOWN ).getLocation ()).getMining ())
190190 {
191191 event .setNewCurrent (1 );
192192 }
193- else if (!oreGinMan .GetOreGin (event .getBlock ().getRelative (BlockFace .DOWN ).getLocation ()).getBroken ())
193+ else if (!oreGinMan .getOreGin (event .getBlock ().getRelative (BlockFace .DOWN ).getLocation ()).getBroken ())
194194 {
195195 event .setNewCurrent (0 );
196196 }
@@ -202,9 +202,9 @@ else if (!oreGinMan.GetOreGin(event.getBlock().getRelative(BlockFace.DOWN).getLo
202202 * Stops OreGins from dispensing fuel or materials
203203 */
204204 @ EventHandler
205- public void OreGinDispense (BlockDispenseEvent event )
205+ public void oreGinDispense (BlockDispenseEvent event )
206206 {
207- event .setCancelled (oreGinMan .OreGinExistsAt (event .getBlock ().getLocation ()));
207+ event .setCancelled (oreGinMan .oreGinExistsAt (event .getBlock ().getLocation ()));
208208 }
209209
210210
0 commit comments