User Tools

Site Tools


custom_classes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
custom_classes [2018/09/10 11:16]
gobrosse [Mods Programming::Custom Classes]
custom_classes [2018/09/10 11:18]
gobrosse [Other customizable classes]
Line 14: Line 14:
  
 | Class | Constructor | Instanced | Notes | | Class | Constructor | Instanced | Notes |
-| io.xol.chunkstories.api.voxel.Voxel | Voxel(VoxelType type) | Once per voxel definition ​| Can use 8 bit of metadata | +| io.xol.chunkstories.api.voxel.Voxel | Voxel(VoxelDefinition def) | Once per voxel type | Can use 8 bit of metadata | 
-| io.xol.chunkstories.api.item.Item | Item(ItemType type) | Once per ingame instance | Not to be confused with ItemPile | +| io.xol.chunkstories.api.item.Item | Item(ItemDefinition def) | Once per ingame instance | Not to be confused with ItemPile | 
-| io.xol.chunkstories.api.entity.EntityBase ​EntityBase(EntityType typeLocation loc) | Once per ingame instance | Entity.java is just the Interface ​+| io.xol.chunkstories.api.entity.Entity ​Entity(EntityDefinition defWorld world) | Once per ingame instance | Takes a World parameter ​
-| io.xol.chunkstories.api.particles.ParticleTypeHandler | ParticleTypeHandler(ParticleType type) | Once per particle type definition ​Provides it'​s ​own storage structure | +| io.xol.chunkstories.api.particles.ParticleTypeHandler | ParticleTypeHandler(ParticleTypeDefinition def) | Once per particle type | Can provide its own storage structure | 
-| io.xol.chunkstories.api.world.generator.WorldGenerator | WorldGenerator(WorldGeneratorType type, World world) | Once per world | - |+| io.xol.chunkstories.api.world.generator.WorldGenerator | WorldGenerator(WorldGeneratorDefinition def, World world) | Once per world | - |
 | io.xol.chunkstories.api.net.Packet | Packet() | Once per packet received/​sent | Must have a void constructor | | io.xol.chunkstories.api.net.Packet | Packet() | Once per packet received/​sent | Must have a void constructor |
  
Line 28: Line 28:
  
 | Class | Purpose | Instanced | Notes | | Class | Purpose | Instanced | Notes |
-| io.xol.chunkstories.api.entity.components.EntitityComponent ​| [ECS](https://​en.wikipedia.org/​wiki/​Entity%E2%80%93component%E2%80%93system)-like system | Once per entity using it | Not a true ECS, [read more](entities) |+| io.xol.chunkstories.api.entity.traits.Trait| [ECS](https://​en.wikipedia.org/​wiki/​Entity%E2%80%93component%E2%80%93system)-like system | Once per entity using it | Not a true ECS, [read more](entities) |
 | io.xol.chunkstories.api.voxel.components.VoxelComponent | Extra info beyond 8 bit metadata | Once per voxel that defines some | Not an ECS at all, more like freely attached data with an observer pattern | | io.xol.chunkstories.api.voxel.components.VoxelComponent | Extra info beyond 8 bit metadata | Once per voxel that defines some | Not an ECS at all, more like freely attached data with an observer pattern |
 | io.xol.chunkstories.api.particles.ParticleTypeHandler.ParticleData | Particle data storage | Once per particle | Inner class of ParticleTypeHandler | | io.xol.chunkstories.api.particles.ParticleTypeHandler.ParticleData | Particle data storage | Once per particle | Inner class of ParticleTypeHandler |
custom_classes.txt · Last modified: 2018/09/10 11:20 by gobrosse