INNER CODE UNIT · Java

getIdOfSelection

BSVogler/WurfelEngineSDK · core/src/main/java/editor/BlockTable.java:119

	public byte getIdOfSelection() {
		return selectionId;
	}

	/**
	 * Returns the data of the selected block.
	 *
	 * @return id, value and 100 health
	 */
	public int getSelectedBlock() {
		return selectionId + (getValue() << 8) + (100 << 16);
	}

	/**
	 * Select a block. Will be highlighted in the table.
	 *
	 * @param blockId id of block data
	 * @param blockValue value of block data

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…