def removed_hook(self): GenericEntity.removed_hook(self)
def spawn_hook(self): GenericEntity.spawn_hook(self)
def __init__(self, texture=None, bounding_box=None, name=None): self.falling, self.fall_delay, self.god_mode = False, 0, False self.inventory = {} self.current_block = 0 GenericEntity.__init__(self, player.tobytes() if not texture else texture, bounding_box, name)