This is a method function for
NewEntity annotation. It will resolve an
NewEntityMethod to be used by the entity typing system.
The next example signatures will resolve to
EntityContainer.newEntity().
@NewEntity
Ghost newGhost();
@EntityID(random = true)
@NewEntity
Ghost newGhost();
The next example signatures will resolve to
EntityContainer.newEntity(java.util.UUID).
@NewEntity
Ghost newGhost(UUID id);
@EntityID(mostSigBits = 0, leastSigBits = 1)
@NewEntity
Ghost newGhost();
The next example signatures will resolve to
EntityContainer.newEntity(java.util.UUID, AttributeContainer).
@NewEntity
Ghost newGhost(UUID id, AttributeContainer container);
@EntityID(mostSigBits = 0, leastSigBits = 1)
@NewEntity
Ghost newGhost(AttributeContainer container);
The next example signatures will resolve to
EntityContainer.newEntity(AttributeContainer)
.
@NewEntity Ghost newGhost(AttributeContainer container);
@EntityID(random = true)
@NewEntity
Ghost newGhost(AttributeContainer container);
NOTE: This function will throw exceptions if
NewEntity is present but the method
signature is invalid.