We are ending up with a lot of functions that require self.startx, self.starty, self.startz, self.xrange, self.yrange, and self.zrange to all be passed as parameters. If you need one of these, you typically need all of them, so we should simplify this.
Instead of having these separate instance variables in the MinecraftBreeder class, have a single self.position_information instance variable that is a dict (dictionary). Set self.position_information["xrange"], self.position_information["startx"], etc to have the values, and then simply pass self.position_information as a parameter to all of those functions instead.
We are ending up with a lot of functions that require
self.startx
,self.starty
,self.startz
,self.xrange
,self.yrange
, andself.zrange
to all be passed as parameters. If you need one of these, you typically need all of them, so we should simplify this.Instead of having these separate instance variables in the
MinecraftBreeder
class, have a singleself.position_information
instance variable that is adict
(dictionary). Setself.position_information["xrange"]
,self.position_information["startx"]
, etc to have the values, and then simply passself.position_information
as a parameter to all of those functions instead.