From a99df283fe62d09b106a09e90796b174bfacb9a3 Mon Sep 17 00:00:00 2001 From: DevKumar00001 Date: Wed, 15 Nov 2023 09:56:38 +0530 Subject: [PATCH] feat(block): Added false(boolean block) --- .../main/java/builtin/blocks/BuiltInBlocks.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/src/main/java/builtin/blocks/BuiltInBlocks.java b/app/src/main/java/builtin/blocks/BuiltInBlocks.java index cf8d732..53e831d 100644 --- a/app/src/main/java/builtin/blocks/BuiltInBlocks.java +++ b/app/src/main/java/builtin/blocks/BuiltInBlocks.java @@ -96,10 +96,26 @@ public static ArrayList getBuiltInBlocksHolder() { blockInHolder4.setBlockContent(block4ContentList); + Block blockInHolder5 = new Block(); + blockInHolder5.setColor("#009900"); + blockInHolder5.setBlockType(Block.BlockType.returnWithTypeBoolean); + blockInHolder5.setName("false"); + blockInHolder5.setRawCode("false"); + blockInHolder5.setReturns("boolean"); + + ArrayList block5ContentList = new ArrayList(); + + BlockContent block5Content1 = new BlockContent(); + block5Content1.setText("false"); + block5ContentList.add(block5Content1); + + blockInHolder5.setBlockContent(block5ContentList); + blockList.add(blockInHolder1); blockList.add(blockInHolder2); blockList.add(blockInHolder3); blockList.add(blockInHolder4); + blockList.add(blockInHolder5); holder1.setBlocks(blockList);